/* ธีม V3 — ส่วนเสริมที่ไฟล์ design ไม่มี (ทุกหน้า) */

/* skip link + honeypot ของฟอร์ม */
.wf-skip{position:absolute;left:-9999px;top:0;z-index:100;background:#1E4A2E;color:#fff;padding:12px 20px;border-radius:0 0 8px 0}
.wf-skip:focus{left:0;color:#fff}
.wf-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* ข้อความแจ้งผลการส่งฟอร์ม */
.wf-notice{grid-column:1/-1;padding:14px 18px;border-radius:12px;font-size:14.5px;line-height:1.6;margin-bottom:16px}
.wf-notice--ok{background:#E1FBC6;color:#1E4A2E;border:1px solid #BFD0AE}
.wf-notice--err{background:#FDECEA;color:#B3261E;border:1px solid #F5C6C2}

/* แถบผู้ดูแล WordPress: header ลอยต้องเลื่อนลง */
.admin-bar .wf-header{top:32px !important}
@media (max-width:782px){.admin-bar .wf-header{top:46px !important}}

/* header เต็มความกว้าง (แทนแคปซูลลอย) */
body .wf-header{padding:0 !important;background:linear-gradient(#FFFFFF,#F3F6EF);border-bottom:1px solid #DCE6D2;box-shadow:0 6px 20px rgba(15,46,26,.08);pointer-events:auto}
body .wf-header>div{max-width:none !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;background:transparent !important;padding:12px clamp(16px,4vw,56px) !important;min-height:72px !important}

/* ===== ปรับตามรีวิว (27 พ.ย. 2569) ===== */
/* เมนูกลาง (template-parts/v3/nav.php) — ทุกหน้าใช้ชุดเดียวกัน */
.wf-header .hm-pill{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px 20px}
.wf-header .hm-logo{display:inline-flex;align-items:center;flex:none}
.wf-header .hm-logo img{width:104px;height:40px;display:block}
@media (min-width:1024px){.wf-header .wf-nav-links{display:flex;gap:4px 22px !important}}
.wf-header .nav-link.nav-active,.wf-header .nav-link[aria-current]{font-weight:700 !important;color:#1E4A2E !important;background:#F1F6EC !important;padding:6px 10px 4px !important;border-radius:8px !important}
.wf-header .wf-dd-item.is-current{background:#EAF1E4;color:#1E4A2E}
.wf-header .hm-nb{display:inline-flex;align-items:center;height:40px;padding:0 18px !important;border-radius:999px;font-weight:700;font-size:14px;line-height:1.2;text-decoration:none}
@media (max-width:1240px) and (min-width:1024px){.wf-header .wf-nav-links{gap:4px 12px !important;font-size:14.5px !important}.wf-header .hm-nb{padding:0 12px !important;font-size:13px !important}}
.v3-nw{white-space:nowrap}

/* O2: ปุ่มไม่ตัด 2 บรรทัด */
.hm-btn span,.gh-btn span,.hm-nb{white-space:nowrap}
@media (max-width:420px){.hm-btn span,.gh-btn span{white-space:normal}}

/* Y4: ตัวคั่น breadcrumb แบบเดียวกัน */
.gh-bc li+li::before,.sv-bc li+li::before,.rv-bc li+li::before{content:"\203A" !important}

/* Y5: ไอคอน FAQ หน้าโรงเรือน = วงกลม +/× แบบหน้าอื่น */
.gh-ic{width:34px !important;height:34px !important;border-radius:50%;background:#EAF1E4;color:#1E4A2E;transition:transform .25s ease,background-color .2s ease}
.gh-ic::before,.gh-ic::after{left:9px !important;top:16px !important;width:16px !important;height:2.4px !important;border-radius:2px}
.gh-ic::after{transform:rotate(90deg) !important}
.gh-faq[data-open="true"] .gh-ic{transform:rotate(45deg);background-color:#E1FBC6}
@media (prefers-reduced-motion:reduce){.gh-ic{transition:none}}

/* R2: error / กำลังส่ง */
.pg-form .v3-err{margin:6px 0 0;font-size:14px;line-height:1.5;color:#B42318}
.pg-form .v3-err:empty{display:none}
.pg-form [aria-invalid="true"]{border-color:#B42318 !important;box-shadow:0 0 0 3px rgba(180,35,24,.12) !important}
.pg-form button[aria-busy="true"]{opacity:.7;cursor:progress}

/* Y6: หน้าติดต่อบนมือถือ — ซ่อนปุ่ม "ขอราคา" (ซ้ำกับฟอร์ม) และเผื่อที่ให้แถบไม่บังปุ่มส่ง */
.v3-contact .wf-mobile-bar a[href*="/contact/"]{display:none !important}


/* Y4: ขอบเนื้อหาเท่ากันทุกหน้า (เท่ากับ .hm-w = 1200 - 24*2) */
.sv-w1{max-width:1152px !important}
.wf-header .wf-nav-cta{display:flex;gap:10px !important}
@media (max-width:1023px){.wf-header .wf-menu-btn{display:inline-flex !important;align-items:center !important;justify-content:center !important;border-radius:999px !important;padding:0 !important}}

/* ===== 30 พ.ย.: breadcrumb ตรงกันทุกหน้า / แถบล่างไม่บัง footer / รูปทีม ===== */
/* หน้า design: เอาช่องว่างที่เผื่อ header ลอยแบบเดิมออก ให้ breadcrumb อยู่ใต้ header ระยะเท่าหน้าอื่น */
.v3-service .sv-hero,.v3-reviews .rv-hero,.v3-about #wf-main>section:first-of-type,.v3-greenhouse #wf-main>section:first-of-type,.v3-contact #wf-main>section:first-of-type{padding-top:32px !important}
/* หน้าแบบเดิม: breadcrumb หน้าตาเดียวกับหน้า design */
.wf-crumbbar{max-width:1200px !important;padding:25px 24px 0 !important}
.wf-crumbbar>div{font-size:14px !important;gap:10px !important;line-height:1.6}
.wf-crumbbar .wf-crumb-home{color:#557535;text-decoration:underline;text-underline-offset:3px}
.wf-crumbbar .wf-crumb-home svg,.wf-crumbbar .wf-crumb-sep svg{display:none}
.wf-crumbbar .wf-crumb-home::before{content:"หน้าแรก"}
.wf-crumbbar .wf-crumb-sep::before{content:"\203A";color:#8CAA5E}
/* แถบ sticky ล่าง: ซ่อนเมื่อเลื่อนถึง footer จะได้ไม่ทับ footer */
.wf-desk-bar,.wf-mobile-bar{transition:transform .3s ease,opacity .3s ease}
.v3-at-foot .wf-desk-bar,.v3-at-foot .wf-mobile-bar{transform:translateY(110%);opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.wf-desk-bar,.wf-mobile-bar{transition:none}}
.pg-pf img{object-position:center 18%}
.gh-bc ol,.sv-bc ol,.rv-bc ol,.wf-crumbbar>div{font-family:'Kanit',sans-serif !important;font-size:14px !important;color:#557535 !important}
.gh-bc a,.sv-bc a,.rv-bc a,.wf-crumbbar .wf-crumb-home{color:#557535 !important;text-decoration:none !important}
.gh-bc a:hover,.sv-bc a:hover,.rv-bc a:hover,.wf-crumbbar .wf-crumb-home:hover{text-decoration:underline !important}
.gh-bc [aria-current],.sv-bc [aria-current],.rv-bc [aria-current],.wf-crumbbar>div>span:last-child{color:#0F2E1A !important;font-weight:600 !important}
.gh-bc li+li::before,.sv-bc li+li::before,.rv-bc li+li::before,.wf-crumbbar .wf-crumb-sep::before{color:#9AB083 !important}
/* มือถือ: ทุกหน้า (รวมหน้าแบบเดิม) ซ่อนปุ่มบน header เหลือโลโก้ + ☰ (ปุ่มอยู่ในเมนูแทน) */
@media (max-width:1023px){.wf-header .wf-nav-cta{display:none !important}.wf-header .wf-nav-links{display:none !important}.wf-header .wf-menu-btn{width:48px !important;height:48px !important;flex:none !important;border:1.5px solid #DCE6D2 !important;background:#F7FAF4 !important;color:#1E4A2E !important}}
/* ไม่ต้องเว้นที่ใต้ footer ให้แถบ sticky แล้ว (แถบซ่อนเองเมื่อถึง footer) — กันแถบสีพื้นโผล่ใต้ footer */
.wf-page{padding-bottom:0 !important}

/* หน้าบทความ: ช่องค้นหาต่อท้ายแถบหมวด */
.v3-ar-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin-bottom:40px}
.v3-ar-search{position:relative;flex:0 1 300px;min-width:220px;margin:0}
.v3-ar-search input[type=search]{width:100%;height:44px;box-sizing:border-box;padding:0 48px 0 18px;border:1px solid #DCE6D2;border-radius:999px;background:#FFFFFF;font:inherit;font-size:15px;color:#1E4A2E;-webkit-appearance:none;appearance:none}
.v3-ar-search input[type=search]::placeholder{color:#7A8A70}
.v3-ar-search input[type=search]:focus{outline:none;border-color:#557535;box-shadow:0 0 0 3px rgba(85,117,53,.18)}
.v3-ar-search button{position:absolute;right:4px;top:4px;width:36px;height:36px;border:0;border-radius:50%;background:#1E4A2E;color:#FFFFFF;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.v3-ar-search button:hover{background:#0F2E1A}
@media (max-width:767px){.v3-ar-search{flex:1 1 100%}}
.screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* breadcrumb ของหน้าค้นหา/บทความเดี่ยว (wf_breadcrumb) แบบเดียวกับหน้าอื่น */
.wf-breadcrumb__inner{font-family:'Kanit',sans-serif !important;font-size:14px !important;color:#557535 !important;gap:10px !important}
.wf-breadcrumb .wf-crumb-home{color:#557535 !important;text-decoration:none !important}
.wf-breadcrumb .wf-crumb-home svg,.wf-breadcrumb .wf-crumb-sep svg{display:none}
.wf-breadcrumb .wf-crumb-home::before{content:"หน้าแรก"}
.wf-breadcrumb .wf-crumb-sep::before{content:"\203A";color:#9AB083}
.wf-breadcrumb .wf-breadcrumb__current{color:#0F2E1A !important;font-weight:600 !important}

/* บล็อกบทความกลาง (v3_articles) — เด่นซ้าย + รายการขวา ใช้ทุกหน้า */
.v3ar{padding:88px 0 96px}
.v3ar-w{max-width:1248px;margin:0 auto;padding:0 24px}
.v3ar h2,.v3ar h3{font-family:'Kanit',sans-serif;margin:0;letter-spacing:0}
.v3ar a{text-decoration:none;color:inherit}
.v3ar-h{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 48px;margin-bottom:40px}
.v3ar .v3ar-t{flex:1 1 420px;font-weight:800;font-size:clamp(28px,3.2vw,40px);line-height:1.3;color:#0F2E1A}
.v3ar-h p{flex:0 1 480px;margin:0;font-size:16px;line-height:1.85;color:#555555}
.v3ar-g{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:40px 48px}
.v3ar-m{display:block}
.v3ar-m img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px}
.v3ar .v3ar-m h3{font-weight:800;font-size:clamp(22px,2.2vw,28px);line-height:1.4;color:#1E4A2E;margin-top:18px;text-wrap:pretty}
.v3ar .d{display:block;font-size:14.5px;line-height:1.6;color:#777777}
.v3ar-m .d{margin-top:8px}
.v3ar-m .rd{display:inline-block;margin-top:12px;font-family:'Kanit',sans-serif;font-weight:700;font-size:16px;color:#1E4A2E;border-bottom:2px solid #8CAA5E}
.v3ar-l{display:flex;flex-direction:column;border-top:1px solid #1E4A2E}
.v3ar-i{display:flex;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid #CBD8BE}
.v3ar-i img{display:block;flex:none;width:150px;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.v3ar .v3ar-i h3{font-weight:700;font-size:17.5px;line-height:1.5;color:#1E4A2E;text-wrap:pretty}
.v3ar-i:hover h3,.v3ar-m:hover h3{color:#0F2E1A;text-decoration:underline;text-underline-offset:4px}
.v3ar-f{display:flex;justify-content:center;margin-top:44px}
.v3ar-btn{display:inline-flex;align-items:center;gap:14px;height:56px;padding:0 8px 0 28px;border-radius:999px;background:#1E4A2E;color:#FFFFFF!important;font-family:'Kanit',sans-serif;font-weight:700;font-size:16px;transition:background .2s,transform .2s}
.v3ar-btn i{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#E1FBC6;color:#1E4A2E}
.v3ar-btn:hover{background:#0F2E1A;transform:translateY(-2px)}
@media (max-width:1023px){.v3ar-g{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.v3ar{padding:64px 0 72px}.v3ar-i img{width:110px}.v3ar-h{margin-bottom:28px}}

/* ===== เมนูใหม่ (ดีไซน์ ธ.ค. 2569): dropdown <details> + เมนูมือถือ .wf-mm — จาก Main.dc.html ===== */
.wf-dd{position:relative;display:block}
.wf-header .wf-dd>summary{display:inline-flex;align-items:center;list-style:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
.wf-header .wf-dd>summary::-webkit-details-marker{display:none}
.wf-header .wf-dd>summary::marker{content:""}
.wf-dd>summary svg{transition:transform .2s}
.wf-dd[open]>summary svg{transform:rotate(180deg)}
.wf-header .wf-dd[open]>summary{color:#1E4A2E;background-color:#F1F6EC;background-size:calc(100% - 8px) 2px}
.wf-header .wf-dd>summary:focus-visible{outline:2px solid #1E4A2E;outline-offset:3px}
.wf-dd-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);padding-top:16px;z-index:60;white-space:normal}
.wf-dd-panel{position:relative;width:max-content;display:grid;grid-template-columns:minmax(300px,max-content);gap:10px;background:#FFFFFF;border:1px solid #E3EBD9;border-radius:24px;box-shadow:0 22px 44px rgba(15,46,26,.18),0 2px 6px rgba(15,46,26,.06);padding:12px}
.wf-dd-panel::before{content:"";position:absolute;top:-8px;left:50%;width:14px;height:14px;margin-left:-7px;background:#FFFFFF;border-left:1px solid #E3EBD9;border-top:1px solid #E3EBD9;border-radius:4px 0 0 0;transform:rotate(45deg)}
.wf-dd-card{position:relative;display:flex;align-items:center;gap:12px;padding:14px 12px 14px 14px;background:#F7FAF4;border:1px solid #DCE6D2;border-radius:16px;color:#0F2E1A;text-decoration:none;transition:background-color .18s,border-color .18s,transform .18s,box-shadow .18s}
.wf-dd-card:hover,.wf-dd-card:focus-visible{background:#EAF1E4;border-color:#8CAA5E;transform:translateY(-2px);box-shadow:0 10px 20px rgba(30,74,46,.12);outline:0}
.wf-dd-ic{flex:none;width:46px;height:46px;border-radius:14px;background:#E1FBC6;color:#1E4A2E;display:flex;align-items:center;justify-content:center}
.wf-dd-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.wf-dd-ct,.wf-dd-cs{white-space:nowrap}
.wf-dd-ct{font-family:'Kanit',sans-serif;font-weight:600;font-size:16px;line-height:1.35;color:#0F2E1A}
.wf-dd-cs{font-family:'IBM Plex Sans Thai',-apple-system,sans-serif;font-weight:400;font-size:13px;line-height:1.45;color:#4A5F43}
.wf-dd-ar{flex:none;width:28px;height:28px;border-radius:999px;background:#FFFFFF;border:1px solid #CBD8BE;color:#1E4A2E;display:flex;align-items:center;justify-content:center;transition:background-color .18s,color .18s,border-color .18s}
.wf-dd-card:hover .wf-dd-ar,.wf-dd-card:focus-visible .wf-dd-ar{background:#1E4A2E;border-color:#1E4A2E;color:#FFFFFF}
.wf-menu-btn{display:none;width:44px;height:44px;border:0;border-radius:999px;background:#EAF1E4;color:#1E4A2E;align-items:center;justify-content:center;padding:0;cursor:pointer}
@media (max-width:1023px){.wf-nav-links,.wf-nav-cta{display:none}.wf-menu-btn{display:inline-flex}}
@media (max-width:1180px){.wf-header .wf-nav-links{gap:12px !important;font-size:14.5px !important}}
.wf-dd-menu{padding-top:26px}
@media (max-width:1023px){.wf-header>div{padding:10px 14px 10px 20px !important}.wf-header .wf-menu-btn{width:48px !important;height:48px !important;border:1.5px solid #DCE6D2 !important;background:#F7FAF4 !important}}
@media (prefers-reduced-motion:reduce){.wf-header .nav-link,.wf-header .wf-nav-cta a{transition:none}.wf-header .wf-nav-cta a:hover{transform:none}}
html body .wf-header .wf-dd-menu{left:0;transform:none;padding-top:12px}
html body .wf-header .wf-dd-panel{display:flex;flex-direction:column;gap:2px;grid-template-columns:none;width:max-content;min-width:220px;background:#FFFFFF;border:1px solid #EAF0E4;border-radius:20px;box-shadow:0 16px 40px rgba(15,46,26,.12),0 2px 6px rgba(15,46,26,.05);padding:8px}
html body .wf-header .wf-dd-panel::before{display:none}
html body .wf-header .wf-dd-card{display:block;padding:12px 20px;background:transparent;border:0;border-radius:12px;box-shadow:none;transform:none;transition:background-color .15s}
html body .wf-header .wf-dd-card:hover,html body .wf-header .wf-dd-card:focus-visible{background:#F1F6EC;border:0;box-shadow:none;transform:none;outline:0}
html body .wf-header .wf-dd-card:focus-visible{box-shadow:inset 0 0 0 2px #1E4A2E}
html body .wf-header .wf-dd-tx{display:block}
html body .wf-header .wf-dd-ct{font-family:'IBM Plex Sans Thai',-apple-system,sans-serif;font-weight:500;font-size:16px;line-height:1.5;color:#0F2E1A;white-space:nowrap}
html body .wf-header .wf-dd[open]>summary.nav-link{background:transparent !important;box-shadow:inset 0 0 0 1.5px #1E4A2E !important;border-radius:999px !important;padding:6px 14px 4px !important;margin:0 -6px !important;color:#1E4A2E !important}
.wf-mm{display:none}
.wf-mm>summary{list-style:none}
.wf-mm>summary::-webkit-details-marker{display:none}
.wf-mm .wf-ic-x{display:none}
.wf-mm[open] .wf-ic-x{display:block}
.wf-mm[open] .wf-ic-m{display:none}
.wf-mm>summary:focus-visible{outline:2px solid #1E4A2E;outline-offset:3px}
.wf-mm-panel{position:absolute;left:14px;right:14px;top:calc(100% + 8px);z-index:70;display:flex;flex-direction:column;background:#FFFFFF;border:1px solid #EAF0E4;border-radius:20px;box-shadow:0 16px 40px rgba(15,46,26,.14),0 2px 6px rgba(15,46,26,.05);padding:8px;max-height:calc(100vh - 112px);overflow:auto;pointer-events:auto}
.wf-mm-panel a,.wf-mm-g>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:12px;font-family:'IBM Plex Sans Thai',-apple-system,sans-serif;font-weight:500;font-size:16px;line-height:1.5;color:#0F2E1A;text-decoration:none;cursor:pointer;list-style:none}
.wf-mm-g>summary::-webkit-details-marker{display:none}
.wf-mm-panel a:hover,.wf-mm-g>summary:hover,.wf-mm-panel a:focus-visible,.wf-mm-g>summary:focus-visible{background:#F1F6EC;outline:0}
.wf-mm-g>summary svg{flex:none;transition:transform .2s}
.wf-mm-g[open]>summary svg{transform:rotate(180deg)}
.wf-mm-g>div{display:flex;flex-direction:column;padding:0 0 6px 12px}
.wf-mm-g>div a{padding:11px 16px;font-weight:400;color:#3D4F3A}
.wf-mm-sep{height:1px;background:#EAF0E4;margin:6px 8px}
@media (max-width:1023px){html body .wf-header .wf-mm{display:block}}
@media (prefers-reduced-motion:reduce){.wf-mm-g>summary svg,html body .wf-header .wf-dd-card{transition:none}}
.wf-header .wf-dd{display:block}
.wf-header .wf-dd-card.is-current{background:#F1F6EC}
.wf-header .wf-dd-card.is-current .wf-dd-ct{font-weight:600;color:#1E4A2E}
.wf-mm-panel a[aria-current]{background:#F1F6EC;font-weight:600;color:#1E4A2E}
@media (min-width:1024px){.wf-mm{display:none !important}}

/* ===== แถบ CTA ล่าง (เดสก์ท็อป): โผล่ทันทีเมื่อเลื่อนพ้น header (v3.js ใส่ .v3-scrolled) — แทน scroll-timeline ที่ 400px ===== */
@media (min-width:769px){
body .wf-desk-bar{animation:none !important;transform:translateY(110%);visibility:hidden;opacity:1;transition:transform .35s cubic-bezier(.2,.8,.2,1),visibility .35s,opacity .3s}
body.v3-scrolled .wf-desk-bar{transform:translateY(0);visibility:visible}
body.v3-at-quote .wf-desk-bar,body.v3-at-foot .wf-desk-bar{transform:translateY(110%);visibility:hidden}
}
@media (prefers-reduced-motion:reduce){body .wf-desk-bar{transition:none}}

/* ===== FAQ แบบเดียวกันทุกหน้า (.v3fq) — หัวข้อซ้าย + accordion ขวา ตามดีไซน์ Wolffia.dc.html ===== */
.v3fq-s{background:#FFFFFF;padding:96px 24px}
.v3fq{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:40px 72px;align-items:start}
.v3fq .v3fq-t{position:sticky;top:104px;margin:0;font-family:'Kanit',sans-serif;font-weight:800;font-size:clamp(28px,3vw,40px);line-height:1.3;color:#0F2E1A;text-wrap:balance}
.v3fq-l{border-top:1px solid #1E4A2E}
.v3fq-l details{border-bottom:1px solid #CBD8BE;background:none !important;border-radius:0 !important;padding:0 !important;margin:0 !important;border-left:0 !important;border-right:0 !important;border-top:0 !important}
.v3fq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;font-family:'Kanit',sans-serif;font-weight:700;font-size:20px;line-height:1.5;color:#1E4A2E;text-wrap:pretty}
.v3fq summary::-webkit-details-marker{display:none}
.v3fq summary::marker{content:""}
.v3fq summary:hover{color:#0F2E1A}
.v3fq summary::after{content:"";flex:none;width:34px;height:34px;border-radius:50%;background:#EAF1E4 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231E4A2E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>") center/18px no-repeat;transition:transform .25s ease,background-color .2s ease}
.v3fq details[open] summary::after{transform:rotate(45deg);background-color:#E1FBC6}
.v3fq summary:focus-visible{outline:3px solid #8CAA5E;outline-offset:2px;border-radius:8px}
.v3fq-a{padding:0 58px 28px 0}
.v3fq-a>p{margin:0 0 12px !important;font-size:17px !important;line-height:1.9 !important;color:#4A4A4A !important}
.v3fq-a>p:last-child{margin-bottom:0 !important}
.v3fq-a a{color:#1E4A2E;font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media (max-width:1023px){.v3fq{grid-template-columns:minmax(0,1fr)}.v3fq .v3fq-t{position:static}}
@media (max-width:640px){.v3fq-s{padding:64px 20px}.v3fq summary{font-size:18px;padding:22px 0}.v3fq-a{padding:0 0 24px}}
@media (prefers-reduced-motion:reduce){.v3fq summary::after{transition:none}}

/* ระยะใต้ hero ห่างเกินไป (ฟีดแบ็ก 2 ธ.ค.) — บริการ: ผังระบบ, โรงเรือน: พืชที่รองรับ */
.v3-service #system-flow{padding-top:64px !important}
.v3-service .sv-hero .sv-hero-g{padding-bottom:0 !important}
body.v3-greenhouse section#top.sv-sec{padding-bottom:40px !important}
@media (max-width:640px){.v3-service #system-flow{padding-top:48px !important}body.v3-greenhouse section#top.sv-sec{padding-bottom:24px !important}}

/* ===== แกลเลอรีรูปผลงาน (หน้ารีวิว: v3_gallery) + กล่องดูรูปใหญ่ (v3.js) ===== */
.v3-gal{padding:24px 28px 28px;border-top:1px solid #DCE6D2;background:#FFFFFF}
.v3-gal-h{margin:0 0 14px;font-family:'Kanit',sans-serif;font-weight:700;font-size:17px;color:#1E4A2E}
.v3-gal-h small{font-family:'IBM Plex Sans Thai',sans-serif;font-weight:400;font-size:14px;color:#557535;margin-left:6px}
.v3-gal-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.v3-gal-i{display:block;border-radius:12px;overflow:hidden;border:1px solid #DCE6D2;background:#EAF1E4;aspect-ratio:3/2;transition:transform .2s,box-shadow .2s}
.v3-gal-i img{display:block;width:100%;height:100%;object-fit:cover}
.v3-gal-i:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(30,74,46,.14)}
.v3-gal-i:focus-visible{outline:3px solid #8CAA5E;outline-offset:2px}
@media (max-width:900px){.v3-gal-g{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.v3-gal{padding:20px 16px}.v3-gal-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.v3-lb{padding:0;border:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100vh;margin:0}
.v3-lb::backdrop{background:rgba(8,20,12,.88)}
.v3-lb-in{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:56px 72px}
.v3-lb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.v3-lb button{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#0F2E1A;cursor:pointer;font-size:22px;line-height:1}
.v3-lb button:focus-visible{outline:3px solid #E1FBC6;outline-offset:2px}
.v3-lb-x{top:16px;right:16px}
.v3-lb-p{left:16px;top:50%;margin-top:-24px}
.v3-lb-n{right:16px;top:50%;margin-top:-24px}
.v3-lb-c{position:absolute;left:0;right:0;bottom:16px;text-align:center;color:#E1FBC6;font-size:14px;padding:0 72px}
@media (max-width:640px){.v3-lb-in{padding:64px 12px 56px}.v3-lb-p,.v3-lb-n{top:auto;bottom:8px;margin:0}.v3-lb-c{bottom:22px}}

/* footer มือถือ: สำรวจ | เพิ่มเติม อยู่แถวเดียวกัน (เดิมต่อกันลงมายาว) — ใช้ได้กับ footer ทั้ง 2 แบบ */
@media (max-width:767px){
footer div:has(> nav[aria-label="สำรวจ"]){display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 20px !important}
footer div:has(> nav[aria-label="สำรวจ"])>*{grid-column:1 / -1;min-width:0}
footer div:has(> nav[aria-label="สำรวจ"])>nav[aria-label="สำรวจ"],footer div:has(> nav[aria-label="สำรวจ"])>nav[aria-label="เพิ่มเติม"]{grid-column:auto}
footer nav[aria-label="สำรวจ"],footer nav[aria-label="เพิ่มเติม"]{gap:12px !important}
}
