/* ฟอนต์ IBM Plex Sans Thai / Looped (SIL OFL) โฮสต์เอง: ไม่ต้องเรียก Google ทุกครั้งที่เปิดหน้า (เร็วขึ้น และไม่ส่ง IP ผู้ชมให้ภายนอก) — เฉพาะชุดอักษรไทยและละติน */
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex/plex-500-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex/plex-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex/plex-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex/plex-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/plex/plex-700-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/plex/plex-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plex/looped-400-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plex/looped-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex/looped-500-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex/looped-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex/looped-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex/looped-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Thaijobcity — สไตล์หลัก (ไม่มี build step) ตัวแปรอยู่ที่ :root */
:root {
  --bg: #f6f7f4; --surface: #fff; --ink: #15201c; --muted: #4f5d58; --line: #e2e6e1;
  --brand: #0b6b57; --brand-ink: #fff; --brand-soft: #e3f1ec; --accent: #e8a013; --accent-ink: #2b1d00;
  --linegreen: #06c755; --warn-bg: #fff4dc; --warn-ink: #7a4d00; --err-bg: #fde8e6; --err-ink: #8f1d14;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 32, 26, .06), 0 6px 20px rgba(16, 32, 26, .05); --wrap: 1240px;
  /* ระบบตัวอักษร: ฐาน 17px (html 106.25%) ขนาดเล็กสุดที่ใช้ = --fs-xs (~15px) */
  --font-body: 'IBM Plex Sans Thai Looped', 'Sarabun', 'Noto Sans Thai Looped', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --font-head: 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --fs-xs: .875rem; --fs-sm: .94rem; --fs-md: 1rem; --fs-lg: 1.12rem; --fs-xl: 1.3rem; --fs-2xl: 1.5rem;
  --lh-body: 1.75; --lh-head: 1.4;
  --space-1: 6px; --space-2: 10px; --space-3: 16px; --space-4: 24px; --space-5: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/var(--lh-body) var(--font-body); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--fs-xl); font-weight: 600; }
