/* อาหารเจ.com — ใบตอง × ขมิ้น: เขียวโลโก้ / ขาวนวล / เหลืองขมิ้น (สีธงเจ) สำหรับปุ่มสำคัญ
   มือถือก่อน แล้วขยายที่ 768px และ 1100px */
:root {
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(28, 54, 38, .05), 0 6px 18px rgba(28, 54, 38, .06);
  --sh-2: 0 4px 12px rgba(28, 54, 38, .07), 0 18px 40px rgba(28, 54, 38, .12);
  --hl: rgba(242, 179, 61, .45);   /* ปากกาเน้นคำ สีขมิ้น */
  --soft-line: #CFE0CC;
  --font: "Noto Sans Thai", "Inter", -apple-system, "Segoe UI", Tahoma, sans-serif;
  --gutter: 16px;
  --tab-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--heading); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.noscroll { scrollbar-width: none; }
.noscroll::-webkit-scrollbar { display: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 14px; background: var(--white); border-radius: 8px; }
.d-only { display: none; }
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; flex: none;
  font-variation-settings: "FILL" var(--fill, 0), "wght" 500, "GRAD" 0, "opsz" 24;
}

/* ---------- ปุ่มทรงแคปซูล ---------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s;
}
.pill-btn .ms { font-size: 19px; }
.pill-btn:active { transform: scale(.97); }
.pill-btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(226, 163, 37, .32), inset 0 -2px 0 rgba(0, 0, 0, .06); }
.pill-btn--green { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47, 98, 63, .22); }
.pill-btn--line { background: var(--white); color: var(--brand-strong); border: 1.5px solid var(--soft-line); }
.pill-btn--white { background: #fff; color: var(--heading); }
.pill-btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.pill-btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------- แถบบน ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 254, 250, .92); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 10px; height: 64px; }
.hdr__menu { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.hdr__menu .ms { font-size: 22px; color: var(--heading); }
.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.logo__signature { display: block; width: 194px; height: auto; flex: none; }
.hdr__nav { display: none; }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__search { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.hdr__cta { display: none; }

/* เมนูข้าง (มือถือ) */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(28, 54, 38, .45); }
.drawer[hidden] { display: none; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); overflow-y: auto; padding: 16px 16px 32px; background: #fff; box-shadow: var(--sh-2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pale); }
.drawer__label { margin: 18px 4px 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.drawer__cats { display: grid; gap: 4px; }
.drawer__cats a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 600; }
.drawer__cats a .ms { color: var(--brand); }
.drawer__cats a:active { background: var(--brand-soft); }
.drawer__shop { width: 100%; margin-top: 22px; }

/* ---------- ฮีโร่ ---------- */
.hero {
  position: relative; overflow: hidden; padding: 24px 0 40px; text-align: center;
  background: radial-gradient(42% 60% at 92% 0%, rgba(242, 179, 61, .20), transparent 70%), radial-gradient(40% 70% at 0% 10%, rgba(47, 98, 63, .10), transparent 70%), linear-gradient(180deg, var(--hero-start) 0%, var(--bg) 88%);
}
.hero > .wrap { position: relative; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--soft-line); font-size: 12.5px; font-weight: 600; color: var(--brand-strong); box-shadow: 0 2px 8px rgba(28, 54, 38, .05); }
.trust .ms { font-size: 17px; color: var(--brand); --fill: 1; }
.hero__title { font-size: clamp(32px, 8.4vw, 58px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.hl { color: var(--brand); background: linear-gradient(transparent 64%, var(--hl) 64%, var(--hl) 92%, transparent 92%); padding: 0 .06em; border-radius: 4px; }
.hero__lead { max-width: 640px; margin: 14px auto 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.hero__lead b { color: var(--brand-strong); }
.bigsearch {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 22px auto 0; padding: 6px 6px 6px 16px;
  border-radius: 999px; background: #fff; border: 1.5px solid var(--input-line); box-shadow: var(--sh-1); text-align: left;
}
.bigsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 98, 63, .14), var(--sh-1); }
.bigsearch > .ms { color: var(--brand); font-size: 22px; }
.bigsearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: var(--ink); }
.bigsearch input::placeholder { color: var(--muted); }
.bigsearch input::-webkit-search-cancel-button { display: none; }
.bigsearch .pill-btn { height: 44px; padding: 0 20px; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.quick a { padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--soft-line); font-size: 13.5px; font-weight: 600; color: var(--brand-strong); transition: background-color .2s, border-color .2s; }

