/* ===================================================================
   ฮวมฮับ — Design system v4 [BUILD: MATCH-MOCKUP-100]
   ยึดตามภาพ mockup 2 ใบเป๊ะ: nav ไอคอนเส้น, hero ไม่มี eyebrow,
   search 2 กล่องแยก, tab เขียว/น้ำเงิน/เหลือง, stats ลอยทับ hero,
   หมวดวงกลม, การ์ดงาน+สินค้า, why 6 ใบ, steps+reviews, banner ครีม,
   FAQ มีหัวข้อ, footer เขียวเข้ม 7 คอลัมน์ + store badge ดำ
   ท้ายไฟล์คง compat layer ให้ labor.php / agri.php ฯลฯ ไม่พัง
   =================================================================== */
:root{
  --green:#17913f;
  --green2:#0e7a33;
  --green3:#e9f7ec;
  --orange:#f97316;
  --orange2:#ffb200;
  --yellow:#ffc21d;
  --blue:#2f80ed;
  --red:#e14b3c;
  --text:#1c2b21;
  --muted:#68766c;
  --line:#e8eee9;
  --bg:#ffffff;
  --bg-soft:#f7fbf8;
  --card:#ffffff;
  --shadow:0 16px 45px rgba(17,74,37,.12);
  --shadow2:0 10px 30px rgba(14,60,31,.09);
  --radius:22px;

  /* --- alias token เดิม กันไฟล์เก่าพัง --- */
  --color-paddy: var(--green);
  --color-paddy-dark: var(--green2);
  --color-paddy-light: #1fa050;
  --color-husk: var(--bg-soft);
  --color-charcoal: var(--text);
  --color-turmeric: var(--orange2);
  --color-chili: var(--orange);
  --color-sky: var(--blue);
  --color-surface: var(--card);
  --color-paddy-mist: var(--green3);
  --font-display: 'Prompt','Noto Sans Thai',sans-serif;
  --font-body: 'Noto Sans Thai', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius-sm: 12px; --radius-md: 18px; --radius-lg: var(--radius);
  --shadow-xs: 0 4px 12px rgba(20,80,40,.06);
  --shadow-sm: var(--shadow2);
  --shadow-md: var(--shadow);
  --ease: .18s ease;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans Thai",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font-family:inherit}
h1,h2,h3{font-family:var(--font-display);color:var(--green2);margin:0 0 .5rem;font-weight:800}
.mono{font-family:var(--font-mono)}
.container{width:min(1580px, calc(100% - 80px));margin:auto}
.page-shell{width:min(1580px, calc(100% - 80px));margin:auto;padding:1.5rem 0 3rem;}
svg.i{flex:none;display:inline-block;vertical-align:-3px}

/* ---------- Topbar / Nav (ตามรูป: ขาว, ไอคอนเส้น, active เขียว+ขีดใต้) ---------- */
.topbar,.navbar{
  position:sticky;top:0;z-index:100;
  background:#fff;
  border-bottom:1px solid #eef2ee;
  box-shadow:0 4px 18px rgba(10,40,20,.04);
}
.nav,.navbar .inner{
  max-width:1580px; margin:0 auto; width:min(1580px, calc(100% - 80px));
  height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:flex;align-items:center;min-width:auto}
/* โลโก้เป็นรูปเดียว (image6.jpg มีไอคอน+ข้อความในตัวแล้ว) */
.brand-logo{height:56px;width:auto;display:block;border-radius:12px}
/* .brand-mark คงไว้เป็น compat เผื่อหน้าอื่นยังเรียกใช้ */
.brand-mark{
  width:52px;height:52px;border-radius:16px;
  background:linear-gradient(135deg,#ffe66d 0%,#10a64d 55%,#006837 100%);
  display:grid;place-items:center;
  box-shadow:0 10px 24px rgba(13,129,60,.22);
  color:white;font-size:22px;font-weight:900;flex:none;
}
.brand h1{font-size:22px;line-height:1;margin:0;color:var(--green);font-weight:900;letter-spacing:-.5px}
.brand p{margin:4px 0 0;font-size:11px;color:#2b5137;font-weight:700;display:block;font-family:var(--font-body)}
.menu,.navbar nav{
  display:flex;
  align-items:center;
  gap:0;
  flex:1;
  justify-content:center;
  flex-wrap:nowrap;
  min-width:0;
}
.menu a,.navbar nav a{
  position:relative;
  padding:27px 8px;
  color:#3c4a41;
  font-size:12px;
  line-height:1;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  transition:.18s ease;
}
.menu a svg.i,.navbar nav a svg.i{color:#5d6d63;transition:.18s ease}
.menu a:hover,.navbar nav a:hover{color:var(--green)}
.menu a:hover svg.i{color:var(--green)}
.menu a.active,.navbar nav a.nav-active{color:var(--green);font-weight:800}
.menu a.active svg.i,.navbar nav a.nav-active svg.i{color:var(--green)}
.menu a.active:after,.navbar nav a.nav-active:after{
  content:"";position:absolute;left:7px;right:7px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--green);
}
.actions{display:flex;align-items:center;gap:12px}
.icon-btn,.btn{
  height:46px;border-radius:13px;border:1.5px solid #e2e9e3;background:white;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-weight:700;cursor:pointer;transition:.18s ease;white-space:nowrap;
}
.icon-btn{width:46px;font-size:18px;position:relative;border-radius:50%;color:#3c4a41}
.btn{padding:0 22px;font-size:14px}
.btn:hover,.icon-btn:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}
.btn-outline{color:#2b3a30;border-color:#dfe6e0;background:#fff;font-weight:700}
.btn-green,.btn-primary{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 10px 22px rgba(18,130,60,.22);font-weight:800}
.btn-green:hover{background:var(--green2)}
.btn-orange{background:linear-gradient(135deg,#fb8a00,#f96a00);color:#fff;border-color:#f97a00;box-shadow:0 12px 26px rgba(249,115,22,.28);font-weight:800}
.btn-secondary{background:#fff;color:var(--green);border:1.5px solid #9acaa9}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
.mobile-toggle{display:none;border-radius:13px}
.cart-badge{position:absolute;top:-5px;right:-5px;background:var(--orange);color:#fff;font-family:var(--font-mono);font-size:.65rem;border-radius:999px;min-width:17px;height:17px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.acct-dropdown{position:absolute;right:0;top:calc(100% + .6rem);background:#fff;border-radius:16px;
  box-shadow:var(--shadow), 0 2px 6px rgba(0,0,0,.06);min-width:13rem;padding:.45rem;z-index:60;border:1px solid rgba(0,0,0,.06);}
.acct-dropdown a{display:flex;align-items:center;gap:.6rem;padding:.6rem .75rem;border-radius:.7rem;
  font-size:.8rem;color:#1f2937;text-decoration:none;white-space:nowrap;transition:background .15s ease;}
.acct-dropdown a:hover{background:var(--green3)}
.acct-dropdown hr{border:none;border-top:1px solid rgba(0,0,0,.08);margin:.4rem .2rem}
.acct-trigger{background:none;border:1.5px solid #e2e9e3;cursor:pointer;font-size:.84rem;font-weight:800;color:var(--text);
  display:flex;align-items:center;gap:.4rem;padding:0 18px;height:46px;border-radius:13px;font-family:inherit;}
.acct-trigger:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}
[x-cloak]{display:none!important}

/* ---------- Hero (ตามรูป: ซ้ายขาว ขวารูปคนชิดขอบจอ เฟดซ้าย) ---------- */
.hero-wrap{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:#fff;
  overflow:hidden;
}
.hero-people{
  position:absolute;top:0;right:0;bottom:0;width:56%;z-index:1;
}
.hero-people img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 10%,#000 26%);
          mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 10%,#000 26%);
}
.hero-people:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:26%;
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,.92));pointer-events:none;
}
.hero{position:relative;z-index:2;padding:44px 0 88px;display:grid;grid-template-columns:minmax(0,46%) 1fr;align-items:start;gap:24px}
.hero-copy{max-width:660px}
.hero h2{margin:0 0 16px;font-size:clamp(34px,4.2vw,60px);line-height:1.08;letter-spacing:-1px;font-weight:800}
.hero h2 .green{color:var(--green)}
.hero h2 .orange{color:var(--orange)}
.hero h2 .heart{font-size:.55em;vertical-align:.5em}
.hero-desc{font-size:16.5px;line-height:1.75;color:#415046;margin:0 0 26px;max-width:560px;font-weight:500}

/* search: กล่องตำแหน่ง + กล่องค้นหา แยกกัน + ปุ่มส้ม (ตามรูป) */
.main-search{
  width:100%;display:grid;grid-template-columns:215px 1fr 140px;gap:12px;margin-bottom:22px;max-width:660px;
}
.field{
  height:60px;border:1.5px solid #e4ece6;background:#fff;border-radius:15px;
  display:flex;align-items:center;gap:11px;padding:0 16px;color:#1e3024;
  box-shadow:0 8px 22px rgba(20,80,40,.07);
}
.field svg.i,.field .ico{color:var(--green);font-size:18px;flex:none}
.field label{display:block;font-size:11px;color:#75837a;margin-bottom:1px;font-weight:600;line-height:1.2}
.field select,.field input{border:0;background:transparent;outline:0;width:100%;font-size:14.5px;font-weight:700;color:#213127}
.field input::placeholder{font-weight:500;color:#9aa49d}
.main-search .btn-orange{height:60px;border-radius:15px;font-size:15.5px}

/* big tabs: เขียว / น้ำเงิน / เหลือง — ไอคอนในกล่องขาวโปร่งซ้าย (ตามรูป) */
.hero-tabs{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.big-tab{
  min-width:186px;height:74px;border-radius:19px;border:0;
  display:flex;align-items:center;gap:13px;padding:0 22px 0 14px;font-size:17px;font-weight:800;
  box-shadow:0 16px 30px rgba(20,80,40,.16);transition:.18s ease;color:#fff;
}
.big-tab:hover{transform:translateY(-2px);box-shadow:0 20px 38px rgba(20,80,40,.22)}
.big-tab span{
  width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.22);
  display:grid;place-items:center;font-size:22px;flex:none;
}
.big-tab small{display:block;font-size:11.5px;margin-top:1px;font-weight:600;opacity:.92}
.big-tab.green{background:linear-gradient(135deg,#1a9c4a,#0f7c37)}
.big-tab.blue{background:linear-gradient(135deg,#3f8dff,#2b6cdd)}
.big-tab.orange,.big-tab.yellow{background:linear-gradient(135deg,#ffc61d,#ff9e00)}
.big-tab.orange small,.big-tab.yellow small{color:#fff9e6}

/* trust line: เช็ควงกลมเขียวทึบ (ตามรูป) */
.trust-line{display:flex;gap:24px;flex-wrap:wrap;margin-top:8px;color:#2b4b36;font-size:13.5px;font-weight:700;align-items:center}
.trust-line span{display:inline-flex;align-items:center;gap:7px}
.trust-line svg.i{color:var(--green)}

/* ---------- Stats (การ์ดลอยทับ hero — ตามรูป) ---------- */
.stats{
  position:relative;z-index:10;margin-top:-52px;background:white;border:1px solid #eef2ee;
  border-radius:20px;box-shadow:0 20px 50px rgba(17,74,37,.10);
  display:grid;grid-template-columns:repeat(5,1fr);overflow:hidden;
}
.stat{display:flex;align-items:center;gap:16px;padding:26px 26px;border-right:1px solid #eff3ef}
.stat:last-child{border-right:0}
.stat .circle{width:58px;height:58px;border-radius:50%;background:#e9f7ec;display:grid;place-items:center;font-size:22px;flex:none;color:var(--green)}
.stat:nth-child(2) .circle{background:#eaf2ff;color:var(--blue)}
.stat:nth-child(3) .circle{background:#fff0e3;color:var(--orange)}
.stat:nth-child(4) .circle{background:#e9f7ec;color:var(--green)}
.stat:nth-child(5) .circle{background:#fff6d9;color:#f0a500}
.stat b{display:block;font-family:var(--font-display);font-size:24px;color:#153f26;line-height:1;font-weight:800;letter-spacing:-.4px}

/* ---------- Mini stats (สำหรับ dashboard ทั่วไป ไม่ใช่ hero overlap) ---------- */
.mini-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#eef2ee;
  border:1px solid #eef2ee;border-radius:16px;overflow:hidden;margin-bottom:16px;
}
.mini-stat{display:flex;align-items:center;gap:14px;padding:18px 20px;background:#fff}
.mini-stat .circle{width:46px;height:46px;border-radius:50%;background:#e9f7ec;display:grid;place-items:center;font-size:19px;flex:none;color:var(--green)}
.mini-stat:nth-child(2) .circle{background:#eaf2ff;color:var(--blue)}
.mini-stat:nth-child(3) .circle{background:#fff0e3;color:var(--orange)}
.mini-stat b{display:block;font-family:var(--font-display);font-size:18px;color:#153f26;line-height:1.2;font-weight:800}
.mini-stat span{font-size:12px;color:var(--muted)}
@media (max-width:640px){ .mini-stats{grid-template-columns:1fr} }
.stat:nth-child(2) b{color:#1d4f8f}.stat:nth-child(3) b{color:#c05a10}.stat:nth-child(5) b{color:#b07a00}
.stat span{display:block;font-size:12.5px;color:#6b7a70;margin-top:6px;font-weight:600}

/* ---------- Categories (วงกลมไอคอน + ปุ่ม CTA ขวา 2 ปุ่ม — ตามรูป) ---------- */
.category-zone{position:relative;z-index:3;padding:22px 0 8px}
.category-shell{background:white;border:1px solid #eef2ee;border-radius:20px;box-shadow:var(--shadow2);display:grid;grid-template-columns:1fr 320px;gap:22px;padding:20px 22px;align-items:center}
.cat-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:8px}
.cat{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;transition:.18s ease;text-align:center;padding:8px 2px;border-radius:16px}
.cat:hover{background:#f4faf5}
.cat .ci{width:60px;height:60px;border-radius:50%;background:#f0f7f1;display:grid;place-items:center;font-size:26px;box-shadow:inset 0 0 0 1px #e8f0e9}
.cat:nth-child(2) .ci{background:#fff2e2}.cat:nth-child(3) .ci{background:#e9f4ff}.cat:nth-child(4) .ci{background:#fff6d9}
.cat:nth-child(5) .ci{background:#ffeef0}.cat:nth-child(6) .ci{background:#fff0e3}.cat:nth-child(7) .ci{background:#eef2ff}
.cat:nth-child(8) .ci{background:#fff2e2}.cat:nth-child(9) .ci{background:#ecf9ee}
.cat:last-child .ci{background:#e9f7ec;color:var(--green)}
.cat b{font-size:12.5px;color:#22492f;font-weight:700;line-height:1.3}
.cat span{font-size:10.5px;color:#7c897f;font-weight:600}
.side-cta{display:grid;gap:12px}
.side-cta a{border-radius:15px;padding:14px 20px;font-weight:800;font-size:15.5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:66px;text-align:center;transition:.18s ease}
.side-cta a small{font-size:12px;font-weight:600;opacity:.9}
.side-cta .post{background:linear-gradient(135deg,#1a9c4a,#0e7a33);color:#fff;box-shadow:0 12px 25px rgba(18,130,60,.22)}
.side-cta .sell{background:#fff;border:1.5px solid #bfe3c8;color:#0f7939}
.side-cta .sell small{color:#4e7a5c}
.side-cta a:hover{transform:translateY(-2px)}

/* ---------- Sections ---------- */
.section{padding:16px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.section-title{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-size:19px;color:var(--green2);font-weight:800}
.section-title .ti{width:34px;height:34px;border-radius:10px;background:var(--green3);display:grid;place-items:center;font-size:17px;flex:none}
.section-title.orange{color:#d3660c}
.section-title.orange .ti{background:#fff0e3}
.view-all{font-size:13px;color:var(--green);font-weight:800;display:inline-flex;align-items:center;gap:4px}
.view-all.orange{color:var(--orange)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.panel{background:white;border:1px solid #eef2ee;border-radius:20px;box-shadow:var(--shadow2);padding:22px;overflow:hidden}
.panel-more{display:flex;justify-content:center;margin-top:16px}
.panel-more .btn{height:44px;border-radius:12px;font-size:13.5px;border-color:#dfe6e0;color:#2b4b36}

/* การ์ดงาน / สินค้า (ตามรูป: tag เข้มบนรูป, ราคาส้ม, pill ระยะทาง, ดาวสินค้า) */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.cards-compact{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.cards-compact .thumb{height:88px;font-size:1.6rem}
.cards-compact .item-body{padding:8px 9px 10px}
.cards-compact .item-body h4{font-size:12.5px;line-height:1.3;margin:0 0 2px}
.cards-compact .item-body p{font-size:10.5px;margin:0 0 4px}
.cards-compact .price{font-size:12.5px}
@media (max-width:1100px){ .cards-compact{grid-template-columns:repeat(4,1fr)} }
@media (max-width:640px){ .cards-compact{grid-template-columns:repeat(2,1fr)} }
.item-card{background:white;border:1px solid #e9efe9;border-radius:16px;overflow:hidden;box-shadow:0 6px 16px rgba(20,80,40,.05);transition:.18s ease;display:block}
.item-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(20,80,40,.13)}
.thumb{height:128px;background:#eef5ef center/cover no-repeat;position:relative;display:flex;align-items:center;justify-content:center;font-size:2.4rem;overflow:hidden}
.tag{position:absolute;left:9px;top:9px;background:rgba(20,45,28,.72);color:#fff;border-radius:999px;font-size:10.5px;font-weight:700;padding:4px 10px;display:inline-flex;align-items:center;gap:4px;backdrop-filter:blur(3px)}
.fav{position:absolute;right:9px;top:9px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:#54655a;font-size:13px}
.item-body{padding:12px 13px 14px}
.item-body h4{font-family:var(--font-body);font-size:14.5px;line-height:1.3;margin:0 0 3px;color:#1d3726;font-weight:800}
.item-body p{font-size:11.5px;color:#71806f;margin:0 0 8px;font-weight:600}
.price{font-size:16px;color:var(--orange);font-weight:800;margin-bottom:8px;letter-spacing:-.2px}
.meta{font-size:11px;color:#5c6e62;font-weight:700;display:inline-flex;align-items:center;gap:5px;background:#f1f6f2;border-radius:999px;padding:4px 10px}
.meta.rating{background:transparent;padding:0;color:#5c6e62}
.meta .star{color:#ffab00}
.empty-panel{padding:2.5rem 1.5rem;text-align:center;background:#fbfdfb;border:1px dashed #cfe3d4;border-radius:16px}
.empty-panel p{color:var(--muted);font-weight:600;margin-bottom:1rem}

/* ---------- ทำไมต้องฮวมฮับ (แถบเขียวอ่อน + ภาพหมู่บ้านขวา + 6 ใบ) ---------- */
.why{
  background:linear-gradient(90deg,rgba(240,250,242,.97) 0%,rgba(247,252,248,.9) 68%,rgba(247,252,248,.55) 100%),
    url('/assets/bg/image2.jpg') right center/contain no-repeat #f2faf4;
  border:1px solid #e6f0e8;border-radius:20px;box-shadow:var(--shadow2);padding:22px;margin-top:16px;
}
.why-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:14px}
.why-card{background:#fff;border:1px solid #e9efe9;border-radius:15px;padding:16px;display:flex;gap:12px;align-items:flex-start;min-height:96px;box-shadow:0 4px 12px rgba(20,80,40,.04)}
.why-card .wi{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:20px;flex:none;background:#e9f7ec}
.why-card:nth-child(2) .wi{background:#fff0e3}
.why-card:nth-child(3) .wi{background:#e9f7ec}
.why-card:nth-child(4) .wi{background:#ecf9ee}
.why-card:nth-child(5) .wi{background:#eaf2ff}
.why-card:nth-child(6) .wi{background:#ffecec}
.why-card b{display:block;color:#1f5f30;font-size:13.5px;margin-bottom:3px;font-weight:800}
.why-card:nth-child(5) b{color:#2662c0}
.why-card:nth-child(6) b{color:#c8382a}
.why-card span{font-size:11px;color:#6b796f;line-height:1.5;font-weight:600}

/* ---------- Steps + Reviews ---------- */
.steps-reviews{display:grid;grid-template-columns:1fr 1.15fr;gap:20px;margin-top:4px}
.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.step{background:#fff;border:1px solid #e9efe9;border-radius:16px;padding:20px 12px 16px;text-align:center;position:relative;min-height:150px}
.step:after{content:"›";position:absolute;right:-13px;top:52px;color:#c4cfc7;font-size:34px;font-weight:300;z-index:2}
.step:last-child:after{display:none}
.step .num{position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;background:var(--green);color:white;font-size:12px;font-weight:800;display:grid;place-items:center}
.step:nth-child(3) .num{background:var(--orange)}
.step .si{width:52px;height:52px;margin:10px auto 10px;border-radius:14px;background:#eff7f1;display:grid;place-items:center;font-size:24px}
.step:nth-child(2) .si{background:#fff6d9}
.step:nth-child(3) .si{background:#fff0e3}
.step:nth-child(4) .si{background:#e9f7ec}
.step b{display:block;color:#1d4c2a;font-size:13.5px;font-weight:800}
.step span{display:block;color:#71806f;font-size:11px;margin-top:5px;font-weight:600;line-height:1.5}

.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.review{background:white;border:1px solid #e9efe9;border-radius:16px;padding:16px;min-height:150px;position:relative;box-shadow:0 4px 12px rgba(20,80,40,.04)}
.review-head{display:flex;gap:10px;align-items:center;margin-bottom:4px}
.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#d8f7df,#ffd88b);flex:none;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.review b{font-size:12.5px;color:#1e3926;font-weight:800}.review small{display:block;color:#74836f;font-weight:600;font-size:10.5px}
.stars{color:#ff9d00;font-size:13px;margin:4px 0 8px;letter-spacing:2px}
.review p{font-size:11.5px;color:#4b5d51;line-height:1.65;margin:0;font-weight:500}
.review .qmark{position:absolute;right:14px;bottom:8px;font-family:Georgia,serif;font-size:42px;line-height:1;color:var(--orange);opacity:.85;font-weight:700}

/* ---------- Banner ครีม (ปุ่ม 2 บรรทัด — ตามรูป) ---------- */
.banner{
  margin-top:20px;border-radius:20px;overflow:hidden;position:relative;
  background:linear-gradient(90deg,rgba(255,247,224,.94) 0%,rgba(255,250,238,.9) 40%,rgba(255,248,230,.72) 68%,rgba(255,251,240,.35) 100%),
    url('/assets/bg/image3.jpg') right center/cover no-repeat #fff7e2;
  border:1px solid #f5e3b8;min-height:128px;display:flex;align-items:center;justify-content:center;gap:34px;padding:26px 40px;flex-wrap:wrap;
}
.banner-copy{text-align:left}
.banner-copy .pre{color:#7a6a45;font-weight:700;font-size:13.5px;margin:0 0 4px}
.banner h3{font-size:26px;line-height:1.2;margin:0 0 6px;color:var(--orange);font-weight:800}
.banner .sub{margin:0;color:#5c5133;font-size:13px;font-weight:600}
.banner-actions{display:flex;gap:16px;flex-wrap:wrap}
.banner-actions .btn{height:64px;border-radius:15px;flex-direction:row;gap:11px;padding:0 26px}
.banner-actions .btn .bi{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:18px}
.banner-actions .btn div{text-align:left;line-height:1.25}
.banner-actions .btn div small{display:block;font-size:11px;font-weight:600;opacity:.9}

/* ---------- FAQ + Helpbox (มีหัวข้อ + ไอคอน ? — ตามรูป) ---------- */
.faq-help{display:grid;grid-template-columns:1fr 340px;gap:18px;margin-top:20px;align-items:start}
.faq-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.faq-head b{font-family:var(--font-display);font-size:15.5px;color:#274e33;font-weight:800}
.faq-head a{font-size:12px;color:var(--green);font-weight:700}
.faq{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid #eef2ee;border-radius:16px;overflow:hidden;box-shadow:var(--shadow2)}
.faq-item{border-right:1px solid #eff3ef}
.faq-item:last-child{border-right:0}
.faq-q{width:100%;padding:16px 16px;font-size:12.5px;font-weight:700;color:#45584b;display:flex;align-items:center;gap:9px;background:none;border:none;cursor:pointer;text-align:left;font-family:inherit;}
.faq-q .qi{width:26px;height:26px;border-radius:50%;background:#eef4ef;color:#5c6e62;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.faq-q .chev{margin-left:auto;color:#8b988f}
.faq-a{padding:0 18px 16px 51px;font-size:.78rem;}
.helpbox{background:white;border:1.5px solid #bde7ca;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow2)}
.helpbox .headset{width:46px;height:46px;border-radius:50%;background:var(--green3);display:grid;place-items:center;font-size:22px;flex:none}
.helpbox b{display:block;color:#13823c;font-size:14.5px;font-weight:800}.helpbox span{font-size:11.5px;color:#68786d;font-weight:600}
.helpbox .btn{height:44px;padding:0 20px;margin-left:auto;border-radius:12px;font-size:13px}

/* ---------- Footer เขียวเข้ม (ตามรูป) ---------- */
footer,.site-footer{
  margin-top:26px;background:linear-gradient(135deg,#12592b,#0b4220);color:white;padding:44px 0 24px;
  position:relative;overflow:hidden;
}
footer:after,.site-footer:after{
  content:"";position:absolute;right:0;bottom:0;width:420px;height:260px;
  background:url('/assets/bg/image4.jpg') center/cover no-repeat;
  opacity:.10;clip-path:ellipse(70% 65% at 72% 75%);
}
.foot{position:relative;z-index:2;display:grid;grid-template-columns:1.5fr repeat(4,1fr) 1.15fr 1.15fr;gap:30px}
.foot-brand{display:flex;align-items:center;margin-bottom:14px}
/* โลโก้รูปเดียวใน footer — รองพื้นขาวให้เด่นบนพื้นเขียวเข้ม */
.foot-logo{height:58px;width:auto;display:block;border-radius:12px;background:#fff;padding:4px 10px}
.foot h3{margin:0;color:#fff;font-size:20px;font-weight:800;font-family:var(--font-display)}
.foot p{color:#d5e9db;font-size:12.5px;line-height:1.75;margin:0 0 16px}
.social{display:flex;gap:10px}
.social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:15px;transition:.18s ease}
.social a:hover{background:rgba(255,255,255,.24)}
.foot h4{font-size:14px;margin:6px 0 14px;color:#fff;font-weight:800}
.foot a,.foot li{color:#cfe4d6;font-size:12.5px;font-weight:500;transition:.15s ease}
.foot a:hover{color:#fff}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.foot .contact-li{display:flex;gap:9px;align-items:flex-start;line-height:1.55}
.foot .contact-li svg.i{color:#8fd0a4;margin-top:2px}
.store{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.store-badge{
  display:flex;align-items:center;gap:10px;background:#0a130d;border:1px solid rgba(255,255,255,.22);
  border-radius:11px;padding:8px 14px;color:#fff;width:fit-content;min-width:158px;
}
.store-badge .sb-icon{font-size:22px;line-height:1}
.store-badge small{display:block;font-size:8.5px;font-weight:500;letter-spacing:.4px;opacity:.75;text-transform:uppercase}
.store-badge b{display:block;font-size:14px;font-weight:700;line-height:1.15}
.store-badge .soon{font-size:9px;color:#ffd977;font-weight:700}
.store-note{color:#bfdcc8;font-size:11.5px;font-weight:500;margin:0 0 10px}
.copy-row{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);flex-wrap:wrap}
.copyright{color:#b5d0bd;font-size:12px;font-weight:600;text-align:center;flex:1}
.copy-tag{color:#9fd8b1;font-size:12px;font-weight:700;white-space:nowrap}

/* ---------- Responsive ---------- */
@media (max-width:1240px){
  .container,.page-shell{width:min(100% - 40px,1100px)}
  .menu,.navbar nav{display:none}
  .mobile-toggle{display:inline-flex}
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:36px}
  .hero-people{position:relative;width:100%;height:340px;order:2;margin-top:8px}
  .hero-people img{-webkit-mask-image:none;mask-image:none;border-radius:22px}
  .stats{grid-template-columns:repeat(3,1fr);margin-top:18px}
  .stat:nth-child(3){border-right:0}.stat:nth-child(4),.stat:nth-child(5){border-top:1px solid var(--line)}
  .category-shell{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(5,1fr)}
  .split,.steps-reviews{grid-template-columns:1fr}
  .why-grid{grid-template-columns:repeat(3,1fr)}
  .faq-help{grid-template-columns:1fr}
  .faq{grid-template-columns:repeat(2,1fr)}
  .faq-item:nth-child(2n){border-right:0}
  .faq-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .foot{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:760px){
  .container,.page-shell{width:min(100% - 24px,650px)}
  .topbar .nav,.navbar .inner{height:64px}
  .brand-logo{height:42px}.foot-logo{height:48px}.brand-mark{width:42px;height:42px;font-size:18px}
  .actions .btn-outline{display:none}.actions .btn-green{padding:0 15px;height:42px}
  .hero{padding-top:26px}
  .hero h2{font-size:32px;letter-spacing:-.5px}.hero-desc{font-size:14px}
  .main-search{grid-template-columns:1fr}.field{height:56px}
  .main-search .btn-orange{height:56px}
  .hero-tabs{display:grid;grid-template-columns:1fr}.big-tab{width:100%}
  .hero-people{height:230px}
  .stats{grid-template-columns:1fr}.stat{border-right:0;border-top:1px solid var(--line)}.stat:first-child{border-top:0}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .side-cta{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
  .why-grid,.steps-grid,.review-grid,.faq{grid-template-columns:1fr}
  .faq-item{border-right:0;border-bottom:1px solid var(--line)}
  .faq-item:last-child{border-bottom:0}
  .step:after{display:none}
  .banner{align-items:flex-start;flex-direction:column;padding:24px}.banner h3{font-size:22px}
  .helpbox{flex-wrap:wrap}.helpbox .btn{margin-left:0;width:100%}
  .foot{grid-template-columns:1fr}
  .copy-row{flex-direction:column}
}

/* ===================================================================
   Compat layer — คง class เดิมที่ labor.php / labor_post.php /
   labor_detail.php / agri.php ใช้อยู่
   =================================================================== */
.stall-card{
  position:relative;background:var(--card);border-radius:18px;border:1px solid var(--line);
  box-shadow:0 8px 20px rgba(20,80,40,.06);transition:.18s ease;overflow:hidden;display:block;
}
.stall-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(20,80,40,.13)}
.stall-card .body{padding:1.1rem}
.stall-card .footer{border-top:1px solid var(--line);padding:.5rem 1rem;background:var(--green3);font-size:.85rem}
.stall-tag{
  position:absolute;top:.75rem;right:-4px;background:var(--orange2);color:#1b2b1f;
  font-family:var(--font-mono);font-size:.7rem;font-weight:700;padding:.3rem .6rem;
  clip-path:polygon(0 0,100% 0,100% 100%,8px 100%,0 70%);
}
.badge-live{background:var(--orange);color:#fff;font-family:var(--font-mono);font-size:.7rem;font-weight:700;padding:.15rem .55rem;border-radius:999px}
.pill{display:inline-block;font-size:.75rem;padding:.2rem .6rem;border-radius:999px;background:var(--green3);color:var(--green);border:1px solid #cdeccf}
.pill-sky{background:rgba(47,128,237,.1);color:var(--blue);border-color:rgba(47,128,237,.2)}
.pill-chili{background:rgba(249,115,22,.1);color:var(--orange);border-color:rgba(249,115,22,.2)}
.chip{font-size:.85rem;padding:.4rem .9rem;border-radius:999px;border:1.5px solid var(--line);background:var(--card);cursor:pointer;transition:.18s ease}
.chip:hover{border-color:var(--green)}
.chip.active{background:linear-gradient(135deg,#1a9c4a,#0e7a33);color:#fff;border-color:#0e7a33}
.input-field,select.input-field,textarea.input-field{
  width:100%;border:1.5px solid var(--line);border-radius:14px;padding:.6rem .8rem;background:var(--card);
  font-family:var(--font-body);font-size:.95rem;transition:border-color .15s ease,box-shadow .15s ease;
}
.input-field:focus{outline:none;border-color:var(--orange2);box-shadow:0 0 0 3px rgba(255,178,0,.25)}
label.field-label{font-size:.85rem;font-weight:700;display:block;margin-bottom:.3rem;color:var(--green2)}
.divider-list > * + *{border-top:1px solid var(--line)}
.text-muted{color:var(--muted);font-size:.875rem}
.flash{padding:.8rem 1.1rem;border-radius:14px;margin-bottom:1rem;font-size:.9rem;border:1px solid transparent}
.flash-success{background:var(--green3);color:var(--green2);border-color:#cdeccf}
.flash-error{background:#fdeaea;color:#c0392b;border-color:#f6cccc}
.footer-note{text-align:center;font-size:.75rem;color:rgba(38,32,25,.45);padding:1.5rem 0}
.grid{display:grid;gap:1.25rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.flex{display:flex}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.gap-2{gap:.5rem}.gap-3{gap:.75rem}
/* eyebrow — index ใหม่ไม่ใช้แล้ว (รูปไม่มี) แต่คงไว้เผื่อหน้าอื่นอ้างถึง */
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 15px;border-radius:999px;background:#effaef;border:1px solid #d7eedb;
  color:#0b7433;font-weight:800;font-size:12px;margin-bottom:18px;
}

/* ===================================================================
   Motion layer — เหมือนเดิม ปรับ selector ให้เข้าโครงใหม่
   =================================================================== */
:root{ --bounce: cubic-bezier(.34,1.56,.64,1); }

@keyframes popIn{
  0%{opacity:0; transform:translateY(22px) scale(.94);}
  60%{opacity:1; transform:translateY(-3px) scale(1.015);}
  100%{opacity:1; transform:translateY(0) scale(1);}
}
@keyframes fadeSlideUp{
  0%{opacity:0; transform:translateY(16px);}
  100%{opacity:1; transform:translateY(0);}
}
@keyframes heroImgIn{
  0%{opacity:0; transform:translateX(30px);}
  100%{opacity:1; transform:translateX(0);}
}

.hero h2{ animation: fadeSlideUp .6s var(--bounce) .05s both; }
.hero-desc{ animation: fadeSlideUp .6s var(--bounce) .14s both; }
.main-search{ animation: fadeSlideUp .6s var(--bounce) .22s both; }
.hero-tabs{ animation: fadeSlideUp .6s var(--bounce) .3s both; }
.trust-line{ animation: fadeSlideUp .6s var(--bounce) .38s both; }
.hero-people{ animation: heroImgIn .8s ease .1s both; }

.stat, .cat, .item-card, .why-card, .step, .review{
  animation: popIn .5s var(--bounce) both;
}
.stat:nth-child(1),.cat:nth-child(1),.item-card:nth-child(1),.why-card:nth-child(1),.step:nth-child(1),.review:nth-child(1){animation-delay:.02s}
.stat:nth-child(2),.cat:nth-child(2),.item-card:nth-child(2),.why-card:nth-child(2),.step:nth-child(2),.review:nth-child(2){animation-delay:.07s}
.stat:nth-child(3),.cat:nth-child(3),.item-card:nth-child(3),.why-card:nth-child(3),.step:nth-child(3),.review:nth-child(3){animation-delay:.12s}
.stat:nth-child(4),.cat:nth-child(4),.item-card:nth-child(4),.why-card:nth-child(4),.step:nth-child(4){animation-delay:.17s}
.stat:nth-child(5),.cat:nth-child(5),.why-card:nth-child(5),.step:nth-child(5){animation-delay:.22s}
.cat:nth-child(6),.why-card:nth-child(6){animation-delay:.27s}
.cat:nth-child(7){animation-delay:.32s}
.cat:nth-child(n+8){animation-delay:.36s}

@keyframes wiggle{
  0%,100%{transform:rotate(0) scale(1);}
  30%{transform:rotate(-10deg) scale(1.1);}
  60%{transform:rotate(8deg) scale(1.1);}
}
.cat:hover .ci{ animation: wiggle .5s var(--bounce); }
.item-card{ transition: transform .3s var(--bounce), box-shadow .3s var(--bounce); }
.item-card .thumb{ transition: transform .4s var(--bounce); }
.item-card:hover .thumb{ transform:scale(1.07); }
.why-card{ transition: transform .3s var(--bounce), box-shadow .3s var(--bounce); }
.why-card:hover{ transform:translateY(-4px); box-shadow:0 14px 28px rgba(20,80,40,.12); }
.why-card:hover .wi{ animation: wiggle .5s var(--bounce); }
.step:hover .si{ animation: wiggle .5s var(--bounce); }
.big-tab{ transition: transform .3s var(--bounce), box-shadow .3s var(--bounce); }
.big-tab:hover span{ animation: wiggle .5s var(--bounce); }
.btn,.icon-btn{ transition: transform .2s var(--bounce), box-shadow .2s var(--bounce), background .2s ease; }
.btn:active,.icon-btn:active{ transform:scale(.94); }
.faq-q .chev{ display:inline-block; transition: transform .25s ease; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- จอเล็กมาก ---------- */
@media (max-width:420px){
  .hero h2{ font-size:27px; }
  .hero-desc{ font-size:13.5px; }
  .section-title{ font-size:16px; }
  .banner h3{ font-size:19px; }
  .stat .circle{ width:46px; height:46px; }
  .cat .ci{ width:50px; height:50px; font-size:22px; }
  .item-body h4{ font-size:13px; }
}

/* ===================================================================
   Navigation Intelligence v22
   เมนูหลักปรับตามพื้นที่จริง, active ตาม route context, เมนูบัญชีไม่ล้นจอ
   =================================================================== */
.hh-main-nav{
  display:flex!important;align-items:center;justify-content:center;gap:6px;min-width:220px;flex:1;overflow:visible;
}
.hh-nav-visible{display:flex;align-items:stretch;justify-content:center;min-width:0;overflow:hidden;white-space:nowrap}
.hh-nav-visible .hh-nav-link{flex:0 0 auto;padding-inline:9px}
.hh-nav-more{position:relative;flex:0 0 auto}
.hh-nav-more-trigger{
  height:42px;border:1px solid #e3e9e4;border-radius:12px;background:#fff;color:#415046;padding:0 10px;
  display:flex;align-items:center;gap:5px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;
}
.hh-nav-more-trigger:hover,.hh-nav-more-trigger[aria-expanded="true"]{color:var(--green);background:var(--green3);border-color:#b9ddc4}
.hh-nav-overflow{
  position:absolute;top:calc(100% + 12px);right:0;z-index:170;width:260px;max-height:min(560px,calc(100vh - 110px));overflow:auto;
  padding:8px;background:#fff;border:1px solid #e5ebe6;border-radius:16px;box-shadow:0 22px 55px rgba(20,55,30,.18);
}
.hh-nav-overflow .hh-nav-link{
  width:100%;min-height:44px;padding:10px 12px!important;border-radius:11px;font-size:13px;justify-content:flex-start;
}
.hh-nav-overflow .hh-nav-link:after{display:none!important}
.hh-nav-overflow .hh-nav-link.active{background:var(--green3)}

.language-switcher select{
  border:1px solid #d7ddd9;border-radius:999px;padding:.5rem .7rem;background:#fff;max-width:112px;
}
.hh-account{position:relative}
.hh-account-avatar{
  width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),#36b768);
  color:#fff;font-weight:900;font-size:12px;flex:none;
}
.acct-trigger{max-width:210px;padding:0 12px}
.hh-account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:128px}
.acct-dropdown{
  --hh-account-max-height:min(680px,calc(100vh - 100px));
  width:min(720px,calc(100vw - 24px));min-width:320px;max-height:var(--hh-account-max-height);overflow:auto;
  padding:0;right:0;top:calc(100% + .65rem);border-radius:20px;overscroll-behavior:contain;
}
.hh-account-head{
  position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;padding:16px 18px 12px;background:rgba(255,255,255,.97);
  border-bottom:1px solid #edf1ee;backdrop-filter:blur(12px);
}
.hh-account-head-avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--green),#39b86b);color:#fff;display:grid;place-items:center;font-weight:900}
.hh-account-head strong{display:block;font-size:14px;color:#1c2b21}.hh-account-head small{display:block;color:#758078;font-size:11px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hh-account-search{position:sticky;top:71px;z-index:2;background:#fff;padding:10px 18px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf1ee}
.hh-account-search input{width:100%;height:40px;border:1px solid #dfe6e0;border-radius:11px;padding:0 12px;outline:0}.hh-account-search input:focus{border-color:#69b981;box-shadow:0 0 0 3px rgba(23,145,63,.1)}
.hh-account-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}
.hh-account-group{border:1px solid #edf1ee;border-radius:15px;padding:10px;background:#fbfdfb;min-width:0}
.hh-account-group h3{font-size:11px;letter-spacing:.04em;color:#6d7a70;margin:2px 6px 7px;text-transform:uppercase}
.hh-account-grid{display:grid;gap:3px}
.acct-dropdown .hh-account-grid a{padding:9px 10px;font-size:12.5px;min-width:0;white-space:normal;line-height:1.35}
.acct-dropdown .hh-account-grid a.is-active{background:var(--green3);color:var(--green2);font-weight:800;box-shadow:inset 3px 0 0 var(--green)}
.hh-account-item-icon{width:26px;height:26px;border-radius:8px;background:#fff;display:grid;place-items:center;flex:none;border:1px solid #edf1ee}
.hh-account-foot{position:sticky;bottom:0;padding:10px 14px;background:rgba(255,255,255,.97);border-top:1px solid #edf1ee;backdrop-filter:blur(12px)}
.acct-dropdown .hh-account-logout{justify-content:center;color:#b3261e;background:#fff5f4;font-weight:800}

.hh-mobile-backdrop{position:fixed;inset:0;z-index:300;background:rgba(7,20,12,.52);backdrop-filter:blur(3px)}
.hh-mobile-menu{
  position:fixed;z-index:310;top:0;right:0;bottom:0;width:min(390px,92vw);background:#fff;box-shadow:-20px 0 55px rgba(0,0,0,.22);
  overflow:auto;overscroll-behavior:contain;padding-bottom:24px;
}
.hh-mobile-menu>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:#fff;border-bottom:1px solid #edf1ee}
.hh-mobile-menu>header strong{font-size:17px;color:var(--green2)}
.hh-mobile-menu>header button{width:38px;height:38px;border-radius:11px;border:1px solid #e2e8e3;background:#fff;font-size:26px;line-height:1;cursor:pointer}
.hh-mobile-menu nav{display:grid;padding:12px;gap:4px}
.hh-mobile-menu nav a{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 12px;border-radius:12px;font-size:14px;font-weight:700;color:#33453a}
.hh-mobile-menu nav a.is-active{background:var(--green3);color:var(--green2);box-shadow:inset 4px 0 0 var(--green)}
.hh-mobile-menu nav a:hover{background:#f2f8f3}
.hh-mobile-account-title{margin:4px 18px 0;padding-top:14px;border-top:1px solid #edf1ee;color:#7b887f;font-size:11px;font-weight:800;text-transform:uppercase}
.hh-mobile-account-links a.is-danger{color:#b3261e;background:#fff5f4}
.hh-mobile-menu-open{overflow:hidden}

@media (max-width:1380px){
  .nav,.navbar .inner{gap:14px}.actions{gap:8px}.acct-trigger{max-width:170px}.hh-account-name{max-width:92px}
  .language-switcher{display:none}
}
@media (max-width:980px){
  .hh-main-nav{display:none!important}.mobile-toggle{display:inline-flex!important}
  .acct-trigger{display:none}.language-switcher{display:none}
  .actions .btn-outline{display:none}
}
@media (max-width:560px){
  .nav,.navbar .inner{width:calc(100% - 24px);gap:8px}
  .brand-logo{height:42px}.actions{gap:6px}.icon-btn{width:40px;height:40px}
  .actions .btn-green{display:none}
  .acct-dropdown{grid-template-columns:1fr}
  .hh-account-groups{grid-template-columns:1fr}
}
/* Override legacy 1240px rule: Drawer starts only when the real nav can no longer fit. */
.mobile-toggle{display:none!important}
@media (max-width:980px){.mobile-toggle{display:inline-flex!important}}

/* ===================================================================
   Human UI Reliability v23
   ป้องกัน Component หลุด viewport โดยไม่ทำลายแถบ/ชิปที่ตั้งใจเลื่อนแนวนอน
   =================================================================== */
body[data-hh-public-ui]{overflow-x:clip}
body[data-hh-public-ui] main,
body[data-hh-public-ui] .container,
body[data-hh-public-ui] .page-shell,
body[data-hh-public-ui] .nav,
body[data-hh-public-ui] .actions{min-width:0;max-width:100%}
body[data-hh-public-ui] img,
body[data-hh-public-ui] video,
body[data-hh-public-ui] canvas,
body[data-hh-public-ui] iframe{max-width:100%}
body[data-hh-public-ui] input:not([type="checkbox"]):not([type="radio"]),
body[data-hh-public-ui] select,
body[data-hh-public-ui] textarea{max-width:100%;box-sizing:border-box}
body[data-hh-public-ui] table{max-width:100%}
body[data-hh-public-ui] pre,
body[data-hh-public-ui] code{overflow-wrap:anywhere}

.hh-mobile-menu{
  inset-block:0!important;inset-inline-end:0!important;left:auto!important;
  width:min(360px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;
  height:var(--hh-mobile-viewport-height,100dvh);max-height:var(--hh-mobile-viewport-height,100dvh);
  box-sizing:border-box;overflow-x:hidden!important;overflow-y:auto!important;
}
.hh-mobile-menu nav,.hh-mobile-menu nav a{min-width:0;max-width:100%}
.hh-mobile-menu nav a span:last-child{min-width:0;overflow-wrap:anywhere}

@media (max-width:480px){
  .hh-mobile-menu{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important}
  .acct-trigger{max-width:132px}.hh-account-name{max-width:62px}
}


/* ===================================================================
   Navigation Capacity v27
   Server-side fallback + deterministic flex sizing. The shared header
   must never grow wider than the space between brand and account actions.
   =================================================================== */
body[data-hh-public-ui] header[data-public-header] .hh-main-nav{
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}
body[data-hh-public-ui] header[data-public-header] .hh-nav-visible{
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  max-width:100%!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
body[data-hh-public-ui] header[data-public-header] .hh-nav-more{
  flex:0 0 auto!important;
  min-width:0!important;
}
body[data-hh-public-ui] header[data-public-header] .hh-nav-overflow{
  max-width:min(320px,calc(100vw - 24px));
}
body[data-hh-public-ui] header[data-public-header] .actions{
  flex:0 0 auto;
  min-width:0;
}

/* Strong final guard against page-local legacy CSS overriding the shared shell. */
body[data-hh-public-ui] header[data-public-header] .mobile-toggle{
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
}
@media (max-width:980px){
  body[data-hh-public-ui] header[data-public-header] .hh-main-nav{display:none!important}
  body[data-hh-public-ui] header[data-public-header] .mobile-toggle{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    flex:0 0 auto!important;
  }
}


/* ===================================================================
   Mobile Navigation State v28
   Visibility is controlled only by media queries. JavaScript must not
   leave stale inline display values when an iframe/device viewport changes.
   =================================================================== */
body[data-hh-public-ui] header[data-public-header] .mobile-toggle{
  position:relative!important;
  z-index:8!important;
  flex:0 0 auto!important;
  min-width:40px!important;
}
@media (min-width:981px){
  body[data-hh-public-ui] header[data-public-header] .mobile-toggle{display:none!important}
}
@media (max-width:980px){
  body[data-hh-public-ui] header[data-public-header] .mobile-toggle{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}