h3 { font-size: 1.06rem; font-weight: 600; }
p { margin: 0 0 .8em; }
small { font-weight: 400; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.main > section, .main > header, .main > article { margin-bottom: 36px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.center .lead, .hero .lead { margin-left: auto; margin-right: auto; }
.pre { white-space: pre-line; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: var(--fs-sm); }

/* header / footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); }
.nav a { color: var(--ink); }
.foot { background: #10231d; color: #cfdcd6; padding: 36px 0; font-size: var(--fs-sm); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot a, .foot .linklike { color: #e9f3ef; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: 11px;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: var(--fs-sm); border-radius: 9px; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }
.btn-ghost { background: transparent; color: var(--brand); border-color: #b9cfc7; }
.btn-ghost:hover { background: var(--brand-soft); filter: none; }
.btn-light { background: #fff; color: var(--brand); }
.btn-line { background: var(--linegreen); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }

/* cards / grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h1, .sec-head h2 { margin: 0; }
.empty { text-align: center; padding: 40px 20px; }

/* hero */
.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.hero h1 span { color: var(--brand); }
.hero-sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 14px; }
.search { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr auto; gap: 10px; max-width: 900px; margin: 22px auto 0; background: var(--surface);
  padding: 12px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-wide { grid-template-columns: repeat(4, 1fr) auto; max-width: none; margin: 0 0 18px; }

/* forms */
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cdd5d0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(11, 107, 87, .28); outline-offset: 1px; border-color: var(--brand); }
input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
label { display: block; font-weight: 500; font-size: var(--fs-sm); }
label > input, label > select, label > textarea, label > .input-prefix { margin-top: 5px; }
.form { display: grid; gap: 16px; }
.form-2 { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; }
.area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.inline-form label { flex: 1; min-width: 220px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 10px; background: var(--brand-soft); border: 1px solid #cdd5d0; border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); }
.input-prefix input { border-radius: 0 10px 10px 0; margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* flash / tags */
.flash { padding: 11px 14px; border-radius: 11px; margin-bottom: 14px; background: #eef1ee; }
.flash-ok { background: var(--brand-soft); color: #0a4a3c; }
.flash-err { background: var(--err-bg); color: var(--err-ink); }
.tags, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #eef1ee; color: #33423c; font-size: var(--fs-xs); white-space: nowrap; }
.tag-star { background: #fff3d1; color: #6b4700; }
.tag-line { background: #dff7e8; color: #0a6b32; }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); }
a.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip small { color: var(--muted); margin-left: 4px; }
.chips { margin-bottom: 20px; }
.crumbs { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.page-head { margin-bottom: 20px; }
.page-head h1 span { color: var(--brand); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-align: center; font-size: var(--fs-sm); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.cat-ico { font-size: 1.9rem; line-height: 1; }
.svc-list { columns: 3 300px; column-gap: 16px; }
.svc { break-inside: avoid; margin-bottom: 16px; }
.svc ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); }

/* how / cta */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--brand); color: #fff; border-radius: 18px; padding: 28px; }
.cta p { margin: 0; opacity: .92; max-width: 60ch; }

/* shop */
.shop-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: border-color .15s, transform .15s; }
.shop-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.shop-card h3 { margin: 0; }
.shop-card p { margin: 0; }
.shop-card-head { display: flex; gap: 12px; align-items: center; }
.avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: var(--fs-xl); }
.avatar-lg { width: 76px; height: 76px; font-size: 2rem; border-radius: 18px; }
.shop-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.shop-title h1 { margin-bottom: .2em; }
.shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.shop-main { display: grid; gap: 16px; }
.shop-side { display: grid; gap: 16px; position: sticky; top: 78px; }
.review { padding: 10px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .muted { color: #d5dad6; }
.made { text-align: center; color: var(--muted); font-size: var(--fs-xs); }

/* dashboard / requests */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-wide { grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stats div { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 1.4rem; }
.stats span { color: var(--muted); font-size: var(--fs-xs); }
.req { margin-bottom: 14px; }
.req header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.req header h2 { margin: 0 0 6px; }
.req-link { display: block; color: var(--ink); }
.req-link:hover { text-decoration: none; border-color: var(--brand); }
.reply, .review-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.sum th, .sum td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.sum td { text-align: right; }
.sum .total th, .sum .total td { font-weight: 700; font-size: var(--fs-xl); border-bottom: 0; }
.quote { padding: 12px 14px; border-radius: 11px; background: var(--brand-soft); color: #0a4a3c; font-weight: 500; }
.quote-bad { background: var(--warn-bg); color: var(--warn-ink); }

/* ads / consent */
.ad { margin: 20px 0; min-height: 90px; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: 720px; margin: 0 auto;
  background: #10231d; color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; min-width: 200px; font-size: var(--fs-sm); }
.consent .btn-ghost { color: #fff; border-color: #6d857c; }

@media (max-width: 860px) {
  .search, .search-wide { grid-template-columns: 1fr; }
  .shop-body, .dash, .form-2 { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .area, .row { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.break { overflow-wrap: anywhere; }
.card h2:not(:first-child) { margin-top: 1.1em; }

/* shop website: sub-navigation, service menu with prices, posts gallery */
.subnav, .shop-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.subnav a, .shop-nav a { padding: 7px 14px; border-radius: 8px; color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.subnav a:hover, .shop-nav a:hover { background: var(--brand-soft); text-decoration: none; }
.subnav a.on { background: var(--brand); color: #fff; }
.shop-nav { position: sticky; top: 62px; z-index: 10; margin-bottom: 16px; }
.shop [id] { scroll-margin-top: 130px; }
img.avatar { object-fit: cover; padding: 0; }
.menu { list-style: none; margin: 0 0 12px; padding: 0; }
.menu li, .svc-item summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu li:last-child { border-bottom: 0; }
.price { font-weight: 700; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-item { margin-bottom: 12px; padding: 4px 20px 12px; }
.svc-item summary { cursor: pointer; border-bottom: 0; }
.svc-item[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.svc-item form + form { margin-top: 10px; }
.post { margin-bottom: 14px; }
.post header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.gallery { display: grid; gap: 6px; margin: 10px 0; border-radius: 12px; overflow: hidden; }
.gallery-1 { grid-template-columns: 1fr; }
.gallery-2, .gallery-3, .gallery-4 { grid-template-columns: 1fr 1fr; }
.gallery img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; aspect-ratio: 4 / 3; background: #eef1ee; }
.gallery-1 img { aspect-ratio: auto; }
.gallery-3 > :first-child { grid-column: 1 / -1; }
.danger { color: var(--err-ink); font-size: var(--fs-sm); }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.row-link:hover { text-decoration: none; color: var(--brand); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
input[type=file] { padding: 8px; background: var(--bg); }
@media (max-width: 860px) { .shop-nav { top: 62px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; } }

/* banner slider (scroll-snap; works without JS by swiping) */
.slider { position: relative; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: #dfe5e1; box-shadow: var(--shadow); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 6; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 34px; color: #fff; font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.5rem);
  background: linear-gradient(transparent, rgba(0, 0, 0, .62)); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88);
  color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s; }
.dots button.on { background: #fff; width: 26px; border-radius: 6px; }
.banner-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.banner-admin form { display: grid; gap: 4px; justify-items: start; }
.banner-admin img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 860px) { .slide { aspect-ratio: 16 / 9; } .slider-btn { display: none; } }

/* positioning: free shop website first */
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }
.btn-lg { padding: 14px 28px; font-size: var(--fs-lg); border-radius: 13px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; }
.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
.features b { font-size: var(--fs-xl); width: 44px; height: 44px; }
.search-left { margin: 0 0 18px; max-width: none; }
.aside-service { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.aside-service h2 { margin-bottom: .2em; }
.aside-service p { margin: 0; max-width: 70ch; }

/* quick action bar (sticky bottom) */
.has-quickbar { padding-bottom: 84px; }
.quickbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; display: flex; gap: 6px; padding: 6px; max-width: calc(100vw - 16px);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(16, 32, 26, .18); backdrop-filter: blur(8px); }
.qb { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 13px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; color: var(--ink); background: #eef1ee; }
.qb:hover { text-decoration: none; filter: brightness(.96); }
.qb-call { background: var(--brand); color: #fff; }
.qb-line { background: var(--linegreen); color: #fff; }
.qb-ask { background: var(--accent); color: var(--accent-ink); }
.consent { bottom: 92px; }
@media (max-width: 700px) {
  .quickbar { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .qb { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 7px 4px; font-size: var(--fs-xs); text-align: center; white-space: normal; line-height: 1.25; }
  .qb span { font-size: var(--fs-lg); line-height: 1; }
  .has-quickbar { padding-bottom: 78px; }
}

/* document tool */
.doc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.doc-type { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ink); }
.doc-type:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.items { display: grid; gap: 8px; overflow-x: auto; }
.item-head, .item-row { display: grid; grid-template-columns: minmax(180px, 3fr) 80px 90px 130px 110px 28px; gap: 8px; align-items: center; min-width: 660px; }
.item-head { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.item-row output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.paper { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 44px 48px; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: var(--fs-sm); }
.paper h1 { font-size: 1.6rem; margin: 0 0 6px; }
.paper h2 { font-size: var(--fs-xl); margin: 0 0 4px; }
.paper h3 { margin: 18px 0 6px; font-size: 1rem; }
.paper p { margin: 0 0 6px; }
.paper-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 16px; }
.paper-title { text-align: right; flex: none; }
.paper-party { margin-bottom: 16px; padding: 12px 14px; background: #f5f6f4; border-radius: 8px; }
.paper-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.paper-table th, .paper-table td { border: 1px solid #c9cdc9; padding: 7px 9px; vertical-align: top; }
.paper-table th { background: #eef0ee; text-align: left; font-weight: 600; }
.paper-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper-table tfoot td { border: 0; padding: 4px 9px; }
.paper-table .grand td { font-weight: 700; font-size: var(--fs-lg); border-top: 2px solid #111; }
.baht-text { text-align: right; font-weight: 600; }
.warranty-period { font-size: var(--fs-lg); font-weight: 700; padding: 12px; border: 2px solid #111; text-align: center; margin: 14px 0; }
.paper-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 70px; text-align: center; }
.paper-sign span { display: block; border-bottom: 1px dotted #111; height: 46px; margin-bottom: 6px; }
.doc-tools { max-width: 820px; margin: 0 auto 16px; }
.doc-tools .actions { align-items: center; margin: 0 0 8px; }
@media (max-width: 700px) { .paper { padding: 22px 16px; } .paper-head { flex-direction: column; } .paper-title { text-align: left; } }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; padding: 0 !important; }
  .top, .foot, .quickbar, .consent, .flash, .no-print { display: none !important; }
  .main { padding: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; max-width: none; font-size: 11pt; }
  .paper-party, .paper-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper-sign { break-inside: avoid; }
}

/* two-sided hero: business (main) + people looking for a service */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: center; padding: 26px 0 6px; }
.hero2-main h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.hero2-main h1 span { color: var(--brand); }
.hero2-main .hero-cta { justify-content: flex-start; }
.hero2-main .lead { margin-left: 0; }
.hero2-side { display: grid; gap: 12px; padding: 22px; }
.hero2-side h2 { margin: 0; font-size: var(--fs-xl); }
.hero2-side .eyebrow { margin: 0; color: var(--accent-ink); background: #fdf0d2; display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); }
.hero-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .15s, transform .15s; }
.hero-opt:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.hero-opt strong { display: block; font-size: var(--fs-md); }
.hero-opt small { display: block; line-height: 1.5; margin-top: 2px; }
.hero-opt-ico { font-size: 1.5rem; line-height: 1.2; }
.hero-opt-accent { background: #fff8e8; border-color: #f1d79a; }
.hero-opt-accent:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; text-align: left; }
  /* เมนูบนมือถือ: เลื่อนซ้าย-ขวาได้ ไม่ซ่อนลิงก์ (ผู้หาบริการต้องเห็นเมนูค้นหา/ส่งข้อความ) */
  .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; row-gap: 4px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 14px; padding-bottom: 4px; scrollbar-width: none; white-space: nowrap; font-size: var(--fs-sm); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:not(.btn) { display: inline; }
  .shop-nav { top: 96px; }
}

/* promotions, opening hours, FAQ, booking, QR print kit */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 16px; }
.promo { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #fff8e8; border: 1px dashed #e2b24a; }
.promo strong { display: block; }
.promo .muted { display: block; }
.promo-ico { font-size: 1.6rem; line-height: 1.2; }
.promo-meta { display: block; font-size: var(--fs-xs); color: var(--warn-ink); margin-top: 4px; }
.coupon { display: inline-block; padding: 1px 8px; border: 1px dashed var(--warn-ink); border-radius: 6px; font-weight: 700; letter-spacing: .04em; margin-right: 6px; }
.card-promo { margin: 0; padding: 6px 10px; border-radius: 8px; background: #fff8e8; color: var(--warn-ink); font-size: var(--fs-sm); font-weight: 600; }
.tag-closed { background: #eceeed; color: #5d6b66; }
.week { border-collapse: collapse; margin: 8px 0 12px; font-size: var(--fs-sm); }
.week caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.week th { text-align: left; font-weight: 400; padding: 3px 18px 3px 0; color: var(--muted); }
.week td { padding: 3px 0; font-variant-numeric: tabular-nums; }
.week .today th, .week .today td { font-weight: 700; color: var(--ink); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.hours { display: grid; grid-template-columns: minmax(110px, 1fr) 1fr 1fr; gap: 8px 10px; align-items: center; }
.faq-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.slot span { display: block; text-align: center; padding: 10px 0; border: 1px solid #cdd5d0; border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot input:focus-visible + span { outline: 3px solid rgba(11, 107, 87, .28); }
.actions-inline { display: flex; gap: 8px; align-items: center; flex: none; }
.print-kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.pk { background: #fff; color: #111; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pk-card { aspect-ratio: 90 / 55; max-width: 460px; padding: 22px 24px; border-radius: 12px; }
.pk-card-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; height: 100%; }
.pk-card canvas { width: 130px; height: 130px; }
.pk-poster { aspect-ratio: 148 / 210; max-width: 420px; padding: 34px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 14px solid var(--brand); }
.pk-poster canvas { width: 72%; height: auto; margin: 10px 0; }
.pk-name { display: block; font-size: 1.5rem; line-height: 1.25; }
.pk-poster .pk-name { font-size: 2rem; }
.pk-tag, .pk-line, .pk-small, .pk-eyebrow { display: block; margin: 0; }
.pk-tag { color: #444; margin: 2px 0 8px; }
.pk-line { font-weight: 600; }
.pk-small { font-size: var(--fs-xs); color: #555; margin-top: 6px; }
.pk-eyebrow { color: var(--brand); font-weight: 700; }
@media print {
  body[data-print-kit] .print-kit { display: block; }
  body[data-print-kit='card'] .pk-poster, body[data-print-kit='poster'] .pk-card { display: none; }
  body[data-print-kit] .pk { border: 1px solid #999; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body[data-print-kit='card'] .pk-card { width: 90mm; height: 55mm; max-width: none; padding: 5mm 6mm; }
  body[data-print-kit='card'] .pk-card canvas { width: 32mm; height: 32mm; }
  body[data-print-kit='card'] .pk-name { font-size: 15pt; }
  body[data-print-kit='poster'] .pk-poster { width: 148mm; height: 210mm; max-width: none; margin: 0 auto; }
}

/* billing: PromptPay QR on documents, paid stamp, simple ledger */
.pay-qr { display: flex; gap: 18px; align-items: center; margin: 18px 0; padding: 14px; border: 2px solid #113f67; border-radius: 10px; break-inside: avoid; }
.pay-qr canvas { width: 150px; height: 150px; flex: none; }
.pay-qr div { display: grid; gap: 4px; }
.pay-amount { font-size: 1.5rem; font-weight: 700; }
.paid-stamp { display: inline-block; margin: 14px 0; padding: 6px 16px; border: 3px solid #0a6b32; color: #0a6b32; font-weight: 700; border-radius: 8px; transform: rotate(-3deg); }
.money-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.money-cards .card { padding: 16px; }
.money-cards b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.money-cards span { color: var(--muted); font-size: var(--fs-sm); }
.pos { color: #0a6b32; }
.neg { color: var(--err-ink); }
.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ledger th, .ledger td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ledger .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-wrap { overflow-x: auto; }
.bar { height: 8px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; background: var(--brand); }

/* articles and policy pages */
.prose { font-size: var(--fs-md); line-height: 1.85; }
.prose h1 { margin-bottom: .2em; }
.prose h2 { margin: 1.6em 0 .5em; font-size: var(--fs-xl); }
.prose h3 { margin: 1.3em 0 .4em; font-size: var(--fs-lg); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #eef1ee; }
.prose a { text-decoration: underline; }
.article-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.article-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.article-card h2, .article-card h3 { margin: 0; font-size: var(--fs-lg); }
.article-card p { margin: 0; }

/* top nav has 7 items: keep it on one line; on narrower screens it scrolls sideways under the brand */
.nav { flex-wrap: nowrap; gap: 16px; font-size: var(--fs-sm); }
.nav a { white-space: nowrap; }
@media (max-width: 1120px) {
  .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; row-gap: 4px; }
  .nav { overflow-x: auto; width: 100%; gap: 14px; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:not(.btn) { display: inline; }
  .shop-nav { top: 96px; }
}

/* article cards with cover, article page with sidebar */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 78px; }
.side h2 { font-size: var(--fs-lg); }
.side-list { display: grid; gap: 10px; margin-bottom: 10px; }
.side-cta { background: var(--brand); color: #fff; border-color: var(--brand); }
.side-cta p { opacity: .93; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.article-card { padding: 0; overflow: hidden; gap: 0; }
.article-cover { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; background: #dfe5e1; }
.article-cover-ph { display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--brand), #26a69a); }
.article-card-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.article-card-body strong { font-size: 1.06rem; line-height: 1.4; }
.article-card-sm { flex-direction: row; align-items: center; border: 0; box-shadow: none; border-radius: 10px; }
.article-card-sm:hover { transform: none; background: var(--brand-soft); }
.article-card-sm .article-cover { width: 92px; flex: none; aspect-ratio: 4 / 3; border-radius: 8px; font-size: 1.6rem; }
.article-card-sm .article-card-body { padding: 0 0 0 12px; }
.article-card-sm .article-card-body strong { font-size: var(--fs-sm); font-weight: 600; }
.article-main { padding: 0; overflow: hidden; margin-bottom: 20px; }
.article-hero { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.article-hero.article-cover-ph { font-size: 5rem; }
.article-main .prose { padding: 22px 28px 28px; }
@media (max-width: 980px) {
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; }
  .article-main .prose { padding: 18px 18px 22px; }
}

/* ============ ชั้นปรับความอ่านง่ายและความสม่ำเสมอ (design-system pass) ============ */
h1, h2, h3, h4, .brand, .btn, legend, .pk-name { font-family: var(--font-head); }
h1, h2, h3 { line-height: var(--lh-head); letter-spacing: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.3vw, 2.35rem); font-weight: 700; }
h2 { font-size: 1.38rem; font-weight: 600; }
h3 { font-size: 1.14rem; font-weight: 600; }
p, li { text-wrap: pretty; }
p { margin: 0 0 .9em; }
small { font-size: var(--fs-xs); }
strong, b { font-weight: 600; }
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--muted); }
.muted { font-size: var(--fs-sm); color: var(--muted); }
.crumbs { font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(11, 107, 87, .45); outline-offset: 2px; border-radius: 6px; }

/* ปุ่มและช่องกรอก: สูงพอสำหรับนิ้ว (≥44px) ตัวอักษรช่องกรอก ≥16px (กัน iOS ซูมเอง) */
.btn { min-height: 46px; padding: 10px 22px; font-size: 1rem; line-height: 1.3; letter-spacing: .005em; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; font-size: 1.1rem; }
input, select, textarea { min-height: 46px; font-size: 1rem; line-height: 1.5; padding: 10px 13px; border-color: #c3ccc7; }
textarea { min-height: 0; line-height: 1.7; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 20px; height: 20px; }
input::placeholder, textarea::placeholder { color: #88948f; }
label { font-size: var(--fs-sm); font-weight: 500; color: #26332e; }
label > input, label > select, label > textarea, label > .input-prefix { margin-top: 6px; }
legend { font-size: 1.02rem; }
.check { font-size: 1rem; line-height: 1.6; }
.form { gap: 18px; }

/* การ์ด ระยะห่าง และลำดับชั้น */
.card { padding: var(--space-4); }
.main { padding-top: 32px; padding-bottom: 72px; }
.main > section, .main > header, .main > article { margin-bottom: var(--space-5); }
.sec-head { margin-bottom: var(--space-3); align-items: center; }
.sec-head > a { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.grid, .article-grid { gap: 18px; }
.tag { font-size: var(--fs-xs); padding: 4px 12px; line-height: 1.5; }
.chip { font-size: var(--fs-sm); padding: 8px 16px; }
.flash { font-size: 1rem; line-height: 1.6; padding: 13px 16px; }
.clamp { font-size: var(--fs-sm); line-height: 1.65; }
.price { font-size: 1.02rem; }
.empty p { font-size: 1.05rem; color: var(--muted); }

/* ส่วนหัว/ท้าย */
.top-in { min-height: 66px; }
.brand { font-size: 1.2rem; }
.nav { font-size: var(--fs-sm); gap: 18px; }
.nav a:not(.btn) { padding: 6px 2px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.subnav a, .shop-nav a { font-size: var(--fs-sm); padding: 9px 15px; min-height: 40px; display: inline-flex; align-items: center; }
.foot { font-size: var(--fs-sm); line-height: 1.8; padding: 44px 0 110px; }
.foot-links { gap: 10px 22px; max-width: 760px; }
.foot-links a { padding: 2px 0; }

/* หน้าแรก */
.hero2-main h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.3; }
.eyebrow { font-size: var(--fs-sm); font-family: var(--font-head); }
.hero-opt strong { font-size: 1.08rem; font-family: var(--font-head); }
.hero-opt small { font-size: var(--fs-sm); line-height: 1.65; }
.steps p, .features p { font-size: var(--fs-sm); line-height: 1.7; }
.cat { font-size: var(--fs-sm); padding: 18px 10px; line-height: 1.5; }
.cta { padding: 34px; }
.cta p { font-size: 1.05rem; }

/* ร้าน / บทความ / เอกสาร */
.shop-card h3 { font-size: 1.12rem; }
.menu li { padding: 14px 0; }
.week { font-size: 1rem; }
.review p { margin: 6px 0 0; }
.prose { font-size: 1.06rem; line-height: 1.9; max-width: 72ch; }
.article-main .prose, .narrow.prose { max-width: none; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.16rem; }
.prose table { font-size: var(--fs-sm); }
.article-card-body strong { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.45; }
.article-card-sm .article-card-body strong { font-size: var(--fs-sm); }
.paper { font-size: 1rem; line-height: 1.7; }
.ledger { font-size: 1rem; }
.money-cards span { font-size: var(--fs-sm); }
.stats span { font-size: var(--fs-xs); }
.slot span { font-size: 1.02rem; padding: 12px 0; }

/* เมนูด่วน */
.qb { font-size: var(--fs-sm); min-height: 44px; font-family: var(--font-head); }
@media (max-width: 700px) {
  .qb { font-size: .8rem; min-height: 52px; }
  .card { padding: 18px; }
  .main { padding-top: 22px; }
  .lead { font-size: 1.04rem; }
  .cta { padding: 24px; }
}
@media (max-width: 1120px) { .nav { gap: 16px; padding-bottom: 6px; } }
@media print { html { font-size: 100%; } }

/* กันล้นแนวนอนบนมือถือ: ลูกของ grid/flex ต้องหดได้ */
.dash > *, .with-side > *, .shop-body > *, .row > *, .form > *, .hours > *, .money-cards > *, .hero2 > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.hours { grid-template-columns: minmax(88px, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
.sec-head { flex-wrap: wrap; }
@media (max-width: 480px) {
  .hours { grid-template-columns: 1fr 1fr; }
  .hours .check { grid-column: 1 / -1; margin-top: 6px; }
}

/* ---- ปุ่มพื้นเข้มต้องมีตัวหนังสือสีอ่อนเสมอ (กฎ .nav a เคยทับสีของปุ่มในเมนู) ---- */
.btn, .nav a.btn, a.btn:hover { color: var(--brand-ink); }
.btn-ghost, .nav a.btn-ghost, a.btn-ghost:hover { color: var(--brand); }
.btn-light, a.btn-light:hover { color: var(--brand); }
.btn-accent, a.btn-accent:hover { color: var(--accent-ink); }
.btn-line, a.btn-line:hover { color: #fff; }
.side-cta h2, .cta h2 { color: #fff; }

/* ---- หน้าบริการทั้งหมด: หมวดใหญ่เท่านั้น ---- */
.cat-grid-lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-grid-lg .cat { padding: 22px 12px; gap: 6px; }
.cat-grid-lg .cat strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; }
.cat-grid-lg .cat small { font-size: var(--fs-xs); }
select:disabled { background: #f0f2f0; color: #88948f; }

/* ---- การ์ดผลงาน + ป๊อปอัปดูรูป ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #dfe5e1; cursor: zoom-in; }
.post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.post-thumb:hover img { transform: scale(1.03); }
.post-count { position: absolute; right: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: var(--fs-xs); }
.post-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.post-card-body p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: 96vw; height: 96vh; display: none; place-items: center; grid-template-rows: 1fr auto; overflow: hidden; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(8, 14, 12, .88); }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #111; }
.lb-cap { margin: 10px auto 0; max-width: 70ch; max-height: 12vh; overflow: auto; color: #fff; text-align: center; font-size: var(--fs-sm); white-space: pre-line; }
.lb-nav, .lb-close { position: fixed; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 14px; top: 14px; font-size: 1.2rem; }
.lb-nav[hidden] { display: none; }
.lb-count { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); color: #fff; font-size: var(--fs-sm); background: rgba(0, 0, 0, .5); padding: 2px 12px; border-radius: 999px; }

/* ---- ปุ่มแชร์ ---- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 1.2em; }
.card > .share:only-child { margin: 0; }
.share-label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-right: 2px; flex-basis: 100%; }
.share-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 9px; border: 1px solid #c3ccc7; background: #fff; color: var(--ink);
  font: 500 var(--fs-sm)/1.3 var(--font-head); cursor: pointer; text-decoration: none; }
.share-btn:hover { background: var(--brand-soft); text-decoration: none; }
.prose .share-btn { text-decoration: none; }
.share-line { background: var(--linegreen); border-color: var(--linegreen); color: #fff; }
.share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-x { background: #111; border-color: #111; color: #fff; }
.share-line:hover, .share-fb:hover, .share-x:hover { filter: brightness(1.1); background-color: revert-layer; }
.share-line:hover { background: var(--linegreen); } .share-fb:hover { background: #1877f2; } .share-x:hover { background: #111; }
.share-btn[hidden] { display: none; }

/* โลโก้เว็บจากการตั้งค่า + ลิงก์โซเชียลท้ายเว็บ */
.brand-logo { display: block; height: 38px; width: auto; max-width: 220px; object-fit: contain; }
.foot-social { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.foot-social a { text-decoration: underline; text-underline-offset: 3px; }
.consent a { color: #fff; text-decoration: underline; }

/* แผนคอนเทนต์ + ผู้ช่วยโพสต์ */
.tag-ok { background: var(--brand-soft); color: var(--brand); }
.tag-soft { background: var(--warn-bg); color: var(--warn-ink); }
.plan-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.plan-cols > * { min-width: 0; margin: 0; }
.plan-item header { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.plan-item header form { margin-left: auto; }
.plan-today .plan-item + .plan-item { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.plan-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.plan-body > p:only-child { grid-column: 1 / -1; }
.plan-body img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.plan-body p { margin: 0; overflow-wrap: anywhere; }
.plan-targets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-targets li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.plan-targets li.done { background: var(--brand-soft); border-color: transparent; }
.plan-group { font-weight: 600; margin-right: auto; overflow-wrap: anywhere; }
.plan-credit { margin: 0; padding: 10px 12px; background: var(--brand-soft); border-radius: 10px; font-size: var(--fs-sm); }
.plan-preview { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); }
.plan-ext ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.plan-ext summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 760px) {
  .plan-cols { grid-template-columns: minmax(0, 1fr); }
  .plan-body { grid-template-columns: minmax(0, 1fr); }
  .plan-body img { width: 100%; height: auto; max-height: 260px; }
}

/* โหมดโพสต์อัตโนมัติ */
.plan-auto { margin-top: 18px; padding: 16px; border: 1px solid #b9cfc7; border-radius: 12px; background: #f7fbf9; display: grid; gap: 12px; }
.plan-auto h3, .plan-auto p { margin: 0; }
.plan-advice { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.plan-auto-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.plan-auto-row label { display: grid; gap: 4px; font-size: var(--fs-sm); }
.plan-auto-status { font-weight: 600; color: var(--brand); min-height: 1.5em; overflow-wrap: anywhere; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* คู่มือเริ่มต้น + ฟอร์มรายงาน */
.guide { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.guide li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; }
.guide h2 { font-size: var(--fs-lg); margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide p { margin: 0 0 10px; color: var(--muted); }
.guide-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #eef1ee; color: #33423c; }
.guide li.done .guide-mark { background: var(--brand); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.plan-edit { margin-left: auto; font-size: var(--fs-sm); font-weight: 500; }
.plan-item header .plan-edit + form { margin-left: 12px; }
.btn-danger { background: #b3261e; color: #fff; border-color: #b3261e; }

/* รีวิวตรง */
.stars-pick { display: grid; gap: 6px; }
.stars-pick .check { align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.stars-pick .check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.stars-pick input { width: 20px; height: 20px; flex: none; }
.stars { color: #e8a013; letter-spacing: 1px; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
.review .tag { margin-left: 8px; }

.related-articles { margin-top: 36px; }
.related-articles h2 { margin-bottom: 14px; }

/* กลุ่มหัวข้อบทความ (silo) */
.silo-up { margin: 0 0 14px; padding: 10px 14px; background: var(--brand-soft); border-radius: 10px; }
.silo-block { margin-top: 28px; }
.silo-block > h2 { margin-bottom: 8px; }