/* คำแนะนำระหว่างพิมพ์ */
.suggest { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 12px; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--brand-soft); }
.suggest .ms { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.suggest b { display: block; font-weight: 600; font-size: 15px; color: var(--heading); }
.suggest small { color: var(--muted); font-size: 12.5px; }

/* ---------- section ---------- */
/* ระยะห่าง section: กระชับ ไม่โล่งเกินไป */
.sec { padding: 30px 0; }
.sec--pale { background: var(--pale); }
.sec--tight { padding: 22px 0; }

/* ---------- หัวข้อ section (ทั้งเว็บใช้แบบเดียวกัน) ----------
   มือถือ: ป้าย + ปุ่มดูทั้งหมด อยู่บรรทัดเดียวกัน หัวข้อและคำโปรยเต็มความกว้าง
   จอใหญ่: ปุ่มดูทั้งหมดชิดขวา ตรงกับคำโปรย */
.sh { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k more" "t t" "s s"; align-items: center; column-gap: 12px; margin-bottom: 16px; }
.sh__kicker {
  grid-area: k; justify-self: start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 30px; padding: 0 12px 0 5px;
  border-radius: 999px; background: #fff; border: 1px solid var(--soft-line); box-shadow: 0 2px 10px rgba(47, 98, 63, .08);
  font-size: 12.5px; font-weight: 700; color: var(--brand-strong); white-space: nowrap; overflow: hidden;
}
.sh__kicker .ms { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; --fill: 1; }
.sh__kicker i { padding-left: 8px; border-left: 1px solid var(--line); font: 700 10.5px/1 "Inter", sans-serif; font-style: normal; letter-spacing: .12em; color: var(--muted); }
.sh__kicker--white { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); box-shadow: none; color: #fff; margin-bottom: 10px; }
.sh__kicker--white .ms { background: #fff; color: var(--brand-strong); }
.sh__kicker--white i { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .3); }
.sh__title { grid-area: t; margin-top: 10px; font-size: 24px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; }
.sh__title mark, .promo h2 mark { color: inherit; background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%); padding: 0 .04em; border-radius: 3px; }
.sh__title mark { color: var(--brand); }
.promo h2 mark { background: none; color: var(--accent); }   /* บนพื้นเขียวเข้ม ใช้ตัวอักษรสีขมิ้นแทนแถบเน้น */
.sh__sub { grid-area: s; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sh .more { grid-area: more; height: 32px; padding: 0 10px 0 12px; font-size: 13px; }

/* แถบตัวเลขใต้ฮีโร่ */
.hstats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin: -26px auto 0; padding: 6px; list-style: none;
  border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.hstats li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 9px 10px; }
.hstats li .ms { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 21px; --fill: 1; }
.hstats b { font: 800 21px/1.1 "Inter", var(--font); color: var(--heading); }
.hstats span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.hstats + .sec, .wrap:has(.hstats) + .sec { padding-top: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--soft-line); color: var(--brand-strong); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.kicker .ms { font-size: 16px; }
.kicker--white { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.more { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--soft-line); background: #fff; color: var(--brand-strong); font-size: 14px; font-weight: 700; transition: background-color .2s, border-color .2s; }
.more .ms { font-size: 18px; }

/* การ์ดหมวด (รูปเต็มใบ ป้ายขาวมุมซ้าย ปุ่มลูกศรมุมขวา) */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catcard { position: relative; isolation: isolate; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 20px; background: var(--c); color: #fff; box-shadow: var(--sh-1); }
.catcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.catcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 40, 28, 0) 42%, rgba(20, 40, 28, .82) 100%); }
.catcard__art { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #203626)); }
.catcard__art .ms { font-size: 72px; opacity: .9; transform: translateY(-10px); }
.badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--heading); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.badge .ms { font-size: 15px; color: var(--brand); }
.catcard__name { position: absolute; left: 12px; right: 48px; bottom: 12px; font-size: 16.5px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.go { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .3s var(--ease); }
.go .ms { font-size: 18px; }

/* การ์ดสูตร/บทความ */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pale); }
.card__media > img { width: 100%; height: 100%; object-fit: cover; }
.card__media .badge { top: 8px; left: 8px; font-size: 11px; padding: 4px 8px 4px 6px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.card__title { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.card__meta .ms { font-size: 16px; color: var(--brand); }
.card--tcover .card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card--tcover .card__body { padding-top: 8px; }

/* ปกตัวอักษร (สูตรที่ยังไม่มีรูป) */
.tcover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px 14px 16px; overflow: hidden;
  color: #fff; background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .25), transparent 45%), linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #203626));
}
.tcover::before { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .1); }
.tcover__icon { position: absolute; right: 12px; top: 40px; font-size: 44px !important; opacity: .55; }
.tcover__kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.tcover__title { font-size: 19px; font-weight: 800; line-height: 1.25; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* แถวบทความ */
.rows { display: grid; gap: 10px; }
.rowcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.rowcard__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.rowcard__icon .ms { font-size: 24px; --fill: 1; }
.rowcard__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rowcard__kicker { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--c); }
.rowcard__body b { font-size: 15.5px; color: var(--heading); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowcard__body small { display: none; color: var(--muted); font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowcard .pill-btn { display: none; }

/* ร้านอาหารเจ (จากเว็บพี่น้อง) */
.shops { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.shop { scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--pale); margin-bottom: 6px; }
.shop__img img { position: relative; width: 100%; height: 100%; object-fit: cover; }
/* ไอคอนร้านอยู่ใต้รูป เห็นเฉพาะตอนรูปโหลดไม่ได้ */
.shop__ph { position: absolute; inset: 0; display: grid !important; place-items: center; font-size: 40px !important; color: var(--soft-line); }
.shop__rate { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px 3px 6px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--heading); }
.shop__rate .ms { font-size: 15px; color: var(--gold); --fill: 1; }
.shop__name { font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop__where { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.shop__where .ms { font-size: 15px; }

/* กล่องแนะนำร้านอาหาร */
.promo { display: grid; gap: 18px; padding: 24px 20px; border-radius: 24px; color: #fff; background: radial-gradient(38% 80% at 100% 0%, rgba(242, 179, 61, .28), transparent 70%), radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .08), transparent 45%), linear-gradient(135deg, #234B31, #2F623F 60%, #3A7A4D); box-shadow: 0 16px 36px rgba(28, 54, 38, .22); }
.promo h2 { color: #fff; font-size: 22px; }
.promo p { margin-top: 6px; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.promo__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- หัวหน้ารายการ ---------- */
.pagehead { padding: 18px 0 18px; background: linear-gradient(180deg, var(--hero-start), var(--bg)); }
.pagehead .sh__kicker, .post__head .sh__kicker { margin-bottom: 10px; }
.pagehead h1 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; }
.pagehead p { margin-top: 6px; max-width: 720px; color: var(--muted); font-size: 15px; }
.pagehead .bigsearch { margin: 16px 0 0; }
.found { margin-top: 12px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--brand-strong); font-weight: 600; }
.crumbs .ms { font-size: 16px; opacity: .6; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter); }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips a .ms { font-size: 17px; color: var(--brand); }
.chips a small { color: var(--muted); font-weight: 500; }
.chips a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips a[aria-current] .ms, .chips a[aria-current] small { color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.pager a[aria-current] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.empty { padding: 36px 20px; border-radius: 20px; background: var(--pale); text-align: center; color: var(--muted); }
.empty > .ms { display: block; margin: 0 auto 8px; font-size: 44px; color: var(--brand); }
.empty b { display: block; margin-bottom: 4px; font-size: 18px; color: var(--heading); }
.empty .bigsearch, .empty p { margin-top: 16px; }

/* ---------- บทความ / สูตร ---------- */
.post__head { padding: 18px 0 8px; background: linear-gradient(180deg, var(--hero-start), var(--bg)); }
.post__head h1 { font-size: clamp(27px, 6.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.post__lead { margin-top: 10px; font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.facts li > .ms { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.facts small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.facts b { font-size: 14.5px; color: var(--heading); }
.post__cover { position: relative; margin: 18px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: var(--pale); box-shadow: var(--sh-1); }
.post__cover > img { width: 100%; height: 100%; object-fit: cover; }
/* ไม่มีรูป: ปกตัวอักษรเตี้ยลง ไม่กินพื้นที่ */
.post__cover:has(.tcover) { aspect-ratio: 16 / 7; }
.post__cover .tcover { padding: 22px; }
.post__cover .tcover__title { font-size: clamp(26px, 6vw, 40px); -webkit-line-clamp: 2; }
.post__cover .tcover__kicker { font-size: 13px; }
.post__cover .tcover__icon { font-size: 90px !important; right: 22px; top: 22px; }
.prose { margin-top: 22px; font-size: 16.5px; line-height: 1.85; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol { margin-top: 14px; }
.prose h2 { margin: 30px 0 10px; font-size: 22px; font-weight: 800; }
.prose h3 { margin: 22px 0 8px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 20px 0; }
.prose img { border-radius: 16px; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--brand-soft); color: var(--heading); }
.prose strong { color: var(--heading); }

.recipe { display: grid; gap: 18px; margin-top: 26px; }
.ingr, .steps { padding: 18px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ingr { background: linear-gradient(180deg, var(--brand-soft), #fff 160px); }
.recipe h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; }
.recipe h2 .ms { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 21px; }
.recipe h3 { margin: 16px 0 6px; font-size: 15px; color: var(--brand-strong); }
.ingr__hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.checks { margin: 8px 0 0; padding: 0; list-style: none; }
.checks li + li { border-top: 1px dashed var(--line); }
.checks label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; cursor: pointer; font-size: 15.5px; line-height: 1.55; }
.checks input { flex: none; width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--brand-strong); }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 2px 0 16px 46px; font-size: 16px; line-height: 1.8; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 15px/1 "Inter", var(--font); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--brand-tint); }
.tip { display: flex; gap: 12px; margin-top: 8px; padding: 14px; border-radius: 16px; background: var(--gold-50); border: 1px solid #F6DFA6; }
.tip > .ms { color: #B7791F; font-size: 24px; --fill: 1; }
.tip b { display: block; color: var(--heading); }
.tip p { font-size: 15px; }
.credit { margin-top: 18px; font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; padding: 14px; border-radius: 18px; background: var(--pale); }
.share > span { width: 100%; font-size: 13.5px; font-weight: 700; color: var(--heading); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; }
.share__fb { background: #1877f2; }
.share__line { background: #06c755; }
.share__copy { background: #fff; border: 1px solid var(--line); color: var(--heading) !important; }
.share__copy .ms { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13.5px; font-weight: 600; }

/* ---------- ท้ายเว็บ ---------- */
.ftr { margin-top: 20px; background: var(--pale); border-top: 1px solid var(--line); }
.ftr__grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.ftr__brand p { margin: 12px 0 14px; color: var(--muted); font-size: 14px; max-width: 34em; }
.ftr nav { display: grid; gap: 6px; align-content: start; }
.ftr nav a { color: var(--ink); font-size: 14.5px; }
.ftr__h { margin-bottom: 4px; font-weight: 800; color: var(--heading); }
.fb-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(47, 98, 63, .2); }
.fb-btn svg { width: 18px; height: 18px; fill: currentColor; }
.ftr__bottom { padding: 14px 0; background: var(--heading); color: #CFE3CD; font-size: 13px; }

/* ---------- แถบเมนูล่าง (มือถือ) ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 254, 250, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 -4px 16px rgba(28, 54, 38, .05); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tabbar .ms { font-size: 24px; }
.tabbar a[aria-current] { color: var(--brand-strong); }
.tabbar a[aria-current] .ms { --fill: 1; }
body:has(input:focus) .tabbar { display: none; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px); z-index: 70; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: var(--heading); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- จอกว้าง ---------- */
@media (hover: hover) {
  .card__link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
  .catcard:hover img { transform: scale(1.06); }
  .rowcard:hover { border-color: var(--soft-line); box-shadow: var(--sh-2); }
  .pill-btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 22px rgba(226, 163, 37, .38); }
  .pill-btn--green:hover, .fb-btn:hover { background: var(--brand-strong); }
  .more:hover, .pill-btn--line:hover, .quick a:hover { background: var(--brand-soft); border-color: var(--brand-tint); }
  .catcard:hover .go { transform: translateX(3px); }
  .hdr__nav a:hover { color: var(--brand-strong); }
  .ftr nav a:hover { color: var(--brand-strong); }
  .shop:hover .shop__name { color: var(--brand-strong); }
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shops { grid-auto-columns: 38%; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }   /* 2–4 กล่อง เต็มแถวเท่ากันเสมอ */
  .share > span { width: auto; margin-right: 4px; }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .hdr__in { height: 72px; }
  .hdr__menu { display: none; }
  .logo__signature { width: 232px; }
  .ftr .logo__signature { width: 270px; }
  .hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
  .hdr__nav a { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); }
  .hdr__nav a[aria-current] { background: var(--brand-soft); color: var(--brand-strong); }
  .hdr__nav .ext { font-size: 15px; color: var(--muted); }
  .hdr__cta { display: inline-flex; height: 42px; }
  .hero { padding: 40px 0 60px; }
  .hero__lead { font-size: 17px; }
  .d-only { display: inline; }
  .sec { padding: 42px 0; }
  .sec--tight { padding: 30px 0; }
  .hstats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -38px; padding: 8px 6px; }
  .hstats li { padding: 10px 18px; }
  .hstats li + li { border-left: 1px solid var(--line); }
  .hstats b { font-size: 26px; }
  .hstats span { font-size: 13.5px; }
  .hstats + .sec, .wrap:has(.hstats) + .sec { padding-top: 38px; }
  .sh { grid-template-areas: "k k" "t more" "s more"; align-items: end; margin-bottom: 22px; }
  .sh__title { font-size: 30px; }
  .sh .more { height: 38px; padding: 0 14px; font-size: 14px; align-self: end; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .catcard__name { font-size: 19px; left: 16px; bottom: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .card__title { font-size: 16px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rowcard { padding: 16px; }
  .rowcard__body small { display: -webkit-box; margin-top: 2px; }
  .rowcard { height: 100%; }
  .shops { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .promo { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
  .promo h2 { font-size: 28px; }
  .pagehead { padding: 28px 0 24px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 18px 0 0; padding: 0; }
  .post__head { padding: 28px 0 12px; }
  .post__cover:has(.tcover) { aspect-ratio: 16 / 5; }
  .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .toast { bottom: 24px; }
}
@media (min-width: 1100px) {
  .recipe { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
  .wrap--narrow { max-width: 1040px; }
  .prose { max-width: 760px; }
}
/* Keep the full brand readable while tablet navigation uses the existing drawer. */
@media (max-width: 359px) { .logo__signature { width: 166px; } }
@media (min-width: 768px) and (max-width: 1023px) {
  .hdr__menu { display: grid; }
  .hdr__nav { display: none; }
}
.hdr__nav a { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---------- แถบชวนติดตามเพจ (ใต้ตัวเลข ก่อนหมวดหมู่) แบบเดียวกับ ร้านอาหารเจ.com ---------- */
.fbhook {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "page body" "page cta";
  align-items: center; column-gap: 14px; max-width: 920px; margin: 16px auto 0; padding: 12px 14px 12px 12px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1);
}
.fbhook__page {
  grid-area: page; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 104px; padding: 10px 8px; border-radius: 16px; background: #EEF4FF; color: #0B4FD1; text-align: center; transition: background-color .2s;
}
.fbhook__logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0866FF; color: #fff; }
.fbhook__logo svg { width: 18px; height: 18px; fill: currentColor; }
.fbhook__num { display: flex; flex-direction: column; line-height: 1.2; }
.fbhook__num b { font: 800 20px/1.2 "Inter", var(--font); color: #0B4FD1; }
.fbhook__num small { margin-top: 2px; font-size: 12px; font-weight: 600; color: #3B5A93; }
.fbhook__body { grid-area: body; min-width: 0; text-align: left; }
.fbhook__title { font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--heading); }
.fbhook__title em { font-style: normal; color: var(--brand); }
.fbhook__title .nowrap { white-space: nowrap; }
.fbhook__sub { margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.fbhook__cta {
  grid-area: cta; justify-self: start; display: inline-flex; align-items: center; gap: 2px; height: 36px; margin-top: 8px; padding: 0 8px 0 14px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(226, 163, 37, .28); transition: background-color .2s;
}
.fbhook__cta .ms { font-size: 20px; transition: transform .2s var(--ease); }
/* รูปเมนูจริงบนเว็บ ซ้อนกันเป็นวงกลม + จำนวนสูตร (จอเล็กซ่อน ที่ไม่พอ) */
.fbhook__recipes { display: none; grid-area: recipes; align-items: center; gap: 12px; justify-self: end; color: var(--ink); }
.fbhook__faces { display: flex; }
.fbhook__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(28, 54, 38, .18); background: var(--pale); }
.fbhook__faces img + img { margin-left: -14px; }
.fbhook__count { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.fbhook__count b { font: 800 20px/1.2 "Inter", var(--font); color: var(--brand); }
.fbhook__count small { margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .fbhook__page:hover { background: #E2ECFF; }
  .fbhook__cta:hover { background: var(--accent-hover); }
  .fbhook__cta:hover .ms { transform: translateX(3px); }
  .fbhook__recipes:hover .fbhook__faces img { transform: translateY(-2px); }
  .fbhook__faces img { transition: transform .2s var(--ease); }
}
@media (max-width: 359px) {
  .fbhook { column-gap: 10px; padding: 10px; }
  .fbhook__page { min-width: 88px; }
  .fbhook__num b { font-size: 17px; }
  .fbhook__title { font-size: 15px; }
}
@media (min-width: 768px) {
  .fbhook { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "page body cta"; column-gap: 18px; margin-top: 18px; padding: 12px 14px; }
  .fbhook__page { flex-direction: row; gap: 12px; padding: 12px 18px 12px 14px; text-align: left; }
  .fbhook__logo { width: 44px; height: 44px; }
  .fbhook__logo svg { width: 22px; height: 22px; }
  .fbhook__num b { font-size: 24px; }
  .fbhook__title { font-size: 19px; }
  .fbhook__sub { font-size: 14px; }
  .fbhook__cta { height: 46px; margin: 0; padding: 0 12px 0 22px; font-size: 15.5px; }
}
@media (min-width: 1024px) {
  .fbhook { max-width: none; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "page body recipes cta"; }
  .fbhook__recipes { display: flex; margin-right: 8px; }
}

/* ---------- ท้ายเว็บ: แบ่งคอลัมน์ ----------
   มือถือ: แบรนด์เต็มแถว · ซ้าย = สูตรอาหารเจ · ขวา = บทความ + ร้านอาหารเจ (เส้นคั่นกลาง)
   จอใหญ่: 4 คอลัมน์ มีเส้นคั่นแนวตั้งระหว่างคอลัมน์ */
.ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; row-gap: 22px; }
.ftr__brand { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ftr nav { min-width: 0; }
.ftr nav:nth-of-type(1) { grid-row: span 2; padding-right: 16px; }
.ftr nav:nth-of-type(2), .ftr nav:nth-of-type(3) { padding-left: 16px; border-left: 1px solid var(--line); }
.ftr nav a { padding: 3px 0; }
.ftr__h { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px solid var(--accent); width: fit-content; }
@media (min-width: 768px) {
  .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; row-gap: 0; padding-top: 36px; padding-bottom: 30px; }
  .ftr__brand { grid-column: auto; padding: 0 28px 0 0; border-bottom: 0; }
  .ftr nav:nth-of-type(1) { grid-row: auto; }
  .ftr nav { padding: 0 24px !important; border-left: 1px solid var(--line); }
}

/* โพสต์ล่าสุดจากเพจ (ในแถบชวนติดตามเพจ) · มือถือปัดดูได้ จอใหญ่ 6 ช่อง */
.fbhook { grid-template-areas: "page body" "page cta" "posts posts"; }
.fbposts { grid-area: posts; min-width: 0; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fbposts__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--heading); }
.fbposts__h a { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: #0B4FD1; }
.fbposts__h .ms { font-size: 16px; }
.fbposts__row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px 0 0; padding: 0 14px 4px 0; }
.fbpost { scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--ink); }
.fbpost__img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--pale); }
.fbpost__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.fbpost__img::after { content: ""; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #0866FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 8V6.5c0-.8.4-1.5 1.6-1.5H17V1.6C16.7 1.5 15.6 1.4 14.4 1.4 11.8 1.4 10 3 10 5.9V8H7v3.6h3V22.6h4V11.6h3l.5-3.6Z'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.fbpost__text { font-size: 13px; line-height: 1.45; color: var(--heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbpost__meta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.fbpost__meta .ms { font-size: 14px; color: #E0245E; --fill: 1; }
@media (hover: hover) { .fbpost:hover .fbpost__img img { transform: scale(1.05); } .fbpost:hover .fbpost__text { color: var(--brand); } }
@media (min-width: 560px) { .fbposts__row { grid-auto-columns: 28%; } }
@media (min-width: 768px) {
  .fbhook { grid-template-areas: "page body cta" "posts posts posts"; }
  .fbposts__row { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 12px; }
}
@media (min-width: 1024px) { .fbhook { grid-template-areas: "page body recipes cta" "posts posts posts posts"; } }
