/* ===========================================================================
   WIZEHOME: ระบบดีไซน์ของเว็บสาธารณะ wizehome.cresive.com
   ---------------------------------------------------------------------------
   ทิศทางจากเจ้าของงาน (2026-09-29, แทนที่แนวทาง chapter/spotlight เดิม):
   สบาย อบอุ่น ไม่หรูเกินไป, เลื่อนหน้าแบบเว็บทั่วไป, รองรับ Light และ Dark Mode
   ตามอุปกรณ์ล้วนๆ (prefers-color-scheme ผ่าน data-theme="auto" ของ token ระบบ
   เดิม) ไม่มีปุ่มสลับธีมและไม่เก็บอะไรในเบราว์เซอร์ (ตรงกับประกาศความเป็น
   ส่วนตัวข้อ 14: เว็บสาธารณะไม่ใช้คุกกี้และไม่เก็บข้อมูลใน browser storage)

   ไฟล์นี้เป็นระบบของ WizeHome เอง: ไม่โหลด site.css/chapters.css/site.js/
   home.css/contact.css/legal.css ของ cresive.com เลย ใช้เฉพาะ
   /web/fonts.css (ฟอนต์ self-host), /tokens/cresive-tokens.css (สี ระยะ
   ตัวอักษร ที่มี light/dark + WizeHome brand override อยู่แล้ว) และ
   /web/form-controls.css+.js (ตัว select ที่ปรับแต่งแล้ว ใช้ token เท่านั้น
   ไม่ผูกกับ site.css) ตามที่เจ้าของงานอนุญาตให้ใช้ร่วมได้

   สี ระยะ ตัวอักษร ทั้งหมดอ้าง token ชั้นความหมาย (--cs-surface-*,
   --cs-content-*, --cs-action-*, --cs-border-*) เท่านั้น ไม่มีค่าสีตายตัว
   ในไฟล์นี้เลย นอกจาก currentColor/transparent
   =========================================================================== */

/* ---------------------------------------------------------------------------
   0. RESET + BASE
   --------------------------------------------------------------------------- */
.wh, .wh *, .wh *::before, .wh *::after { box-sizing: border-box; }
.wh { margin: 0; }
.wh img, .wh svg { display: block; max-width: 100%; }
.wh a { color: inherit; }
.wh ul, .wh ol { margin: 0; padding: 0; list-style: none; }
.wh h1, .wh h2, .wh h3, .wh p { margin: 0; }
.wh button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.wh input, .wh textarea, .wh select { font: inherit; color: inherit; }

body.wh {
  background: var(--cs-surface-canvas);
  color: var(--cs-content-primary);
  font-family: var(--cs-font-thai);
  font-size: var(--cs-size-thai);
  line-height: var(--cs-leading-relaxed);
  -webkit-font-smoothing: antialiased;
  /* positioned ancestor for .wh-grid-layer/.wh-page-lights (top:0;bottom:0 stretches them to the
     body's real content height automatically, same technique as cresive.com's own body/page-lights) */
  position: relative;
}
html[lang="en"] body.wh { font-family: var(--cs-font-ui); }
html { overflow-x: hidden; overflow-x: clip; }

.wh :lang(th) { letter-spacing: 0 !important; }

.wh .ic { width: var(--cs-icon-lg); height: var(--cs-icon-lg); stroke: currentColor; stroke-width: var(--cs-icon-stroke); fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wh .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wh-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--cs-space-6); }
@media (max-width: 720px) { .wh-wrap { padding: 0 var(--cs-space-4); } }

/* Section rhythm: normal document flow, generous but not theatrical spacing */
.wh-section { padding: clamp(48px, 8vw, 96px) 0; }
.wh-section + .wh-section { border-top: var(--cs-border-hairline) solid var(--cs-border-subtle); }
.wh-section-head { max-width: 640px; margin: 0 0 var(--cs-space-10); }
.wh-section-head.center { margin-inline: auto; text-align: center; }
.wh-eyebrow {
  display: inline-block; font-family: var(--cs-font-ui); font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-semibold);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cs-content-brand); margin-bottom: var(--cs-space-3);
}
/* Heading type is the Cresive display face (site.css .display, W3: a brand theme overrides colour tokens only): the whole heading is
   Trirong semibold in Thai and Playfair Display semibold in English, and the accent line is the same face in italic regular in the
   theme brand colour, which is what .display em is on cresive.com. Until 28 Oct 2026 the plain line was IBM Plex Sans Thai Looped / Inter
   next to a serif italic line, a mix the owner called out of place beside Cresive. Which line is the accent still follows the slot
   (a1, a2, a2e of WhHtml::heading), so no content moves. Thai takes no letter-spacing; English takes the Latin display tracking. */
.wh-h1, .wh-h2, .wh-h3 {
  font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary);
  line-height: var(--cs-leading-thai-display); text-wrap: balance;
}
html[lang="en"] .wh-h1, html[lang="en"] .wh-h2, html[lang="en"] .wh-h3 { line-height: var(--cs-leading-tight); letter-spacing: var(--cs-tracking-heading); }
/* font-size/line-height set explicitly to `inherit`, not left to fall through from the parent
   heading: cresive-tokens.css's base `:lang(th) { font-size: var(--cs-size-thai); ... }` targets
   every Thai-language element directly (matching via the lang attribute on <html>), and a direct
   match always wins over inheritance regardless of specificity. Without this, the plain second
   line silently dropped from the heading's ~43px down to the body-text 16px, reading as a stray
   caption instead of the second half of a two-line headline. */
.wh-h1 .ln, .wh-h2 .ln, .wh-h3 .ln { display: block; font-family: var(--cs-font-thai-display); font-size: inherit; line-height: inherit; }
html[lang="en"] .wh-h1 .ln, html[lang="en"] .wh-h2 .ln, html[lang="en"] .wh-h3 .ln { font-family: var(--cs-font-display); }
.wh-h1 .ln-accent, .wh-h2 .ln-accent, .wh-h3 .ln-accent { font-style: italic; font-weight: var(--cs-weight-regular); color: var(--cs-content-brand); }
.wh-h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: var(--cs-space-4); }
.wh-h1 .ln-accent { font-size: clamp(26px, 3.6vw, 40px); }
.wh-h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: var(--cs-space-3); }
.wh-h2 .ln-accent { font-size: clamp(21px, 2.6vw, 29px); }
.wh-h3 { font-size: var(--cs-size-heading); margin-bottom: var(--cs-space-2); }
.wh-h3 .ln-accent { font-size: var(--cs-size-body-lg); }
.wh-lede { font-size: var(--cs-size-reading); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); max-width: 40em; }
.wh-section-head.center .wh-lede { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   1. BUTTONS
   --------------------------------------------------------------------------- */
.wh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cs-space-2);
  min-height: 44px; padding: 0 var(--cs-space-6); border-radius: var(--cs-radius-full);
  font-family: var(--cs-font-thai); font-size: var(--cs-size-thai); font-weight: var(--cs-weight-medium);
  text-decoration: none; border: var(--cs-border-hairline) solid transparent; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
html[lang="en"] .wh-btn { font-family: var(--cs-font-ui); }
/* .wh-btn.wh-btn-primary (two classes), not .wh-btn-primary alone: ".wh a { color: inherit }" in
   the reset above is a class+tag selector (specificity 0,1,1) which otherwise beats a single-class
   button rule (0,1,0) regardless of source order, silently replacing the on-action ink colour with
   whatever text colour the button happens to sit inside. Found via real contrast measurement:
   the button was rendering content-primary text on the action colour, e.g. #20242C on #085845
   (light mode) = 1.85:1, far under the 4.5:1 minimum. */
.wh-btn.wh-btn-primary { background: var(--cs-action-primary); color: var(--cs-content-on-action); }
.wh-btn.wh-btn-primary:hover { background: var(--cs-action-primary-hover); }
.wh-btn.wh-btn-primary:active { background: var(--cs-action-primary-pressed); }
.wh-btn.wh-btn-secondary { background: var(--cs-surface-elevated); color: var(--cs-content-primary); border-color: var(--cs-border-default); }
.wh-btn.wh-btn-secondary:hover { border-color: var(--cs-border-strong); }
.wh-btn:focus-visible { outline: none; box-shadow: var(--cs-focus-ring); }
.wh-btn[aria-disabled="true"] {
  background: var(--cs-surface-sunken); color: var(--cs-content-disabled); border-color: var(--cs-border-subtle);
  cursor: not-allowed; pointer-events: none;
}
.wh-actions { display: flex; flex-wrap: wrap; gap: var(--cs-space-3); margin-top: var(--cs-space-6); }
.wh-section-head.center .wh-actions { justify-content: center; }

/* ---------------------------------------------------------------------------
   2. HEADER / NAV
   ---------------------------------------------------------------------------
   Coordinator instruction (2026-09-29, "ให้ WizeHome ล้อกับ Cresive ที่โครง"):
   nav-wizehome-th/-en.html now carry the EXACT markup of Cresive's own
   web/partials/nav-th.html / nav-en.html (site-nav, nav-cap-brand,
   nav-cap-pages > nav-menu, nav-cap-account > nav-lang + btn-login +
   nav-toggle, mobile-menu with mobile-menu-divider/mobile-menu-lang), so the
   selectors below are the SAME class names Cresive's site.css defines for
   those elements, not new wh- names. site.css itself is still never loaded
   here (DEC-241/245: WizeHome stays its own light/dark system, not
   dark-only): every rule here is scoped under html[data-brand="wizehome"]
   and reads WizeHome's own theme-reactive tokens in place of the couple of
   literal/dark-only values site.css uses for a permanently-dark canvas
   (--nav-glass-bg, the mobile-menu's rgba(0,0,0,.94) scrim). Position,
   sizing and the 1023.98px collapse breakpoint are copied exactly so the
   capsule/mobile-menu behave identically on both sites; only colour and
   background differ, per the coordinator's instruction. Mobile menu
   open/close JS is web/site.js (loaded unmodified, verified side-effect
   free with no .chapter/.hover-light/.device-crop elements present, see
   the <script> tags at the bottom of each WizeHome page). */
html[data-brand="wizehome"] {
  --wh-nav-cap-top: 24px; --wh-nav-cap-h: 56px; --wh-nav-h: 96px; /* desktop: 24 top + 56 tall + 16 breathing room, same sum as Cresive's --nav-h */
}
@media (max-width: 1023.98px) {
  html[data-brand="wizehome"] { --wh-nav-h: calc(76px + env(safe-area-inset-top, 0px)); }
}
html[data-brand="wizehome"] .site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: var(--cs-layer-sticky); pointer-events: none;
}
html[data-brand="wizehome"] .site-nav > * { pointer-events: auto; }
html[data-brand="wizehome"] .nav-cap {
  position: absolute; top: var(--wh-nav-cap-top); height: var(--wh-nav-cap-h);
  display: flex; align-items: center; border-radius: var(--cs-radius-full);
  background: var(--cs-surface-glass-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--cs-shadow-glass), 0 0 0 var(--cs-border-hairline) var(--cs-border-subtle);
  transition: background-color var(--cs-duration-slow) var(--cs-ease-standard);
  /* Same reason Cresive's own .nav-cap sets a text-shadow: the capsule is a translucent blurred
     glass over whatever scrolls underneath it, so no fixed text colour guarantees contrast on its
     own. Cresive can use a single hardcoded dark shadow because its canvas is always dark; WizeHome
     supports both themes, so the halo uses --cs-surface-canvas itself (near-white in light mode,
     near-black in dark), which is always the right side of the contrast pair for
     --cs-content-primary/secondary text in that theme. */
  text-shadow: 0 0 5px color-mix(in srgb, var(--cs-surface-canvas) 85%, transparent),
               0 0 10px color-mix(in srgb, var(--cs-surface-canvas) 60%, transparent);
}
html[data-brand="wizehome"] .nav-cap-brand { left: var(--cs-space-6); padding: 0 var(--cs-space-4); }
html[data-brand="wizehome"] .brand { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; border-radius: var(--cs-radius-sm); }
html[data-brand="wizehome"] .brand svg { display: block; width: auto; }
html[data-brand="wizehome"] .brand .lockup svg { height: 26px; }
html[data-brand="wizehome"] .brand .symbol { display: none; }
html[data-brand="wizehome"] .brand .symbol svg { height: 34px; }
html[data-brand="wizehome"] .nav-cap-pages { left: 50%; translate: -50% 0; padding: 0 var(--cs-space-2); gap: var(--cs-space-3); }
html[data-brand="wizehome"] .nav-menu { display: flex; align-items: center; gap: var(--cs-space-3); }
html[data-brand="wizehome"] .nav-menu a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--cs-space-3);
  text-decoration: none; font-family: var(--cs-font-thai); font-size: 15px; font-weight: var(--cs-weight-regular);
  color: var(--cs-content-secondary); border-radius: var(--cs-radius-full);
  transition: color var(--cs-duration-base) var(--cs-ease-standard), background-color var(--cs-duration-base) var(--cs-ease-standard);
}
html[lang="en"][data-brand="wizehome"] .nav-menu a { font-family: var(--cs-font-ui); }
html[data-brand="wizehome"] .nav-menu a:hover, html[data-brand="wizehome"] .nav-menu a:focus-visible {
  color: var(--cs-content-primary); font-weight: var(--cs-weight-semibold); background: var(--cs-action-secondary-hover);
}
html[data-brand="wizehome"] .nav-menu a:focus-visible { box-shadow: var(--cs-focus-ring); outline: none; }
html[data-brand="wizehome"] .nav-menu a[aria-current="page"] { color: var(--cs-content-primary); font-weight: var(--cs-weight-semibold); background: var(--cs-action-secondary-hover); }
html[data-brand="wizehome"] .nav-cap-account { right: var(--cs-space-6); padding: 0 var(--cs-space-2); gap: var(--cs-space-3); }
html[data-brand="wizehome"] .nav-lang {
  display: inline-flex; align-items: center; gap: var(--cs-space-1); min-height: 40px; padding: 0 var(--cs-space-3);
  border: 0; border-radius: var(--cs-radius-full); cursor: pointer; background: transparent;
  font-family: var(--cs-font-thai); font-size: 14px; font-weight: var(--cs-weight-regular);
  color: var(--cs-content-secondary); text-decoration: none;
  transition: background-color var(--cs-duration-base) var(--cs-ease-standard);
}
html[lang="en"][data-brand="wizehome"] .nav-lang { font-family: var(--cs-font-ui); }
html[data-brand="wizehome"] .nav-lang .ic { width: 16px; height: 16px; }
html[data-brand="wizehome"] .nav-lang:hover { background: var(--cs-action-secondary-hover); }
html[data-brand="wizehome"] .nav-lang:focus-visible { box-shadow: var(--cs-focus-ring); outline: none; }
/* Light Mode (เจ้าของงาน 2026-09-30 "แถบนำทางอ่านไม่ออก"): แคปซูลนำทางเดิมเป็นกระจกใสสีเทาอ่อน (--cs-surface-glass-strong) ตัวอักษรสีรอง
   วางทับภาพห้องสีเข้มและพื้นสว่างสลับกัน ไม่มีสีตัวอักษรเดียวที่ผ่านทั้งสองพื้น จึงใช้กระจกฝ้าสว่างทึบ 84% ตัวอักษรสีหลักเข้ม (ขอบเขตล่างของ
   พื้นหลัง: ภาพเข้มสุด L~0.03 ผสมขาว 84% ได้ L~0.68 ตัวอักษร #20242C ได้ >= 9:1) รูปทรงเท่าเดิม ตัวบอกบทด้านขวาปรับตาม
   เฉพาะโหมด light ตามอุปกรณ์ (DEC-245) ทั้ง auto และ light */
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .nav-cap {
    background: color-mix(in srgb, #fff 84%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 6px 20px rgba(20, 24, 32, 0.12), 0 0 0 1px rgba(20, 24, 32, 0.10);
    text-shadow: none;
  }
    html[data-brand="wizehome"][data-theme="auto"] .nav-menu a,   html[data-brand="wizehome"][data-theme="auto"] .nav-lang { color: var(--cs-content-primary); }
    html[data-brand="wizehome"][data-theme="auto"] .nav-menu a:hover,   html[data-brand="wizehome"][data-theme="auto"] .nav-menu a:focus-visible,   html[data-brand="wizehome"][data-theme="auto"] .nav-menu a[aria-current="page"],   html[data-brand="wizehome"][data-theme="auto"] .nav-lang:hover { background: rgba(20, 24, 32, 0.08); }
    html[data-brand="wizehome"][data-theme="auto"] .nav-toggle { color: var(--cs-content-primary); }
    html[data-brand="wizehome"][data-theme="auto"] .chapters-nav { background: color-mix(in srgb, #fff 84%, transparent); border-color: rgba(20, 24, 32, 0.10); box-shadow: 0 6px 20px rgba(20, 24, 32, 0.12); }
}
html[data-brand="wizehome"][data-theme="light"] .nav-cap {
  background: color-mix(in srgb, #fff 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 6px 20px rgba(20, 24, 32, 0.12), 0 0 0 1px rgba(20, 24, 32, 0.10);
  text-shadow: none;
}
html[data-brand="wizehome"][data-theme="light"] .nav-menu a, html[data-brand="wizehome"][data-theme="light"] .nav-lang { color: var(--cs-content-primary); }
html[data-brand="wizehome"][data-theme="light"] .nav-menu a:hover, html[data-brand="wizehome"][data-theme="light"] .nav-menu a:focus-visible, html[data-brand="wizehome"][data-theme="light"] .nav-menu a[aria-current="page"], html[data-brand="wizehome"][data-theme="light"] .nav-lang:hover { background: rgba(20, 24, 32, 0.08); }
html[data-brand="wizehome"][data-theme="light"] .nav-toggle { color: var(--cs-content-primary); }
html[data-brand="wizehome"][data-theme="light"] .chapters-nav { background: color-mix(in srgb, #fff 84%, transparent); border-color: rgba(20, 24, 32, 0.10); box-shadow: 0 6px 20px rgba(20, 24, 32, 0.12); }

/* แคปซูลนำทาง dark: ใสเท่า Cresive (--nav-glass-bg = ขาว 4.5%, blur 3px) ตัวอักษรใช้เงา halo เดิมของ WizeHome */
html[data-brand="wizehome"] .nav-cap { background: color-mix(in srgb, white 4.5%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* .btn-login: primary tone (two classes worth of specificity is not needed here since ".wh a { color:
   inherit }" only matches .wh-scoped pages and this selector is html[data-brand] scoped and more
   specific already; still declares color explicitly rather than relying on inheritance) */
html[data-brand="wizehome"] .btn-login {
  display: inline-flex; align-items: center; gap: var(--cs-space-2); min-height: 40px; padding: 0 var(--cs-space-4);
  border-radius: var(--cs-radius-full); border: 0; text-decoration: none; cursor: pointer;
  font-family: var(--cs-font-thai); font-size: 14px; font-weight: var(--cs-weight-semibold);
  background: var(--cs-action-primary); color: var(--cs-content-on-action);
  transition: background-color var(--cs-duration-base) var(--cs-ease-standard);
  /* solid fill already reads fine on its own; drop the capsule's canvas-halo text-shadow so it
     doesn't muddy the on-action ink colour */
  text-shadow: none;
}
html[lang="en"][data-brand="wizehome"] .btn-login { font-family: var(--cs-font-ui); }
html[data-brand="wizehome"] .btn-login .ic { width: 16px; height: 16px; }
html[data-brand="wizehome"] .btn-login:hover { background: var(--cs-action-primary-hover); }
html[data-brand="wizehome"] .btn-login:focus-visible { box-shadow: var(--cs-focus-ring); outline: none; }
html[data-brand="wizehome"] .nav-toggle { display: none; }

@media (max-width: 1023.98px) {
  html[data-brand="wizehome"] .site-nav { height: 56px; }
  html[data-brand="wizehome"] .nav-cap { top: calc(env(safe-area-inset-top, 0px) + var(--cs-space-2)); height: 52px; }
  html[data-brand="wizehome"] .nav-cap-brand { left: var(--cs-space-4); padding: 0 var(--cs-space-4); width: auto; }
  html[data-brand="wizehome"] .brand .lockup { display: inline-flex; }
  html[data-brand="wizehome"] .brand .symbol { display: none; }
  html[data-brand="wizehome"] .brand .lockup svg { width: 110px; height: auto; }
  html[data-brand="wizehome"] .nav-cap-pages { display: none; }
  html[data-brand="wizehome"] .nav-cap-account { right: var(--cs-space-4); padding: 0 4px; gap: 4px; }
  html[data-brand="wizehome"] .nav-cap-account .nav-lang { display: none; }
  html[data-brand="wizehome"] .btn-login { min-height: 44px; }
  html[data-brand="wizehome"] .btn-login .ic { display: none; }
  html.js[data-brand="wizehome"] .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border: 0; border-radius: var(--cs-radius-full); cursor: pointer;
    color: var(--cs-content-primary); background: transparent;
  }
  html[data-brand="wizehome"] .nav-toggle:hover { background: var(--cs-action-secondary-hover); }
  html[data-brand="wizehome"] .nav-toggle:focus-visible { box-shadow: var(--cs-focus-ring); outline: none; }
  html[data-brand="wizehome"] .nav-toggle .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); overflow: visible; }
  html[data-brand="wizehome"] .nav-toggle .ic path { transform-box: view-box; transform-origin: 12px 12px; transition: transform var(--cs-duration-base) var(--cs-ease-standard), opacity var(--cs-duration-fast) var(--cs-ease-standard); }
  html[data-brand="wizehome"] .nav-toggle[aria-expanded="true"] .ic path:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  html[data-brand="wizehome"] .nav-toggle[aria-expanded="true"] .ic path:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
  html[data-brand="wizehome"] .nav-toggle[aria-expanded="true"] .ic path:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) { html[data-brand="wizehome"] .nav-toggle .ic path { transition: none; } }

/* Mobile menu overlay: same fixed full-screen panel/stagger-reveal behaviour as Cresive's
   .mobile-menu, but a token-driven near-opaque canvas scrim instead of a hardcoded dark rgba(0,0,0,.94)
   (that literal black would read as a jarring blackout over WizeHome's warm light theme; the canvas
   token keeps the "cozy, not too luxurious" tone in both themes while staying effectively opaque). */
html[data-brand="wizehome"] .mobile-menu {
  display: flex; position: fixed; inset: 0; z-index: calc(var(--cs-layer-sticky) - 1);
  flex-direction: column; padding: var(--cs-space-4);
  background: color-mix(in srgb, var(--cs-surface-canvas) 96%, transparent);
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--cs-duration-fast) var(--cs-ease-standard), visibility 0s linear var(--cs-duration-fast);
}
html:not(.js)[data-brand="wizehome"] .mobile-menu { display: none; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity var(--cs-duration-base) var(--cs-ease-decelerate), visibility 0s;
}
html[data-brand="wizehome"] .mobile-menu > * {
  opacity: 0; translate: 0 -10px;
  transition: opacity var(--cs-duration-fast) var(--cs-ease-standard), translate var(--cs-duration-fast) var(--cs-ease-standard);
}
html.js[data-brand="wizehome"] .mobile-menu[data-open] > * {
  opacity: 1; translate: 0 0;
  transition: opacity var(--cs-duration-slow) var(--cs-ease-decelerate), translate var(--cs-duration-slow) var(--cs-ease-decelerate);
}
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(1) { transition-delay: 80ms; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(2) { transition-delay: 130ms; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(3) { transition-delay: 180ms; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(4) { transition-delay: 230ms; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(5) { transition-delay: 280ms; }
html.js[data-brand="wizehome"] .mobile-menu[data-open] > :nth-child(6) { transition-delay: 330ms; }
@media (prefers-reduced-motion: reduce) { html[data-brand="wizehome"] .mobile-menu, html[data-brand="wizehome"] .mobile-menu > * { transition: none !important; translate: none !important; } }
html[data-brand="wizehome"] .mobile-menu a, html[data-brand="wizehome"] .mobile-menu-lang {
  display: flex; align-items: center; gap: var(--cs-space-3); min-height: 52px; padding: 0 var(--cs-space-3);
  border: 0; border-radius: var(--cs-radius-md); text-decoration: none; cursor: pointer;
  font-family: var(--cs-font-thai); font-size: 15px; font-weight: var(--cs-weight-medium);
  color: var(--cs-content-primary); background: transparent; text-align: left; width: 100%;
}
html[lang="en"][data-brand="wizehome"] .mobile-menu a, html[lang="en"][data-brand="wizehome"] .mobile-menu-lang { font-family: var(--cs-font-ui); }
html[data-brand="wizehome"] .mobile-menu a:hover, html[data-brand="wizehome"] .mobile-menu a:focus-visible,
html[data-brand="wizehome"] .mobile-menu-lang:hover, html[data-brand="wizehome"] .mobile-menu-lang:focus-visible {
  background: var(--cs-action-secondary-hover); outline: none;
}
html[data-brand="wizehome"] .mobile-menu a[aria-current="page"] { color: var(--cs-content-brand); }
html[data-brand="wizehome"] .mobile-menu-divider { height: 1px; margin: var(--cs-space-3) var(--cs-space-3); background: var(--cs-border-subtle); }
@media (min-width: 1024px) { html[data-brand="wizehome"] .mobile-menu { display: none !important; } }
@media (max-width: 1023.98px) { html[data-brand="wizehome"] .mobile-menu { padding-top: calc(env(safe-area-inset-top, 0px) + 52px + 2 * var(--cs-space-2) + var(--cs-space-2)); } }

/* content clearance: .site-nav is position:fixed/height:0 and takes no flow space (unlike the old
   position:sticky .wh-header), so every page reserves --wh-nav-h at the top of <main> itself,
   the same way Cresive reserves --nav-h at the top of each .chapter */
html[data-brand="wizehome"] main { padding-top: var(--wh-nav-h); }

/* ---------------------------------------------------------------------------
   3. HERO
   ---------------------------------------------------------------------------
   Full-bleed (coordinator 2026-09-29, replaces the earlier rounded-card
   version): the living-room photo fills the entire first screen (100vw,
   100svh/100dvh) behind the nav capsules, with copy/phone/panels/standards
   row laid over it. .wh-hero itself cancels the page's normal --wh-nav-h
   top padding (negative margin) and re-adds it as its own padding, so the
   photo extends edge-to-edge under the nav while the content still clears
   it. First screen must still show the whole hero with no clipped bottom
   edge at 1440x900/1280x720/1024x700/768x1024/375x812/360x640: every
   vertical contributor (grid gap, heading size, phone size, device-row) is
   sized with svh-anchored clamp()s so a short viewport shrinks the whole
   hero instead of letting one piece overflow past the fold. */
.wh-hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--wh-nav-h)); padding-top: var(--wh-nav-h);
  min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: center;
}
.wh-hero-content { position: relative; z-index: 1; width: 100%; padding: clamp(4px, 1.6svh, 28px) 0; }
/* Real living-room photograph, full-bleed. --wh-hero-media-pos lets a specific image's focal
   point be set per page without touching this file. mask-image (not a solid scrim) fades the
   photo itself toward transparent at the bottom and toward the text side, per the coordinator:
   the page's own canvas colour and faint grid-layer show through where it fades, instead of a
   flat colour painted over the photo. Because the fade targets exactly the side the copy sits on,
   the text ends up over the already-faded (near-canvas) part of the image by construction. */
.wh-hero-media { position: absolute; inset: 0; z-index: 0; }
.wh-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--wh-hero-media-pos, 60% 50%);
  /* stop positions measured against the real photo (sampled source pixel under .wh-h1/.wh-lede,
     composited with the mask's actual computed alpha at that position, checked with the WCAG
     formula, same method as the earlier rounded-card version): the first attempt (34%/30%) left
     the text column still ~95% opaque photo since the copy column runs to roughly 45% of the
     hero's width; widened to 70%/35%, still measured against the real pixels below the copy
     column stays around 43-46% opaque photo, which is enough in light mode (canvas is light and
     the photo itself is a light room) but NOT in dark mode: a light, warm-toned photo composited
     toward a near-black canvas at ~46% opacity still leaves the room's own light tones showing
     through, measured only 1.77:1 for the lede text before darkening the source further (see the
     brightness filter below, dark mode only) */
  /* owner 2026-09-29: "ดูสดใส". The photo stays mostly visible (35% at the far text edge, full
     from 60%) and only fades out at the bottom into the canvas. Legibility no longer comes from
     darkening the whole room: a soft canvas-coloured wash sits behind the copy column only
     (.wh-hero::before), so the sofa, plant and window light on the right keep their daylight. */
  /* เจ้าของงาน 2026-09-30: ขอบล่างของภาพต้องจางลงเข้ากับพื้นแบบนุ่มนวล ไม่ใช่เส้นตัดแข็งๆ ที่รอยต่อกับบทที่ 2
     ไล่เดิมจบที่ black แค่ 30% (สั้นและแข็ง เหมือนโดนตัดเป๊ะ) ยืดให้ยาวถึง 55% และเพิ่ม stop กลางทางให้โค้ง
     แบบ ease-out (โปร่งเร็วช่วงล่างสุด แล้วค่อยๆ ชะลอเข้าสู่ทึบ) แทนเส้นตรงสองจุดเดิม */
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, black 60%), linear-gradient(to top, transparent 0%, rgba(0,0,0,.16) 12%, rgba(0,0,0,.4) 24%, rgba(0,0,0,.66) 36%, rgba(0,0,0,.86) 46%, black 55%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, black 60%), linear-gradient(to top, transparent 0%, rgba(0,0,0,.16) 12%, rgba(0,0,0,.4) 24%, rgba(0,0,0,.66) 36%, rgba(0,0,0,.86) 46%, black 55%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  filter: brightness(0.78) saturate(1.05);
}
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-hero-media img { filter: brightness(1.04) saturate(1.05); }
}
html[data-brand="wizehome"][data-theme="light"] .wh-hero-media img { filter: brightness(1.04) saturate(1.05); }
/* text-side wash: canvas colour, strongest behind the copy, gone before the phone column */
.wh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--cs-surface-canvas) var(--wh-wash-a, 90%), transparent) 0%,
    color-mix(in srgb, var(--cs-surface-canvas) var(--wh-wash-b, 82%), transparent) var(--wh-wash-mid, 50%),
    transparent var(--wh-wash-end, 74%));
}
/* light mode: the room's darker furniture sits under the copy, so dark text needs a denser wash
   than light text does in dark mode (measured lede 3.99:1 at the dark-mode stops); the dense stop also sits further right (58%, fade ends 80%)
   because longer copy (EN at 1024x700 measured lede 4.33:1 with stops 50%/74%) reaches into the fade */
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-hero { --wh-wash-a: 94%; --wh-wash-b: 90%; --wh-wash-mid: 58%; --wh-wash-end: 80%; }
}
html[data-brand="wizehome"][data-theme="light"] .wh-hero { --wh-wash-a: 94%; --wh-wash-b: 90%; --wh-wash-mid: 58%; --wh-wash-end: 80%; }
@media (max-width: 900px) {
  /* stacked layout: copy sits on top, so the wash runs top-down instead */
  .wh-hero::before { background: linear-gradient(180deg,
    color-mix(in srgb, var(--cs-surface-canvas) var(--wh-wash-a, 90%), transparent) 0%,
    color-mix(in srgb, var(--cs-surface-canvas) var(--wh-wash-b, 82%), transparent) 55%,
    transparent 85%); }
}
.wh-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(var(--cs-space-6), 4svh, var(--cs-space-12)); align-items: center; }
@media (max-width: 900px) { .wh-hero-grid { grid-template-columns: 1fr; gap: clamp(var(--cs-space-2), 1.8svh, var(--cs-space-10)); } }
/* Hero heading/lede/actions get their own svh-anchored sizes (smaller than the shared .wh-h1
   default), and tighter vertical margins, purely for the first-screen-fit budget: everywhere else
   .wh-h1/.wh-lede keep their normal size. */
.wh-hero-copy .wh-h1 { font-size: clamp(20px, 1.6vw + 2.6svh, 48px); margin-bottom: clamp(4px, 1.4svh, var(--cs-space-4)); }
.wh-hero-copy .wh-h1 .ln-accent { font-size: clamp(18px, 1.4vw + 2.2svh, 40px); }
.wh-hero-copy .wh-lede { font-size: clamp(13px, 0.3vw + 1.7svh, var(--cs-size-reading)); line-height: 1.35; margin-bottom: clamp(4px, 1.2svh, var(--cs-space-4)); }
.wh-hero-copy .wh-actions { margin-top: clamp(var(--cs-space-2), 1.2svh, var(--cs-space-6)); gap: clamp(var(--cs-space-2), 1svh, var(--cs-space-3)); }
.wh-hero-copy .wh-eyebrow { margin-bottom: clamp(4px, 0.6svh, var(--cs-space-3)); }

/* .wh-hero-device now spans the FULL device column (not fit-content around just the phone):
   the float panels are positioned at left:0/right:0 of THIS element, so by construction they can
   never sit outside it, and this element itself never exceeds the hero-grid column, which never
   exceeds the card. Contained by layout, not by relying on the card's overflow:hidden to clip an
   overflow after the fact (measured overflowing past the card at 1024px and 800px before this
   fix: panel right edge 1060.9px vs card right edge 1009px). The phone stays centred inside via
   flex regardless of where the (out-of-flow, absolutely positioned) panels sit. */
.wh-hero-device { position: relative; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
/* svh-anchored, not a fixed 220px: on a short viewport (e.g. 1024x700, 360x640) a fixed phone
   height was the single biggest contributor pushing the hero-card bottom edge past the fold */
.wh-phone-crop { position: relative; z-index: 1; width: clamp(96px, 21svh, 220px); max-width: 50vw; aspect-ratio: 9 / 19.5; }
.wh-phone {
  position: relative; width: 100%; height: 100%; border-radius: var(--cs-radius-xl);
  background: var(--cs-surface-default);
  box-shadow: var(--cs-elevation-3), inset 0 0 0 1px color-mix(in srgb, var(--cs-content-primary) 10%, transparent);
  /* clip the screen to the frame's rounded corners: .wh-app-screen's bottom corners are square
     (it butts flush against the phone's bottom edge), so without this the square corners poked
     past the frame's rounded ones, visible as a small step at the bottom-left/right */
  overflow: hidden;
}
/* จอมีขอบกรอบเท่ากันทั้งสี่ด้านและมุมมนทั้งบนล่าง (เจ้าของงาน 2026-09-29: จอชนขอบล่างของเครื่องดูเหมือนล้นออกมา) */
.wh-app-screen { position: absolute; inset: 6px; border-radius: calc(var(--cs-radius-xl) - 4px); background: var(--cs-surface-canvas); overflow: hidden; }
.wh-app-screen img, .wh-app-screen picture { width: 100%; height: 100%; object-fit: cover; }
.wh-float-panel {
  position: absolute; z-index: 2; width: max-content; max-width: min(220px, 40%);
  display: flex; align-items: center; gap: var(--cs-space-2); padding: clamp(6px, 0.8svh, var(--cs-space-3));
  font-size: clamp(12px, 1svh, var(--cs-size-body));
}
.wh-float-panel-left { left: 0; top: 14%; }
.wh-float-panel-right { right: 0; bottom: 16%; }
.wh-float-panel .wh-status-icon { width: clamp(28px, 3.2svh, 36px); height: clamp(28px, 3.2svh, 36px); }
/* panels are a two-column flourish: drop them once .wh-hero-grid itself stacks to one column
   (900px, above) rather than at their own separate breakpoint, so they never appear pinned to
   the edges of a now full-width single-column device area */
@media (max-width: 900px) { .wh-float-panel { display: none; } }
/* Below 900px the grid stacks (copy above, phone below), so the phone now adds its own full
   vertical slice on top of the text block's, instead of sharing a row with it side by side: the
   desktop svh coefficient (21svh) was still sized for the side-by-side case and measured 369px
   tall at 375x812, on its own blowing well past the first-screen budget once the text block and
   device-row are added too. Shrunk specifically for the stacked layout so "ย่อ ไม่ใช่ตัดทิ้ง"
   (shrink, don't remove) still shows a real phone, just a small one. */
@media (max-width: 900px) { .wh-phone-crop { width: clamp(48px, 8.6svh, 130px); max-width: 30vw; } }

/* จอมือถือในบทที่ 1 (hero) ว่างเปล่ารอใส่ดีไซน์แอปจริง (เจ้าของงานสั่ง 2026-09-30, ตัดรายการสถานะใน
   .wh-app-screen ออกทั้งหมด): ขยายตัวเครื่องแทนที่จะปล่อยพื้นที่ว่างเปล่าลอยอยู่ (สัดส่วนเดียวกับ .wh-phone-crop
   เดิม 9:19.5 คงไว้ไม่เปลี่ยน แค่ค่า clamp ใหญ่ขึ้นทั้งสองขั้นความกว้างจอ, max-width เดิมคงไว้กันล้นแถวป้ายลอย) */
/* เจ้าของงาน 2026-09-30: โทรศัพท์ต้องใหญ่ชัดเจน เป็นวัตถุเด่นของครึ่งขวา: จอกว้าง 31svh = สูงราว 67% ของจอ
   (เดิม 27svh = 58%) จอซ้อนคอลัมน์ (<= 900px) ใช้ความสูงที่เหลือหลังข้อความ: วัดจริง 3 ขนาด (640/812/1024) ได้
   ส่วนเหลือเป็นเส้นตรงตามความสูงจอ จึงใช้สูตร 47svh - 240px (เดิม 11svh = 24% ของจอ) ถูกจำกัดด้วยความกว้างจอ 46vw */
.wh-phone-hero-lg { width: clamp(150px, 31svh, 390px); max-width: 50vw; }
@media (max-width: 900px) { .wh-phone-hero-lg { width: clamp(72px, calc(47svh - 240px), 300px); max-width: 46vw; } }

/* App status readout chip: still used inside the hero's floating panels (.wh-float-panel). The
   card/stack variant (.wh-status-card/.wh-status-stack) that used to sit beside chapter 4's phone
   was removed in this round: the owner replaced that layout with the phone+rings+feature showcase
   below (หมวด 14), which carries the same messages as short feature labels instead. */
.wh-status-icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--cs-radius-md); display: grid; place-items: center;
  background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-brand);
}
.wh-status-icon .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
.wh-status-text .app { display: block; font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-semibold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cs-content-tertiary); }
.wh-status-text .msg { display: block; font-size: var(--cs-size-body); font-weight: var(--cs-weight-medium); color: var(--cs-content-primary); }

/* "Works with" device-category row: icons and category names only, never a third-party logo */
/* Own solid-ish backing, not just the hero photo's left-to-right scrim above: the row runs the
   full card width, so its right-hand items sit over the UNSCRIMMED part of the photo (the scrim
   fades to fully transparent by 68% width). Measured against the real photo (sampled pixel colour
   under the rightmost item, WCAG formula): bare photo there was 2.61:1 against content-secondary
   text, well under 4.5:1. A 90%-canvas backing bar (checked at both the measured pixel and a
   deliberately darker worst-case patch) clears 5.6-6.1:1 in both themes. */
.wh-device-row {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: clamp(var(--cs-space-2), 2vw, var(--cs-space-6));
  margin-top: clamp(var(--cs-space-2), 2svh, var(--cs-space-8)); padding: clamp(6px, 1.2svh, var(--cs-space-5)) clamp(var(--cs-space-3), 2vw, var(--cs-space-6));
  background: color-mix(in srgb, var(--cs-surface-canvas) 90%, transparent);
  border-radius: var(--cs-radius-lg);
}
.wh-device-row-item { display: flex; align-items: center; gap: var(--cs-space-2); color: var(--cs-content-secondary); font-size: var(--cs-size-body-dense); font-weight: var(--cs-weight-medium); }
.wh-device-row-item .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); color: var(--cs-content-brand); }
@media (max-width: 480px) {
  .wh-device-row-item { font-size: 12px; gap: 6px; }
  .wh-device-row-item .ic { width: 15px; height: 15px; }
  .wh-device-row { gap: 8px 12px; }
}

/* ---------------------------------------------------------------------------
   4. FEATURE GRID
   ---------------------------------------------------------------------------
   Deliberately asymmetric, not four identical icon/title/sentence tiles: the
   first item (lighting, the one residents touch most often) leads at full
   width and a larger scale; the other three follow at a smaller, denser
   scale. No decorative marks that do not stand for anything (dropped after
   the owner's craft-standard review): the hierarchy itself is the visual
   interest, per the project Craft Standard ("ลำดับความสำคัญที่มองเห็น" over symmetry). */
.wh-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cs-space-5); }
.wh-feature-item {
  display: flex; flex-direction: column; gap: var(--cs-space-2); padding: var(--cs-space-5);
  border-radius: var(--cs-radius-xl); border: var(--cs-border-hairline) solid var(--cs-border-subtle);
  background: var(--cs-surface-elevated);
}
.wh-feature-item:first-child {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--cs-space-6);
  padding: var(--cs-space-8); background: color-mix(in srgb, var(--cs-action-primary) 8%, var(--cs-surface-elevated));
}
.wh-feature-item:first-child .wh-feature-icon { width: 64px; height: 64px; }
.wh-feature-item:first-child .wh-feature-icon .ic { width: var(--cs-icon-lg); height: var(--cs-icon-lg); }
.wh-feature-item:first-child h3 { font-size: var(--cs-size-heading); }
.wh-feature-item:first-child p { font-size: var(--cs-size-body); max-width: 34em; }
@media (max-width: 720px) {
  .wh-feature-grid { grid-template-columns: 1fr; }
  .wh-feature-item:first-child { grid-column: auto; flex-direction: column; padding: var(--cs-space-6); }
}
.wh-feature-icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--cs-radius-md); display: grid; place-items: center;
  background: var(--cs-surface-default); color: var(--cs-content-brand);
}
.wh-feature-icon .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
.wh-feature-item h3 { font-size: var(--cs-size-strong); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin-bottom: var(--cs-space-1); }
.wh-feature-item p { font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); }

.wh-icon-chips { display: flex; flex-wrap: wrap; gap: var(--cs-space-3); margin-top: var(--cs-space-6); }
.wh-icon-chip {
  width: 48px; height: 48px; border-radius: var(--cs-radius-md); display: grid; place-items: center;
  background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-brand);
}
.wh-icon-chip .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }

.wh-ev-row { display: flex; gap: var(--cs-space-4); align-items: flex-start; }
.wh-ev-row p { color: var(--cs-content-secondary); max-width: 36em; }

/* ---------------------------------------------------------------------------
   4b. BENTO (home chapter 2, owner 2026-09-29: "รวมสิ่งที่รวมได้ ให้อยู่ในหน้าจอเดียว
   พื้นหลังเป็น Glassmorphism"). Nine topics folded into five by what a resident
   actually thinks about: camera + lock + alerts are one worry (security), lights
   + scenes are one habit, energy + EV charging share the same meter. Security
   is the tall lead because it carries the most; the rest sit 2 x 2 beside it.
   The whole section is one screen by construction: min-height 100svh, nav
   clearance on top, every vertical size svh-anchored so a short screen shrinks
   the cards instead of pushing the last row past the fold.
   Glass: the same recipe as cresive.com .glass-card (5% surface tint,
   gradient hairline border, 3px blur + 160% saturate, top inner highlight),
   with a light-mode variant (frosted white) since WizeHome runs both themes.
   It reads as glass only because something sits behind it: the section's two
   lights and the grid they reveal (section 14), placed behind the tall card and
   the last card via [data-light].
   --------------------------------------------------------------------------- */
.wh-bento-section {
  min-height: 100svh; min-height: 100dvh; display: flex; align-items: center;
  padding: calc(var(--wh-nav-h) + clamp(0px, 2svh, 24px)) 0 clamp(12px, 5svh, 56px);
}
.wh-bento-section .wh-wrap { width: 100%; }
.wh-bento-section .wh-section-head { margin-bottom: clamp(16px, 4svh, 48px); }
.wh-bento-section .wh-h2 { font-size: clamp(22px, 1.2vw + 2.2svh, 34px); }
.wh-bento-section .wh-h2 .ln-accent { font-size: clamp(19px, 1vw + 1.9svh, 29px); }
.wh-bento-section .wh-lede { font-size: clamp(14px, 0.4vw + 1.4svh, 17px); }

.wh-bento {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(0, auto);
  gap: clamp(10px, 1.8svh, 20px);
}
.wh-bento-tall { grid-row: span 2; }
.wh-bento-card {
  --wh-glass-tint: color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.18); --wh-glass-edge-b: rgba(255, 255, 255, 0.04);
  --wh-glass-hi: rgba(255, 255, 255, 0.08); --wh-glass-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  position: relative; display: flex; flex-direction: column; gap: clamp(6px, 1svh, 10px);
  padding: clamp(14px, 2.6svh, 28px); border-radius: var(--cs-radius-xl);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--wh-glass-tint), var(--wh-glass-tint)),
    linear-gradient(135deg, var(--wh-glass-edge-a), var(--wh-glass-edge-b));
  background-origin: border-box; background-clip: padding-box, border-box;
  -webkit-backdrop-filter: blur(3px) saturate(160%); backdrop-filter: blur(3px) saturate(160%);
  box-shadow: var(--cs-elevation-2), inset 0 1px 0 var(--wh-glass-hi);
  text-shadow: var(--wh-glass-text-shadow);
}
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-bento-card {
    --wh-glass-tint: rgba(255, 255, 255, 0.55);
    --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
    --wh-glass-hi: rgba(255, 255, 255, 0.9); --wh-glass-text-shadow: none;
  }
}
html[data-brand="wizehome"][data-theme="light"] .wh-bento-card {
  --wh-glass-tint: rgba(255, 255, 255, 0.55);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
  --wh-glass-hi: rgba(255, 255, 255, 0.9); --wh-glass-text-shadow: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wh-bento-card { background-image: none; background-color: var(--cs-surface-elevated); border-color: var(--cs-border-subtle); }
}
.wh-bento-icon {
  flex: none; width: clamp(36px, 4.6svh, 48px); height: clamp(36px, 4.6svh, 48px); border-radius: var(--cs-radius-md);
  display: grid; place-items: center; margin-bottom: clamp(0px, 0.8svh, 8px);
  background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-brand);
}
.wh-bento-icon .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
.wh-bento-card h3 { font-size: clamp(15px, 0.3vw + 1.5svh, 19px); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin: 0; }
.wh-bento-tall h3 { font-size: clamp(18px, 0.5vw + 2svh, 24px); }
.wh-bento-card p { font-size: clamp(13px, 0.2vw + 1.3svh, 15px); line-height: 1.55; color: var(--cs-content-secondary); margin: 0; max-width: 30em; }
.wh-bento-tall p { font-size: clamp(14px, 0.3vw + 1.4svh, 17px); }
/* what the lead card folds in: named, so nothing from the original nine disappears */
.wh-bento-parts { list-style: none; margin: clamp(4px, 1.2svh, 12px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wh-bento-parts li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; color: var(--cs-content-primary);
  background: color-mix(in srgb, var(--cs-content-primary) 6%, transparent);
  border: var(--cs-border-hairline) solid color-mix(in srgb, var(--cs-content-primary) 10%, transparent);
}
.wh-bento-parts .ic-sm { width: 16px; height: 16px; color: var(--cs-content-brand); }
/* standard tag: only where a real published standard is behind the card (DEC-246); automation
   runs on the same protocols as everything else, so it carries none rather than an invented one */
.wh-bento-tag {
  align-self: flex-start; margin-top: auto; padding-top: clamp(4px, 1svh, 10px);
  font-family: var(--cs-font-ui); font-size: 11px; font-weight: var(--cs-weight-semibold);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--cs-content-tertiary);
}
@media (max-width: 900px) {
  .wh-bento { grid-template-columns: 1fr 1fr; }
  /* full-width lead: icon beside the text, so it costs one row of height, not two */
  .wh-bento-tall { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; }
  .wh-bento-tall > .wh-bento-icon { grid-row: 1 / span 4; }
  /* a tall portrait screen would otherwise scale svh padding past what the cards need */
  .wh-bento-card { padding: clamp(12px, 1.8svh, 20px); }
  .wh-bento-section { padding-bottom: clamp(12px, 2.4svh, 24px); }
  .wh-bento-section .wh-section-head { margin-bottom: clamp(12px, 2.4svh, 24px); }
}
/* phone: two columns still, cards carry title + one line; the tag moves beside the title row */
@media (max-width: 560px) {
  .wh-bento-section .wh-lede { display: none; }
  .wh-bento-card { padding: 12px; gap: 4px; border-radius: var(--cs-radius-lg); }
  .wh-bento-icon { width: 32px; height: 32px; margin-bottom: 2px; }
  .wh-bento-icon .ic { width: 18px; height: 18px; }
  .wh-bento-card p { font-size: 12.5px; line-height: 1.45; }
  .wh-bento-tall p { font-size: 13px; }
  .wh-bento-parts li { padding: 4px 10px; font-size: 12px; }
  .wh-bento-tag { font-size: 10px; padding-top: 4px; }
}
/* short phones (360x640 class): four small cards get about 140px each, room for icon, title and
   standard only. The title already says what the card does; the lead card keeps its sentence. */
@media (max-width: 560px) and (max-height: 740px) {
  .wh-bento-card:not(.wh-bento-tall) p { display: none; }
  .wh-bento-section { padding-top: calc(var(--wh-nav-h) + 2px); }
  /* the longer standard tags and two-line titles cost about 20px here: take it back from card
     padding, icon size and the tag's top gap, so the last row clears the chapter dots */
  body.page-wh-home #features .wh-bento { gap: 8px; }
  body.page-wh-home #features .wh-bento-card { padding: 10px; gap: 2px; }
  body.page-wh-home #features .wh-bento-icon { width: 28px; height: 28px; margin-bottom: 0; }
  body.page-wh-home #features .wh-bento-icon .ic { width: 16px; height: 16px; }
  body.page-wh-home #features .wh-bento-card h3 { font-size: 14px; line-height: 1.25; }
  body.page-wh-home #features .wh-bento-tag { padding-top: 2px; }
}

/* ---------------------------------------------------------------------------
   5. CARDS (generic soft card, used for statement / relationship blocks)
   --------------------------------------------------------------------------- */
.wh-card {
  background: var(--cs-surface-elevated); border: var(--cs-border-hairline) solid var(--cs-border-subtle);
  border-radius: var(--cs-radius-lg); padding: var(--cs-space-6);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--cs-content-primary) 6%, transparent);
}
/* ---------------------------------------------------------------------------
   6. FAQ
   --------------------------------------------------------------------------- */
.wh-faq-list { display: flex; flex-direction: column; gap: var(--cs-space-3); max-width: 720px; }
.wh-faq-item { border-radius: var(--cs-radius-lg); overflow: hidden; }
.wh-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--cs-space-3);
  padding: var(--cs-space-4) var(--cs-space-5); text-align: left; font-size: var(--cs-size-body-lg); font-weight: var(--cs-weight-medium); color: var(--cs-content-primary);
  min-height: 44px;
}
.wh-faq-q .ic { color: var(--cs-content-tertiary); transition: transform 160ms ease; width: var(--cs-icon-md); height: var(--cs-icon-md); }
/* ปุ่ม (ไม่ใช่ a) ไม่ได้รับ focus ring กลางของ a:focus-visible จาก site.css: ใส่ให้ตรงนี้ (ช่องโหว่เดิม
   พบระหว่างตรวจความครบถ้วนของหน้าแรก 2026-09-30 มีผลกับทุกหน้าที่ใช้ .wh-faq-list ไม่ใช่เฉพาะหน้าแรก) */
.wh-faq-q:focus-visible { outline: none; box-shadow: var(--cs-focus-ring); border-radius: var(--cs-radius-sm); }
.wh-faq-item[data-open="true"] .wh-faq-q .ic { transform: rotate(180deg); }
/* ไม่มี JS คำตอบเปิดทุกข้อ (พับเฉพาะเมื่อ html.js) */
.wh-faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 220ms ease; }
html.js .wh-faq-a { grid-template-rows: 0fr; }
.wh-faq-item[data-open="true"] .wh-faq-a { grid-template-rows: 1fr; }
.wh-faq-a > div { overflow: hidden; }
.wh-faq-a p { margin: 0 var(--cs-space-5) var(--cs-space-5); font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); }

/* ---------------------------------------------------------------------------
   7. FORMS (contact): own field styling, form-controls.css only supplies the
      enhanced <select>, token-driven already so it drops in unchanged
   --------------------------------------------------------------------------- */
.wh-form-card { max-width: 640px; }
.wh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-space-4); margin-bottom: var(--cs-space-4); }
@media (max-width: 640px) { .wh-form-grid { grid-template-columns: 1fr; } }
.wh-field { display: flex; flex-direction: column; gap: var(--cs-space-1); }
.wh-field-wide { grid-column: 1 / -1; }
.wh-field label { font-size: var(--cs-size-body-dense); font-weight: var(--cs-weight-medium); color: var(--cs-content-primary); }
.wh-required { color: var(--cs-status-error-content); }
.wh-input {
  min-height: 44px; padding: 0 var(--cs-space-4); border-radius: var(--cs-radius-md);
  border: var(--cs-border-hairline) solid var(--cs-border-default); background: var(--cs-surface-default); color: var(--cs-content-primary);
  font-family: var(--cs-font-thai); font-size: var(--cs-size-thai);
}
html[lang="en"] .wh-input { font-family: var(--cs-font-ui); }
textarea.wh-input { padding: var(--cs-space-3) var(--cs-space-4); min-height: 120px; resize: vertical; }
.wh-input:focus-visible { outline: none; border-color: var(--cs-border-focus); box-shadow: var(--cs-focus-ring); }
.wh-input[aria-invalid="true"] { border-color: var(--cs-status-error-border); background: var(--cs-status-error-surface); }
.wh-error { display: flex; align-items: center; gap: var(--cs-space-1); margin: var(--cs-space-1) 0 0; font-size: var(--cs-size-body-dense); color: var(--cs-status-error-content); }
.wh-error .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }
.wh-notice { font-size: var(--cs-size-body-dense); color: var(--cs-content-tertiary); margin: var(--cs-space-2) 0 var(--cs-space-4); }
.wh-notice a { color: var(--cs-content-brand); }
.wh-form-status { font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); margin: 0; }
.wh-submit { position: relative; }
.wh-submit .wh-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--cs-content-on-action) 40%, transparent); border-top-color: var(--cs-content-on-action); animation: wh-spin 700ms linear infinite; }
@keyframes wh-spin { to { transform: rotate(360deg); } }
.wh-submit .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
.wh-channel { display: inline-flex; align-items: center; gap: var(--cs-space-3); text-decoration: none; margin-top: var(--cs-space-6); padding: var(--cs-space-3) var(--cs-space-4); border-radius: var(--cs-radius-lg); background: var(--cs-surface-elevated); border: var(--cs-border-hairline) solid var(--cs-border-subtle); }
.wh-channel-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-brand); }
.wh-channel-icon .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
.wh-channel-label { display: block; font-size: var(--cs-size-eyebrow); color: var(--cs-content-tertiary); }
.wh-channel-value { display: block; font-weight: var(--cs-weight-medium); color: var(--cs-content-primary); }

/* ---------------------------------------------------------------------------
   8. MARKETPLACE (DEC-244)
   --------------------------------------------------------------------------- */
.wh-market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cs-space-5); }
@media (max-width: 960px) { .wh-market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wh-market-grid { grid-template-columns: 1fr; } }
.wh-market-card { display: flex; flex-direction: column; gap: var(--cs-space-3); }
.wh-market-card h3 { font-size: var(--cs-size-strong); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
.wh-market-card p { font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); }
.wh-market-meta { display: flex; flex-direction: column; gap: var(--cs-space-1); margin-top: auto; padding-top: var(--cs-space-3); border-top: var(--cs-border-hairline) solid var(--cs-border-subtle); }
.wh-market-price { font-family: var(--cs-font-ui); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
.wh-market-si { font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); }
.wh-market-sample { font-size: 11px; color: var(--cs-content-tertiary); }
.wh-market-cta { margin-top: var(--cs-space-3); width: 100%; }
.wh-market-note { max-width: 46em; color: var(--cs-content-secondary); }

/* ---------------------------------------------------------------------------
   9. LEGAL DOCS
   --------------------------------------------------------------------------- */
.wh-crumb { display: flex; align-items: center; gap: var(--cs-space-2); font-size: var(--cs-size-body-dense); color: var(--cs-content-tertiary); margin-bottom: var(--cs-space-4); }
.wh-crumb a { text-decoration: none; color: var(--cs-content-secondary); }
.wh-crumb .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }
/* ป้าย version หน้ากฎหมาย: icon กับข้อความแถวเดียว ไม่มีเส้นขอบและ padding (เจ้าของงาน 28 ต.ค. 2569) ใช้เฉพาะหน้ากฎหมายของ WizeHome */
.wh-badge {
  display: inline-flex; align-items: center; gap: var(--cs-space-1); padding: 0; border: 0;
  font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); margin-bottom: var(--cs-space-4);
}
.wh-badge .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }
.wh-legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--cs-space-10); align-items: start; }
@media (max-width: 900px) { .wh-legal-layout { grid-template-columns: 1fr; } }
.wh-toc { position: sticky; top: 96px; background: var(--cs-surface-elevated); border: var(--cs-border-hairline) solid var(--cs-border-subtle); border-radius: var(--cs-radius-lg); padding: var(--cs-space-4); }
@media (max-width: 900px) { .wh-toc { position: static; } }
.wh-toc-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; font-weight: var(--cs-weight-medium); min-height: 44px; }
.wh-toc-toggle .ic { transition: transform 160ms ease; }
@media (max-width: 900px) {
  .wh-toc-toggle { display: flex; }
  html:not(.js) .wh-toc-toggle { display: none; }
  .wh-toc-list { display: none; }
  .wh-toc.is-open .wh-toc-list { display: block; }
  .wh-toc.is-open .wh-toc-toggle .ic { transform: rotate(180deg); }
}
.wh-toc-list { display: flex; flex-direction: column; gap: var(--cs-space-1); margin-top: var(--cs-space-2); }
.wh-toc-list a { display: block; padding: var(--cs-space-2) var(--cs-space-2); border-radius: var(--cs-radius-sm); font-size: var(--cs-size-body-dense); text-decoration: none; color: var(--cs-content-secondary); }
.wh-toc-list a:hover { background: var(--cs-surface-glass-strong); color: var(--cs-content-primary); }
.legal-doc .legal-section { margin-bottom: var(--cs-space-10); scroll-margin-top: 96px; }
.legal-doc h2 { display: flex; align-items: baseline; gap: var(--cs-space-3); font-size: var(--cs-size-heading); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin-bottom: var(--cs-space-3); }
.legal-doc .legal-section-no { font-family: var(--cs-font-mono); font-size: var(--cs-size-body-dense); color: var(--cs-content-tertiary); }
.legal-doc h3 { font-size: var(--cs-size-strong); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin: var(--cs-space-5) 0 var(--cs-space-2); }
.legal-doc p { font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); margin: 0 0 var(--cs-space-3); }
.legal-doc a { color: var(--cs-content-brand); }
.legal-doc strong { color: var(--cs-content-primary); }
.wh-legal-index-list { display: flex; flex-direction: column; gap: var(--cs-space-3); max-width: 640px; }
.wh-legal-index-item {
  display: flex; align-items: center; gap: var(--cs-space-4); padding: var(--cs-space-5); text-decoration: none;
  background: var(--cs-surface-elevated); border: var(--cs-border-hairline) solid var(--cs-border-subtle); border-radius: var(--cs-radius-lg);
}
.wh-legal-index-item:hover { border-color: var(--cs-border-strong); }
.wh-legal-index-num { font-family: var(--cs-font-mono); color: var(--cs-content-tertiary); }
.wh-legal-index-label { display: block; font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
.wh-legal-index-sub { display: block; font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); margin-top: var(--cs-space-1); }
.wh-legal-index-arrow { margin-left: auto; flex: none; color: var(--cs-content-tertiary); }

/* ---------------------------------------------------------------------------
   10. 404
   --------------------------------------------------------------------------- */
.wh-404 { text-align: center; padding: clamp(64px, 12vw, 128px) 0; }
.wh-404-number { font-family: var(--cs-font-ui); font-weight: var(--cs-weight-semibold); font-size: clamp(56px, 10vw, 120px); color: var(--cs-content-brand); line-height: 1; margin-bottom: var(--cs-space-4); }
.wh-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cs-space-3); margin-top: var(--cs-space-8); }
.wh-404-card { display: flex; flex-direction: column; align-items: center; gap: var(--cs-space-2); width: 120px; padding: var(--cs-space-4); text-decoration: none; border-radius: var(--cs-radius-lg); border: var(--cs-border-hairline) solid var(--cs-border-subtle); color: var(--cs-content-secondary); }
.wh-404-card:hover { border-color: var(--cs-border-strong); color: var(--cs-content-primary); }
.wh-404-card .ic { color: var(--cs-content-brand); }

/* ---------------------------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------------------------
   Same structure as web/partials/footer-th.html (foot-panel > foot-grid >
   foot-brand + details.foot-col accordion columns, then foot-legal): same
   class names so web/site.js's syncFootCols() (generic details.foot-col
   query, forces columns open at >=720px, accordion below it) works
   unmodified on both sites. Not wrapped in .chapter/.ch-foot/data-spot: that
   wrapper is Cresive's full-viewport chapter system, and WizeHome stays a
   normal-scrolling page (per the coordinator's standing instruction), so the
   footer sits in a plain <footer class="wh-footer">. Three columns, not
   Cresive's four: WizeHome's day-one page set has no /platform, /about or
   /careers equivalent. */
/* footer ของหน้าอื่นใน WizeHome: แผงกระจก, กริด, คอลัมน์ลิงก์, accordion มือถือ และบรรทัดลิขสิทธิ์
   เป็นกฎชุดเดียวกับ Cresive ทุกประการ จึงอยู่ที่ base/footer.css ที่เดียว (site.css โหลดผ่าน @import, wizehome.css โหลดตามหลังไฟล์นี้)
   ที่เหลือด้านล่างคือส่วนที่เป็นของ WizeHome เอง: ตัวห่อ .wh-footer, ประโยคปิด และค่าที่ต่างจาก Cresive
   พื้นเลื่อนปกติ: โปร่งใสบนพื้น canvas เหมือน Cresive ไม่มีแถบสีทึบ */
.wh-footer { background: transparent; padding: clamp(40px, 6vw, 72px) var(--cs-space-6) var(--cs-space-6); }
.wh-footer > .wh-wrap { max-width: none; padding: 0; }
.wh-foot-close { text-align: center; max-width: none; margin: 0 auto clamp(32px, 6vw, 64px); }
.wh-foot-close .wh-h2 { margin: 0; }
.wh-foot-line { font-size: clamp(24px, 3vw + 1.6svh, 52px); line-height: 1.25; }
.wh-foot-line .ln, .wh-foot-line em { font-size: inherit; line-height: inherit; }
.wh-foot-line em { font-family: var(--cs-font-thai-display); font-style: italic; font-weight: var(--cs-weight-regular); color: var(--cs-content-brand); }
html[lang="en"] .wh-foot-line em { font-family: var(--cs-font-display); }
@media (max-width: 719.98px) {
  .wh-footer .foot-panel { padding: var(--cs-space-6); }
}

/* ---------------------------------------------------------------------------
   12. BLOG
   --------------------------------------------------------------------------- */
.wh-blog-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--cs-space-4);
  max-width: 480px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) var(--cs-space-6);
  border-radius: var(--cs-radius-xl); border: var(--cs-border-hairline) dashed var(--cs-border-default);
  background: var(--cs-surface-elevated);
}
.wh-blog-empty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cs-action-primary) 12%, var(--cs-surface-elevated)); color: var(--cs-content-brand); flex: none; }
.wh-blog-empty-icon .ic { width: 26px; height: 26px; }
.wh-blog-empty h2 { font-family: var(--cs-font-thai); font-size: var(--cs-size-heading); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin: 0; }
html[lang="en"] .wh-blog-empty h2 { font-family: var(--cs-font-ui); }
.wh-blog-empty p { font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); margin: 0; }

/* Grid ready to receive real articles once at least one exists (kept out of the DOM on the
   empty-state page itself, styled here so the routed page and any future article listing share
   one system): three-up card grid, responsive to two and one columns. */
.wh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cs-space-6); }
@media (max-width: 900px) { .wh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wh-blog-grid { grid-template-columns: 1fr; } }
.wh-blog-card { display: flex; flex-direction: column; border-radius: var(--cs-radius-xl); border: var(--cs-border-hairline) solid var(--cs-border-subtle); background: var(--cs-surface-elevated); overflow: hidden; text-decoration: none; }
.wh-blog-card:hover { border-color: var(--cs-border-strong); }
.wh-blog-card-cover { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--cs-action-primary) 10%, var(--cs-surface-sunken)); display: grid; place-items: center; color: var(--cs-content-brand); }
.wh-blog-card-cover .ic { width: 32px; height: 32px; }
.wh-blog-card-body { padding: var(--cs-space-5); display: flex; flex-direction: column; gap: var(--cs-space-2); }
.wh-blog-card-topic { font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-semibold); color: var(--cs-content-brand); text-transform: uppercase; letter-spacing: 0.04em; }
.wh-blog-card-title { font-size: var(--cs-size-body); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin: 0; }
.wh-blog-card-excerpt { font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); line-height: var(--cs-leading-relaxed); margin: 0; }

/* Newsletter signup (CR111, DEC-182): double opt-in, consent checkbox unchecked by default,
   confirmation-sent status state. Styled here so a future article-listing page can use it, but
   per the coordinator's instruction it is placed only in web-wh-blog-index-template.html and must
   not render on the routed /th/blog or /en/blog pages until 6+ articles exist and the owner says so. */
.wh-newsletter { display: flex; flex-direction: column; gap: var(--cs-space-4); max-width: 520px; margin: 0 auto; padding: clamp(32px, 5vw, 48px); border-radius: var(--cs-radius-xl); border: var(--cs-border-hairline) solid var(--cs-border-subtle); background: var(--cs-surface-elevated); text-align: center; }
.wh-newsletter h2 { font-family: var(--cs-font-thai); font-size: var(--cs-size-heading); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin: 0; }
html[lang="en"] .wh-newsletter h2 { font-family: var(--cs-font-ui); }
.wh-newsletter p { font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); margin: 0; }
.wh-newsletter-row { display: flex; gap: var(--cs-space-2); }
.wh-newsletter-row .wh-input { flex: 1 1 auto; }
@media (max-width: 480px) { .wh-newsletter-row { flex-direction: column; } }
.wh-newsletter-consent { display: flex; align-items: flex-start; gap: var(--cs-space-2); text-align: left; font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); }
.wh-newsletter-consent input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cs-action-primary); }
.wh-newsletter-status { display: none; align-items: center; justify-content: center; gap: var(--cs-space-2); font-size: var(--cs-size-body-dense); color: var(--cs-content-brand); font-weight: var(--cs-weight-medium); }
.wh-newsletter-status.is-visible { display: flex; }
.wh-newsletter-status .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }

/* ---------------------------------------------------------------------------
   12b. HOME: SALES CONTENT (STEPS, LIFE IN APP, WORKS WITH WHAT YOU OWN)
   ---------------------------------------------------------------------------
   Added for the home page's buyer-journey sections (owner 2026-09-29, "ใส่เนื้อหาขายความ
   WizeHome ในหน้าหลักให้ครบและจัดให้ดูเรียบง่ายครบครัน"): three small components, each used
   once on the home page so far, deliberately different shapes from the bento grid above
   (numbered row, split device mock, slim single card) so the page does not read as one
   repeated card grid end to end.
   --------------------------------------------------------------------------- */
.wh-steps { --step-row-gap: var(--cs-space-6); --step-col-gap: var(--cs-space-6); --step-line: color-mix(in srgb, var(--cs-action-primary) 55%, transparent); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--step-row-gap) var(--step-col-gap); }
.wh-step { position: relative; }
/* เส้นเชื่อมต่อเนื่องผ่านวงหมายเลข 1 > 2 > 3 (เจ้าของงาน 2026-09-30: เดิมเป็นเส้นประสั้นๆ ลอยอยู่ระหว่างคอลัมน์
   ไม่แตะวง): แต่ละขั้น (ยกเว้นขั้นสุดท้าย) วาดเส้นทึบจากขอบขวาของวงตัวเองถึงขอบซ้ายของวงขั้นถัดไปพอดี
   ที่กึ่งกลางแนวตั้งของวง (20px) วงมีขอบวง 1px สีเดียวกับเส้น จึงอ่านเป็นเส้นเดียวที่เข้า-ออกวงทั้งสามวง
   ไม่ใช้เส้นที่วิ่งลอด "หลัง" วงโปร่ง เพราะพื้นวงโปร่งแสง เส้นจะโผล่ทะลุพื้นวง */
.wh-step:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: 40px; height: 0; width: calc(100% + var(--step-col-gap) - 40px);
  border-top: 2px solid var(--step-line);
}
.wh-step-num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-primary);
  box-shadow: inset 0 0 0 1px var(--step-line);
  font-family: var(--cs-font-ui); font-weight: var(--cs-weight-semibold); font-size: var(--cs-size-body);
  margin-bottom: var(--cs-space-3);
}
.wh-step h3 { font-size: var(--cs-size-strong); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); margin-bottom: var(--cs-space-1); }
.wh-step p { font-size: var(--cs-size-body-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); margin: 0; }
/* จอแคบ: หมายเลขอยู่ซ้าย ข้อความอยู่ขวา เส้นเชื่อมเปลี่ยนเป็นแนวตั้งลงผ่านกึ่งกลางวงทั้งสาม */
@media (max-width: 720px) {
  .wh-steps { grid-template-columns: 1fr; }
  .wh-step { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--cs-space-3); align-items: start; }
  .wh-step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .wh-step:not(:last-child)::after {
    top: 40px; left: 19px; width: 0; height: calc(100% + var(--step-row-gap) - 40px);
    border-top: 0; border-left: 2px solid var(--step-line);
  }
}

/* .wh-life-grid/.wh-life-device (the two-column "daily life" layout that used to pair a text
   column with the hero's reused phone slot) were removed in this round: chapter 4 is now the
   centred phone+rings+feature showcase at หมวด 14, not a two-column section, so nothing on the
   home page instantiates that layout any more. */

/* Works-with-what-you-own: a slim reassurance band, not a fourth card grid; reuses
   .wh-device-row-item's icon+label styling (defined in section 3, also otherwise unused
   outside the hero) inside a plain .wh-card instead of the hero's photo-backed row. */
.wh-standards-row { display: flex; flex-wrap: wrap; gap: var(--cs-space-3) var(--cs-space-6); margin-top: var(--cs-space-4); }

/* Links inside the reused card recipes (privacy/marketplace cards carry one each): the ".wh a
   { color: inherit }" reset otherwise leaves them unreadable as links */
.wh-card a, .wh-bento-card a { color: var(--cs-content-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------------
   13. [hidden] must win over any earlier display override in this file
   (.wh-error, .wh-status-card, .wh-mobile-panel etc. all set their own
   `display`, which otherwise beats the UA stylesheet's [hidden] rule at
   equal specificity because this file loads after it)
   --------------------------------------------------------------------------- */
.wh [hidden] { display: none; }

/* ---------------------------------------------------------------------------
   14. AERIUM AMBIENT LIGHT + GRID (coordinator 2026-09-29, colour/behaviour revised same day)
   ---------------------------------------------------------------------------
   Same principle as cresive.com's LG1-LG8 (docs/design-system/cresive-web-scroll-light.md,
   web/site.css .grid-layer/.page-lights): a background grid that is only visible where a soft
   light falls, one light per section, revealed as the section scrolls into view and positioned
   near that section's own heading. Not the same implementation: site.js's light positioning and
   its buildGridMask() are keyed to Cresive's own hardcoded per-chapter selectors and .chapter
   elements, neither of which exist on WizeHome pages, so this is a WizeHome-specific equivalent
   in wizehome.js (same principles: IntersectionObserver reveal, prefers-reduced-motion, paused
   while the tab is hidden, and the grid's mask-image is a union of radial-gradients centred on
   each revealed light, computed in JS exactly like Cresive's buildGridMask(), not a static CSS
   mask). WizeHome keeps its normal scroll (no chapter/snap, no chapter dot rail): every
   .wh-section and .wh-hero gets its own light as it scrolls past.
   Colour, per the owner's follow-up (replaces the earlier teal/indigo version): the light itself
   is white in both themes, not brand-coloured. Dark mode: a soft warm white (~#FFF8EE) at Aerium
   intensity. Light mode: the page is already light, so a white glow would not read; instead a
   faint page-wide vignette (edges very slightly dimmed) plus a spot only a little brighter than
   the surrounding surface stand in for it (see body.wh::before below).
   Excluded from /auth/* (grid only, no per-section lights: DEC-242's page group stays plain) and
   the three legal pages (kept fully plain for reading). */
html[data-brand="wizehome"] .wh-grid-layer {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: -2; pointer-events: none;
  overflow: hidden; overflow: clip;
  background-image:
    linear-gradient(color-mix(in srgb, var(--cs-content-primary) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cs-content-primary) 8%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  /* no static mask here: wizehome.js sets mask-image inline, a union of radial-gradients at each
     revealed section's light position (same technique as site.js's buildGridMask()), so the grid
     is only ever visible inside a light's radius, never a plain top/bottom fade */
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mask-image: linear-gradient(transparent, transparent);
}
/* light mode: fainter than dark, but raised from 4% to 6% (owner 2026-09-29: the old value read
   as invisible, not just subtle; the grid still only shows where a light reveals it, so 6% stays
   a "just barely felt" texture rather than a loud line, it is simply now above the threshold
   where a light patch can be told apart from the plain canvas around it) */
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-grid-layer { background-image:
    linear-gradient(color-mix(in srgb, var(--cs-content-primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cs-content-primary) 6%, transparent) 1px, transparent 1px); }
}
html[data-brand="wizehome"][data-theme="light"] .wh-grid-layer { background-image:
  linear-gradient(color-mix(in srgb, var(--cs-content-primary) 6%, transparent) 1px, transparent 1px),
  linear-gradient(90deg, color-mix(in srgb, var(--cs-content-primary) 6%, transparent) 1px, transparent 1px); }

html[data-brand="wizehome"] .wh-page-lights {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: -2; pointer-events: none;
  overflow: hidden; overflow: clip;
}
html[data-brand="wizehome"] .wh-spot-group { position: absolute; inset: 0; }
html[data-brand="wizehome"] .wh-spot-glow {
  /* left/top set per anchor by wizehome.js */
  position: absolute; translate: -50% -50%;
  width: clamp(500px, 60vw, 1100px); height: clamp(360px, 42vw, 760px); border-radius: 50%;
  /* Owner 2026-09-29: "แสงสว่างขึ้น" (raise dark-mode intensity, Aerium-like: a clearly visible
     pool of light with the grid clearly visible inside it). Two stops instead of one: a brighter
     core near the anchor (38%) fading through a wider mid stop (16%) before reaching transparent,
     so the pool reads as a real light source rather than a flat tinted disc. Still well clear of
     body text: every anchor sits behind a heading or a glass card, never directly under a
     paragraph, and the increase is to a warm off-white against a dark canvas, the easiest
     direction for contrast (raises text/background separation, never lowers it). */
  background: radial-gradient(closest-side,
    color-mix(in srgb, #FFF8EE 38%, transparent) 0%,
    color-mix(in srgb, #FFF8EE 16%, transparent) 55%,
    transparent 100%);
  opacity: 0; transition: opacity 900ms var(--cs-ease-decelerate);
}
html[data-brand="wizehome"] .wh-spot-group.is-in .wh-spot-glow { opacity: 1; }
/* Light mode: the canvas is already light, so the glow cannot read as brightness the same way
   dark mode's does; owner 2026-09-29 called the previous 12% white "แทบไม่เห็น" (barely visible).
   Warmed to match the dark-mode colour (#FFF8EE, "warm soft brightening") and raised so the pool
   is genuinely perceptible as a warmer, slightly brighter patch, still soft next to the page-wide
   vignette below rather than a hard disc. */
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-spot-glow {
    background: radial-gradient(closest-side,
      color-mix(in srgb, #FFF8EE 26%, transparent) 0%,
      color-mix(in srgb, #FFF8EE 10%, transparent) 55%,
      transparent 100%);
  }
}
html[data-brand="wizehome"][data-theme="light"] .wh-spot-glow {
  background: radial-gradient(closest-side,
    color-mix(in srgb, #FFF8EE 26%, transparent) 0%,
    color-mix(in srgb, #FFF8EE 10%, transparent) 55%,
    transparent 100%);
}
@media (prefers-reduced-motion: reduce) { html[data-brand="wizehome"] .wh-spot-glow { transition: none; } }
html[data-brand="wizehome"][data-wh-tab-hidden] .wh-spot-glow { transition: none; }

/* Light-mode-only page-wide vignette: viewport-fixed (not document-positioned, since it reads as
   a property of the screen, not of any one section), edges a few percent darker than the centre.
   Dark mode never shows this: the light itself already reads clearly against a dark canvas. */
html[data-brand="wizehome"] body.wh::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, color-mix(in srgb, var(--cs-content-primary) 5%, transparent) 100%);
  opacity: 0;
}
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] body.wh::before { opacity: 1; }
}
html[data-brand="wizehome"][data-theme="light"] body.wh::before { opacity: 1; }

/* auth pages: grid only, no page-lights container is even added to the markup there */
html[data-brand="wizehome"] .page-wh-auth .wh-grid-layer { opacity: 0.7; }

/* ─── หมวด 11: ระบบบทของหน้าแรก (page-wh-home) ─────────────────────────────────
   คำสั่งเจ้าของงาน 2026-09-30: "ให้ WizeHome Scroll แบบเดียวกับ Cresive เลย" หน้าแรกของ WizeHome
   (web-wh-home-reference.html / -en.html เท่านั้น) เลิกใช้ .wh-section/.wh-grid-layer/.wh-page-lights
   ปกติ (ยังคงอยู่และยังใช้กับหน้าอื่นของ WizeHome ทุกหน้าเหมือนเดิม ไม่แตะ) เปลี่ยนไปโหลด site.css +
   chapters.css + site.js ของ Cresive ตรงๆ (.chapter/.chapter-body/.wrap/.grid-layer/.page-lights/
   .spot-group/.chapters-nav) engine เดียวกับ cresive.com ทุกจุด ส่วนนี้คือจุดต่อระหว่าง engine ของ Cresive
   กับคอมโพเนนต์เนื้อหาเดิมของ WizeHome (wh-hero, wh-bento, wh-steps, wh-life-grid, wh-standards-row,
   wh-faq-list, wh-bento-card ฯลฯ) ที่ยังคงไว้ทั้งหมดเพราะรองรับ light/dark ถูกต้องอยู่แล้ว
   ทำไมไม่ย้ายไปใช้ .glass-card/.tile/.fact ของ chapters.css แทน: recipe เหล่านั้น hardcode ขอบกระจกและ
   text-shadow สำหรับพื้นเข้มเท่านั้น (ดูคอมเมนต์ .glass-card ใน chapters.css) จะต้องเขียน override โหมดสว่างใหม่
   ทั้งหมดซ้ำกับที่ .wh-bento-card ทำไว้แล้ว ใช้ของเดิมที่ปรับ light/dark ถูกต้องแล้วดีกว่า */

/* บทที่ 1 (hero) ไม่มีแสง spotlight ของตัวเอง เพราะภาพคือแสงอยู่แล้ว (ข้อกำหนดข้อ 2): site.js ยังสร้าง
   #lights-ch-1 ให้เสมอ (ทุก .chapter ต้องมีกลุ่มแสงของตัวเอง) จึงซ่อนด้วย CSS แทนการลบออกจาก DOM */
body.page-wh-home #lights-ch-1 { display: none; }
/* chapters clear the nav themselves (.chapter padding-top: var(--nav-h)), so main must not add
   the normal-scroll nav clearance too: it pushed every chapter 96px down, left a bare band above
   the hero photo and put every snap point 96px off the chapter tops */
body.page-wh-home main { padding-top: 0; }

/* แสงดวงเดียวสีขาวอุ่นต่อบท ไม่ใช่คู่ทอง+เขียวแบบ Cresive (ข้อกำหนดข้อ 2 "Keep the white light colour"):
   ปิดเขียว (rim) ทั้งหมด แล้ว override พื้นของ .spot-pool เป็นไล่สีขาวอุ่นสองจุดหยุดแบบเดียวกับ .wh-spot-glow
   เดิมที่เจ้าของงานอนุมัติแล้ว (สี #FFF8EE) ความสว่าง: เจ้าของงานสั่ง 2026-09-30 "สว่างระดับเดียวกับ Aerium"
   ยกจากรอบก่อน (38%/16%) ขึ้นเป็น 58%/24% ที่จุดศูนย์กลางในโหมดมืด ให้ตารางเห็นชัดในวงแสงจริง แสงยังอยู่หลัง
   หัวเรื่อง/การ์ดกระจกเท่านั้น (ตำแหน่งคำนวณจาก header rect ใน site.js) ไม่เคยอยู่ใต้ย่อหน้าเนื้อความตรงๆ
   จึงไม่ต้องหรี่แสงลงเพื่อคอนทราสต์ (ดูการตรวจ contrast ท้ายรอบที่แปดในเอกสาร copy) */
/* --spot-o: site.css multiplies every pool by 0.14 (tuned for Cresive's solid gold). This page's pool
   carries its own alpha in the gradient, so the multiplier goes to 1 or the 58% centre ends up ~8% */
body.page-wh-home { --rim-o: 0; --spot-o: 1; }
/* Aerium-level light and grey body copy cannot share a spot: measured on the dark canvas, a 30%
   warm-white centre composites to about L 0.084, where content-secondary text reaches only ~2.9:1.
   Aerium keeps its copy near-white inside the light, so this page does the same: ledes and card copy
   use content-primary at 88% (about 5.1:1 at the brightest point), still visibly quieter than headings. */
body.page-wh-home .chapter:not(.wh-ch-hero):not(.wh-ch-foot) :is(.wh-lede, .wh-bento-card p, .wh-card p, p) {
  color: color-mix(in srgb, var(--cs-content-primary) 88%, var(--cs-surface-canvas));
}
body.page-wh-home .spot-pool,
body.page-wh-home .wh-hero-spill {
  background: radial-gradient(closest-side,
    color-mix(in srgb, #FFF8EE 30%, transparent) 0%,
    color-mix(in srgb, #FFF8EE 10%, transparent) 55%,
    transparent 100%);
}
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-home .spot-pool,
  html[data-theme="auto"] body.page-wh-home .wh-hero-spill {
    background: radial-gradient(closest-side,
      color-mix(in srgb, #EFD9B4 60%, transparent) 0%,
      color-mix(in srgb, #EFD9B4 22%, transparent) 55%,
      transparent 100%);
    mix-blend-mode: multiply;
  }
}
html[data-theme="light"] body.page-wh-home .spot-pool,
html[data-theme="light"] body.page-wh-home .wh-hero-spill {
  background: radial-gradient(closest-side,
    color-mix(in srgb, #EFD9B4 60%, transparent) 0%,
    color-mix(in srgb, #EFD9B4 22%, transparent) 55%,
    transparent 100%);
  /* a light canvas cannot get brighter under "screen": the pool reads instead as a warm cream
     patch (multiply), the daylight-through-a-window look, with the grid showing inside it */
  mix-blend-mode: multiply;
}
/* รอบที่สิบ (เจ้าของงาน 2026-09-30 "Footer และ Hero แสงยังไม่ครบ แหว่งอยู่"): สามจุดที่แสงถูกบัง
   1) footer: .wh-footer มีพื้น surface-sunken ทึบ (ของหน้าเลื่อนปกติ) วางทับวงแสงของบทที่ 8 ทั้งกล่อง
      แสงจึงถูกตัดเป็นสี่เหลี่ยมมุมตรงที่ขอบกล่อง ในบทนี้ให้โปร่งใส พื้นจริงคือ canvas + วงแสงข้างหลัง
   2) hero: ภาพถ่ายทึบ (.wh-hero-media) ในบทที่ 1 อยู่ใน main.site (z-index 1) จึงทับ .page-lights (z -2) ทั้งชั้น
      วงแสงของบทที่ 2 ที่ยื่นขึ้นมาใต้ขอบล่าง hero (181px ที่ 1440x900, 31px ที่ 375x812, 102px ที่ 360x640)
      ถูกตัดเป็นเส้นตรงแนวนอนที่รอยต่อบท แก้ด้วย .wh-hero-spill (wizehome.js สร้าง) วงเดียวกับวงบทที่ 2
      ตำแหน่ง/ขนาด/ไล่สีเท่ากัน วางเหนือภาพและ wash ใต้เนื้อหา ส่วนวงจริงเหนือขอบล่าง hero ถูกซ่อนด้วย mask
      (ไม่งั้นแสงนับซ้อนตรงที่ภาพจางโปร่ง) สองวงต่อกันที่ขอบล่างของ hero ด้วยความเข้มเท่ากัน
   3) ตาราง: site.js สร้าง mask ตารางของทุกบทเป็นคู่ (วงทอง + วงเขียว) หน้านี้ปิดวงเขียว (--rim-o: 0) แต่ mask
      ยังเปิดตารางที่ตำแหน่งวงเขียวทุกบท จึงมีตารางสว่างโดยไม่มีแสงอยู่ (ทแยงล่างขวา/ซ้ายของทุกหัวเรื่อง) ตั้ง
      --rim-w/--rim-h เป็น 0 ที่ html ให้ mask ของวงเขียวหายไป (site.js อ่านค่าจาก :root) สคริปต์ใน head ของ
      หน้าแรกทั้งสองภาษาตั้งค่านี้ก่อน site.js รัน (ไม่ใช้ :has เพื่อรองรับ Safari รุ่นเก่า) */
.wh-pool-moved .spot-pool { visibility: hidden; }
.wh-hero-spill {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; border-radius: 50%;
  width: var(--pool-w); height: var(--pool-h);
  margin: calc(var(--pool-h) / -2) 0 0 calc(var(--pool-w) / -2);
  mix-blend-mode: screen; opacity: var(--spot-o);
}
/* ตารางเส้นบางในรัศมีเดียวกับวง (เส้นและ mask เหมือน .grid-layer + buildGridMask ของ Cresive) */
.wh-hero-spill::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image:
    linear-gradient(to right, var(--cs-border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cs-border-subtle) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: var(--gx, 0) var(--gy, 0);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 0%, transparent 100%);
}
html[data-theme="light"] .wh-hero-spill { mix-blend-mode: multiply; }
@media (prefers-color-scheme: light) { html[data-theme="auto"] .wh-hero-spill { mix-blend-mode: multiply; } }
/* เข้าจังหวะเดียวกับกลุ่มแสงของบทที่ 2 (site.css: .spot-group:not(.is-in) เลื่อน --entry-t และ pool opacity 0,
   observe ใช้ transition, scroll ใช้ group-in/pool-in ผูก view-timeline --ch2) */
html.js:not([data-motion="still"]) .wh-hero-spill:not(.is-in) { opacity: 0; translate: var(--entry-t, 0 0); }
html[data-motion="observe"] .wh-hero-spill { transition: opacity 1200ms var(--cs-ease-decelerate), translate 1200ms var(--cs-ease-decelerate); }
html[data-motion="scroll"] .wh-hero-spill {
  animation-name: pool-in, group-in; animation-duration: 1ms, 1ms; animation-timing-function: linear, linear;
  animation-fill-mode: both, both; animation-range: entry 0% entry 60%, entry 0% entry 60%; animation-timeline: --ch2, --ch2;
}

/* Light Mode (เจ้าของงาน 2026-09-30 "เส้นตาราง Light Mode หายไป เอาแสงออกได้ ไม่จำเป็นต้องมี", ตั้งค่าจากอุปกรณ์เท่านั้น
   DEC-245): ไม่มีวงแสงเลย (วงครีม multiply ทั้งหมดและวงล้นใน hero) และตารางพื้นหลังเห็นทั่วทั้งหน้าด้วยตัวเอง
   ไม่ถูก mask ให้อยู่ในวงแสงอีก (site.js เขียน mask-image เป็น inline ทุก measure จึงทับด้วย !important) เส้นตารางจางที่
   ขอบซ้ายขวาของหน้า ต่อเนื่องข้ามรอยต่อบท (ชั้น mask แนวตั้งรายบทเคยทำให้เกิดแถบไม่มีตารางที่รอยต่อ จึงเอาออก)
   โหมด dark ไม่เปลี่ยน (แสงแบบ Aerium และตารางเฉพาะในวง) */
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-home .spot-pool,
  html[data-theme="auto"] body.page-wh-home .spot-rim,
  html[data-theme="auto"] body.page-wh-home .wh-hero-spill { display: none; }
  html[data-theme="auto"] body.page-wh-home .grid-layer {
    opacity: 1;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--cs-content-primary) 11%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--cs-content-primary) 11%, transparent) 1px, transparent 1px);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent) !important;
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent) !important;
  }
}
html[data-theme="light"] body.page-wh-home .spot-pool,
html[data-theme="light"] body.page-wh-home .spot-rim,
html[data-theme="light"] body.page-wh-home .wh-hero-spill { display: none; }
html[data-theme="light"] body.page-wh-home .grid-layer {
  opacity: 1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--cs-content-primary) 11%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--cs-content-primary) 11%, transparent) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent) !important;
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent) !important;
}
/* รอยต่อ hero -> #features (light): แผ่นเคลือบ (wash) ของ hero ทึบเท่ากันถึงขอบล่างสุด จึงบังตารางทั้งแถบจนถึงเส้นตรงที่ขอบบท
   ตารางของบทถัดไปโผล่ขึ้นทันทีเป็นรอยต่อ (วัดพิกเซลแถวข้ามขอบ: ที่ x=62 เส้นตารางเริ่มที่แถวขอบพอดี) ให้ wash จางหายในช่วง
   30% ล่างของ hero เพื่อให้ตารางค่อยๆ เผยขึ้นมา ข้อความ hero อยู่เหนือ 70% เสมอ (ท้ายปุ่มที่ 69% ของความสูง) */
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .wh-hero::before {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
  }
}
html[data-theme="light"] .wh-hero::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
}
/* ตารางพื้นหลัง: ใช้ .grid-layer ของ Cresive (มาส์กเป็นวงแสงจริงจาก buildGridMask() ใน site.js) สีเส้นของ
   Cresive (--cs-border-subtle) อ่อนพอสำหรับทั้งสองโหมดอยู่แล้ว ไม่ต้อง override */

/* จัดกึ่งกลางแนวตั้งทุกบทเนื้อหา (เหมือน .ch-split/.ch-showcase ของ chapters.css) ยกเว้นบท hero (มีเลย์เอาต์
   เต็มจอของตัวเอง) และ footer (เนื้อหายาว ต้องเริ่มจากบนแบบ .ch-foot ของ Cresive) */
body.page-wh-home .chapter:not(.wh-ch-hero):not(.wh-ch-foot) {
  display: flex; flex-direction: column; justify-content: safe center;
}
body.page-wh-home .chapter:not(.wh-ch-hero):not(.wh-ch-foot) > .chapter-body { width: 100%; }

/* hero: .chapter ของ site.css ใส่ padding-top:var(--nav-h) ตาม breakpoint ของ Cresive เอง (เปลี่ยนที่
   719.98px) ส่วน .wh-hero เดิมยกเลิกด้วย margin-top ติดลบเท่ากับ --wh-nav-h ซึ่งเปลี่ยน breakpoint ที่
   1023.98px แทน (คนละจุดกับ --nav-h โดยตั้งใจ เพราะ nav ของ WizeHome เองเปลี่ยนเลย์เอาต์ที่ 1024px)
   ตัวเลขทั้งสองเท่ากันเฉพาะ <720px และ ≥1024px แต่ต่างกัน 20px ในช่วง 720-1023px (96 vs 76) ทำให้ hero
   ล้นจอ 20px ที่ขนาดอย่าง 768x1024 (พบจากการวัดจริง 2026-09-30) แก้โดยผูกทั้งสองค่าของ hero ในหน้านี้
   เข้ากับ --nav-h ของ Cresive ตรงๆ (ตัวเดียวกับที่ .chapter ใช้) แทน --wh-nav-h เพื่อให้หักล้างกันพอดี
   ทุกความกว้างจอเสมอ ไม่ผูกกับ breakpoint ของ WizeHome เองอีกต่อไป (เฉพาะบทนี้เท่านั้น หน้าอื่นของ WizeHome
   ยังใช้ --wh-nav-h ตามเดิม) */
body.page-wh-home .wh-ch-hero .wh-hero { margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); }
@media (max-width: 719.98px) {
  body.page-wh-home .wh-ch-hero .wh-hero { min-height: calc(100svh - var(--mobile-dots-h)); }
}

/* บันโต (บทที่ 2): คงดีไซน์ .wh-bento-section เดิมทั้งหมด (ข้อกำหนดข้อ 3 "already one-screen, keep its
   design") แต่ยกเลิกการกินพื้นที่ระดับบท (min-height/padding/flex) ของคลาสนั้น เพราะตอนนี้ .chapter ที่เป็น
   section แม่ทำหน้าที่นั้นแทนแล้ว (ถ้าไม่ยกเลิก จะได้ padding-top ซ้อนสองชั้นและ min-height ซ้อนกัน) selector
   ของ .wh-bento-section ที่กำหนดขนาดตัวอักษร/ระยะห่างภายในยังทำงานตามปกติเพราะเป็น descendant selector
   คนละตัวกับกฎนี้ */
body.page-wh-home .chapter .wh-bento-section { min-height: 0; padding: 0; display: block; }
/* จอแคบสูง (375x812 วัดจริงพบล้น 29px 2026-09-30): breakpoint เดิมที่ซ่อนย่อหน้าของการ์ดที่ไม่ใช่การ์ดใหญ่
   (.wh-bento-card:not(.wh-bento-tall) p) ต้องการทั้งจอแคบและจอเตี้ยพร้อมกัน (max-width:560 และ
   max-height:740) เพราะออกแบบไว้ตอนหน้ายังเลื่อนอิสระ ไม่ได้ถูกบังคับให้พอดีหนึ่งจอเป๊ะแบบตอนนี้ บทนี้
   (#features) ต้องพอดีจอเสมอไม่ว่าความสูงจะเป็นเท่าไหร่ จึงตัดเงื่อนไขความสูงออกเฉพาะบทนี้ */
@media (max-width: 560px) {
  body.page-wh-home #features .wh-bento-card:not(.wh-bento-tall) p { display: none; }
}

/* footer (บทที่ 8): ใช้ .ch-foot ของ Cresive (padding บน/ล่างของบท + chapter-body เป็น flex column)
   .wh-footer เดิมมี border-top และ padding ของตัวเองสำหรับใช้เป็นส่วนท้ายหน้าเลื่อนปกติ ต้องยกเลิกเมื่อกลาย
   เป็นบทของตัวเองแล้ว (border-top ซ้ำกับเส้นขอบบทอื่นไม่มีความหมายเมื่อเป็น full-screen chapter) */
body.page-wh-home .wh-ch-foot .foot-brand p { margin: var(--cs-space-5) 0 0; }
/* footer หน้าแรกใช้โครงและ class ของ Cresive ตรงๆ (.ch-foot .close .display, .foot-panel, .foot-grid, .foot-col ใน site.css) ไม่มีกฎ WizeHome ทับ */
body.page-wh-home .wh-ch-foot .display em { color: color-mix(in srgb, var(--cs-content-brand) 50%, #fff); }
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-home .wh-ch-foot .display em { color: var(--cs-content-brand); }
}
html[data-theme="light"] body.page-wh-home .wh-ch-foot .display em { color: var(--cs-content-brand); }

/* ─── หมวด 14: บทที่ 4 แอปโชว์กลางจอ + วงแก้วเบื้องหลัง + หกฟีเจอร์เกาะอยู่บนวง ─────────────────────
   แทนที่ทั้งเลย์เอาต์เดิม (คอลัมน์ข้อความ+ชิปมาตรฐาน คู่กับโทรศัพท์เฉียง+เส้นชี้): เจ้าของงานเปลี่ยนทิศทางกลาง
   สองรอบติดกัน 2026-09-30 (1) หัวเรื่องกึ่งกลางด้านบน โทรศัพท์ตัวใหญ่ตั้งตรงกึ่งกลาง มีวงซ้อนแผ่ออกจากตัวเครื่อง
   เป็นพื้นหลัง (2) วงเปลี่ยนจากเส้นบางเป็นแผ่นกระจก (glassmorphism, recipe เดียวกับ .wh-bento-card) และไอคอน
   ทั้งหกย้ายจากคอลัมน์ซ้าย/ขวาไปเกาะอยู่บนวงที่สองและสามนับจากนอกสุดโดยตรง กระจายรอบตัวเครื่อง (สามซ้ายสามขวา
   ที่มุม 90/52/-52 องศาจากแนวนอน กันไม่ให้ทับตัวเครื่องซึ่งอยู่แถบกลางแคบๆ) ป้ายชื่อเป็นตัวหนังสือจริงอ่านได้เสมอ
   (ไม่ aria-hidden) จึงไม่ต้องมีลิสต์ซ่อนสำรอง มีแค่ .wh-app-rings ที่เป็นภาพประดับล้วนที่ aria-hidden
   ข้อความชิปมาตรฐาน 5 ใบเดิม (Zigbee/Matter, Modbus, OCPP, RTSP/ONVIF, IR) ไม่ได้หายไปจากหน้านี้: ยังอยู่ครบ
   ที่แท็กมุมล่างของการ์ดบันโตในบทที่ 2 อยู่แล้ว จึงตัดแถวชิปที่นี่ได้โดยไม่เสียข้อมูล ตัวเครื่องยังว่างเปล่า
   (data-slot="app-screen") รอใส่ดีไซน์แอปจริง */
/* รอบที่สิบ (เจ้าของงาน 2026-09-30): วงใหญ่ขึ้นเกือบเต็มความสูงบท (เส้นผ่านศูนย์กลางวงนอก = 100svh - 285px
   ตัวเครื่องสูง 0.93 เท่าของเส้นผ่านศูนย์กลางวงนอก = 57-64% ของความสูงบท, มีสามวงเท่านั้น: วงนอกที่เป็นแถบไอคอน + สองวงใน) และทั้งหกฟีเจอร์ (ไอคอน+ป้าย) อยู่ในแถบระหว่างวงนอกสุด (100%)
   กับวงที่สอง (72%) ไม่ลอยออกนอกวงอีก ตำแหน่งเป็น % ของเส้นผ่านศูนย์กลางวงนอกทั้งหมด (คำนวณจากมุมบนวงรัศมี
   0.43 จึงตรงแถบเสมอทุกขนาดจอ) ไม่ใช้ trig ใน CSS เพื่อรองรับ Safari รุ่นเก่า */
.wh-app-hero { display: flex; flex-direction: column; align-items: center; gap: clamp(var(--cs-space-3), 2.4svh, var(--cs-space-6)); }
.wh-app-hero .wh-section-head { margin-bottom: 0; }

.wh-app-stage {
  --app-d: clamp(300px, calc(100svh - 285px), 860px);
  position: relative; width: min(var(--app-d), 94vw); aspect-ratio: 1 / 1; margin: 0 auto;
  --stage-cy: 50%;
}
/* วงและป้ายฟีเจอร์ใช้กรอบสี่เหลี่ยมจัตุรัสเดียวกันเป๊ะ (เส้นผ่านศูนย์กลางวงนอก) */
.wh-app-rings, .wh-app-features { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 1; }
.wh-app-rings { z-index: 0; pointer-events: none; }
.wh-app-features { z-index: 2; list-style: none; margin: 0; padding: 0; }
.wh-phone-crop.wh-phone-app-lg {
  position: absolute; z-index: 1; left: 50%; top: var(--stage-cy); transform: translate(-50%, -50%);
  width: 43%; max-width: none;
}

/* วงแก้ว: 5 ชั้นซ้อนศูนย์กลางเดียวกัน ใหญ่สุด (นอกสุด) อยู่ล่างสุด/จางสุด ไล่มาเป็นวงในที่เข้มขึ้น
   วงนอกสองชั้นเป็นไล่สีทึบมี tint (ไม่มี backdrop-filter) วงในสามชั้นเป็นแผ่นกระจก (recipe .wh-bento-card) */
.wh-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.wh-ring-1 { width: 100%; height: 100%; background: radial-gradient(circle, color-mix(in srgb, var(--cs-content-primary) 7%, transparent) 60%, color-mix(in srgb, var(--cs-content-primary) 3%, transparent) 100%); }
.wh-ring-2 { width: 72%; height: 72%; background: radial-gradient(circle, color-mix(in srgb, var(--cs-content-primary) 10%, transparent) 55%, color-mix(in srgb, var(--cs-content-primary) 5%, transparent) 100%); }
.wh-ring-3 {
  --wh-glass-tint: color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.18); --wh-glass-edge-b: rgba(255, 255, 255, 0.04);
  --wh-glass-hi: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--wh-glass-tint), var(--wh-glass-tint)),
    linear-gradient(135deg, var(--wh-glass-edge-a), var(--wh-glass-edge-b));
  background-origin: border-box; background-clip: padding-box, border-box;
  -webkit-backdrop-filter: blur(3px) saturate(160%); backdrop-filter: blur(3px) saturate(160%);
  box-shadow: var(--cs-shadow-glass), inset 0 1px 0 var(--wh-glass-hi);
}
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] .wh-ring-3 {
    --wh-glass-tint: rgba(255, 255, 255, 0.55);
    --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
    --wh-glass-hi: rgba(255, 255, 255, 0.9);
  }
}
html[data-brand="wizehome"][data-theme="light"] .wh-ring-3 {
  --wh-glass-tint: rgba(255, 255, 255, 0.55);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
  --wh-glass-hi: rgba(255, 255, 255, 0.9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wh-ring-3 { background-image: none; background-color: var(--cs-surface-elevated); border-color: var(--cs-border-subtle); }
}
.wh-ring-3 { width: 46%; height: 46%; opacity: .95; }

/* ฟีเจอร์: จุดศูนย์กลางไอคอนอยู่บนแถบ ป้ายอยู่ใต้ไอคอน (คู่บนและกลาง) หรือเหนือไอคอน (คู่ล่าง) เพื่อไม่ให้ป้าย
   ล้นออกนอกวงนอกสุด ความกว้างป้ายเป็น % ของเส้นผ่านศูนย์กลางวง */
.wh-feature {
  --fi: clamp(40px, 5.2svh, 58px);
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: var(--cs-space-2); text-align: center;
  width: max-content; max-width: 18%; transform: translate(-50%, calc(var(--fi) / -2));
}
.wh-feature-lower-left, .wh-feature-lower-right { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + var(--fi) / 2)); }
@media (min-width: 900.02px) {
  /* ป้ายบรรทัดเดียว (เจ้าของงานปฏิเสธป้ายที่ตัดคำกลางประโยคแล้ว) อยู่ข้างไอคอน ยื่นออกนอกวงได้ ไม่ตัดบรรทัด:
     ฝั่งขวาป้ายอยู่ขวาไอคอน ฝั่งซ้ายอยู่ซ้าย จึงไม่ชนตัวเครื่องและไม่ชนป้ายอื่น */
  .wh-feature { flex-direction: row; gap: var(--cs-space-3); max-width: none; transform: translate(calc(var(--fi) / -2), -50%); }
  .wh-feature-upper-left, .wh-feature-mid-left, .wh-feature-lower-left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--fi) / 2), -50%); }
  .wh-app-features .wh-feature-label { white-space: nowrap; overflow-wrap: normal; font-size: clamp(16px, 0.5vw + 1.4svh, 20px); }
  .wh-feature-upper-left { left: 14.78%; top: 25.34%; }
  .wh-feature-mid-left { left: 9%; top: 50%; }
  .wh-feature-lower-left { left: 14.78%; top: 74.66%; }
  .wh-feature-upper-right { left: 85.22%; top: 25.34%; }
  .wh-feature-mid-right { left: 91%; top: 50%; }
  .wh-feature-lower-right { left: 85.22%; top: 74.66%; }
}
.wh-feature-icon {
  flex: none; width: var(--fi); height: var(--fi); border-radius: var(--cs-radius-lg);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cs-action-primary) 14%, transparent); color: var(--cs-content-brand);
}
.wh-feature-icon .ic { width: calc(var(--fi) * 0.46); height: calc(var(--fi) * 0.46); }
.wh-feature-label {
  font-family: var(--cs-font-thai); font-weight: var(--cs-weight-regular); color: var(--cs-content-primary);
  font-size: clamp(12px, 0.35vw + 1.2svh, 17px); line-height: 1.3; overflow-wrap: anywhere;
}
html[lang="en"] .wh-feature-label { font-family: var(--cs-font-ui); }

/* ซ้อนคอลัมน์ (<= 900px) รวมมือถือ: วงเป็นครึ่งวงบน (ศูนย์กลางที่ตัวเครื่อง) หกฟีเจอร์เรียงบนแถบครึ่งวง
   ตัวเครื่องจางหายลงล่าง และครึ่งล่างของวงจางลงพื้น (mask) เจ้าของงานสั่ง 2026-09-30 เลิกกริดไอคอนใต้เครื่อง */
@media (max-width: 900px) {
  .wh-app-stage { --app-d: min(100%, 560px); width: min(100%, 560px); aspect-ratio: 1 / 0.68; --stage-cy: 73.53%; }
  .wh-app-rings { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 44%, transparent 62%); mask-image: linear-gradient(to bottom, #000 0, #000 44%, transparent 62%); }
  .wh-phone-crop.wh-phone-app-lg { width: 32%; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 100%); }
  .wh-feature { --fi: clamp(32px, 9.6vw, 50px); max-width: 19%; }
  .wh-feature-lower-left, .wh-feature-lower-right { flex-direction: column; transform: translate(-50%, calc(var(--fi) / -2)); }
  .wh-feature-label { font-size: clamp(11px, 2.9vw, 15px); }
  .wh-feature-mid-left { left: 8.64%; top: 42.71%; }
  .wh-feature-upper-left { left: 14.38%; top: 27.74%; }
  .wh-feature-lower-left { left: 25.31%; top: 16.02%; }
  .wh-feature-mid-right { left: 74.69%; top: 16.02%; }
  .wh-feature-upper-right { left: 85.62%; top: 27.74%; }
  .wh-feature-lower-right { left: 91.36%; top: 42.71%; }
}
/* มือถือ (<= 720px): ป้ายชื่อของทั้งหกไม่พอที่บนครึ่งวง (ระยะห่างไอคอนข้างเคียงราว 80px ที่ 375px ป้ายไทยสองสามบรรทัด
   ชนกันเอง วัดจริงที่ 375x812) จึงคงไอคอนไว้บนแถบ ส่วนป้ายย้ายไปเป็นรายการสั้นใต้ครึ่งวง (wizehome.js สร้างสำเนา
   .wh-app-captions จากไอคอน+ป้ายเดิมตามลำดับเดียวกัน) ป้ายเดิมในรายการฟีเจอร์ยังอยู่ให้ screen reader อ่าน */
.wh-app-captions { display: none; }
@media (max-width: 900px) {
  .wh-app-stage { width: min(100%, 560px, calc((100svh - 400px) / 0.68)); }
  .wh-feature-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wh-app-captions {
    display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: var(--cs-space-2) var(--cs-space-6);
    list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px;
  }
  .wh-app-captions li { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
  .wh-app-captions .wh-feature-icon { --fi: 26px; }
  .wh-app-captions .wh-feature-icon .ic { width: 14px; height: 14px; }
  .wh-app-captions .wh-feature-cap {
    font-family: var(--cs-font-thai); font-size: 13px; line-height: 1.25; color: var(--cs-content-primary); white-space: nowrap;
  }
  @media (max-width: 400px) { .wh-app-captions { gap: var(--cs-space-2) var(--cs-space-4); } .wh-app-captions .wh-feature-cap { font-size: 12px; } .wh-app-captions .wh-feature-icon { --fi: 24px; } }
  html[lang="en"] .wh-app-captions .wh-feature-cap { font-family: var(--cs-font-ui); }
}
/* จอเตี้ย: ลดความสูงที่ใช้ของวง (จอกว้าง >900px) ให้ทั้งบทพอดีหนึ่งจอ */
@media (min-width: 900.01px) and (max-height: 759.98px) {
  .wh-app-stage { --app-d: clamp(280px, calc(100svh - 270px), 860px); }
  .wh-phone-crop.wh-phone-app-lg { width: 46%; }
}

/* บทที่ 3 (เริ่มต้นใช้งาน): .wh-steps เรียงเป็นคอลัมน์เดียวใต้ breakpoint เดิมของมัน (สามขั้นตอนซ้อนกัน) ที่
   360x640 วัดจริงพบล้น 24px เท่านั้น (เกือบพอดีอยู่แล้ว) ลดระยะห่างระหว่างขั้นตอนก็พอโดยไม่ต้องซ่อนข้อความใดๆ */
@media (max-width: 480px) and (max-height: 700px) {
  #start .wh-steps { --step-row-gap: var(--cs-space-3); }
  #start .wh-section-head { margin-bottom: var(--cs-space-3); }
}
/* จอแคบสูงสุด (360x640): ข้อความอังกฤษยาวกว่าไทยพอที่จะยังล้น 42px หลังลดระยะห่างแล้ว (วัดจริง 2026-09-30)
   ซ่อนย่อหน้าอธิบายของแต่ละขั้น เหลือแค่หมายเลข+หัวข้อ (ยังอยู่ใน DOM ให้ screen reader อ่านครบ) แนวทางเดียว
   กับที่ใช้กับ .wh-bento-card ที่ไม่ใช่การ์ดใหญ่ในบทที่ 2 */
@media (max-width: 360px) and (max-height: 660px) {
  #start .wh-step p { display: none; }
}

/* บทที่ 5 (ความเป็นส่วนตัว + คำถามที่พบบ่อย รวมกัน): กริดสองคอลัมน์บนจอกว้าง คอลัมน์เดียวบนจอแคบ ใช้แนวเดียว
   กับ .wh-life-grid (สืบ align-items:center) การ์ดความเป็นส่วนตัวใช้ .wh-bento-card เดิมตรงๆ (ปรับ light/dark
   ถูกต้องอยู่แล้ว) คอลัมน์คำถามใช้ .wh-faq-list เดิมแต่ป้ายหัวข้อกระชับกว่า .wh-section-head (บรรทัดเดียว
   ไม่ใช่สองบรรทัดขนาด wh-h2) เพื่อเหลือที่แนวตั้งให้คำถามสามข้อ */
.wh-privacy-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-space-10); align-items: center; }
.wh-privacy-faq-grid .wh-bento-card { margin: 0; }
.wh-faq-col-head {
  font-family: var(--cs-font-thai); font-weight: var(--cs-weight-semibold); font-size: var(--cs-size-strong);
  color: var(--cs-content-primary); margin: 0 0 var(--cs-space-3);
}
html[lang="en"] .wh-faq-col-head { font-family: var(--cs-font-display); }
#privacy .wh-faq-list { gap: clamp(6px, 1svh, var(--cs-space-3)); max-width: none; }
#privacy .wh-faq-q { padding: clamp(8px, 1.4svh, var(--cs-space-4)) var(--cs-space-4); min-height: 40px; }
#privacy .wh-faq-a p { padding: 0 var(--cs-space-4) clamp(8px, 1.2svh, var(--cs-space-4)); }
@media (max-width: 900px) {
  .wh-privacy-faq-grid { grid-template-columns: 1fr; gap: clamp(10px, 2svh, var(--cs-space-6)); }
}

/* บทที่ 6 (Marketplace): การ์ดกึ่งกลางจอ ไอคอนกึ่งกลางแนวนอนของตัวเอง (เดิมใช้ inline style ทั้งคู่ ย้ายมาเป็น
   คลาสตรงนี้แทน เพราะตอนนี้การ์ดนี้คือเนื้อหาทั้งหมดของบท ไม่ใช่แค่หนึ่งใน .wh-section ยาว) */
.wh-card-center { margin-inline: auto; text-align: center; max-width: 640px; }
.wh-icon-center { margin-inline: auto; }

/* บรรทัดเน้นของหัวเรื่องในบท (dark): สีเขียว brand บนวงแสงตรงกึ่งกลาง (alpha ~0.3) วัดได้ 2.85-3.06:1 ต่ำกว่า 4.5
   (ทั้งหน้าเป็นแบบนี้มาก่อน) ผสมขาว 50% ให้ผ่าน 4.5 ที่จุดสว่างสุด โหมด light ใช้สีเดิม (ไม่มีวงแสง 5.57:1) */
body.page-wh-home .chapter:not(.wh-ch-hero) .wh-h2 .ln-accent { color: color-mix(in srgb, var(--cs-content-brand) 50%, #fff); }
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-home .chapter:not(.wh-ch-hero) .wh-h2 .ln-accent { color: var(--cs-content-brand); }
}
html[data-theme="light"] body.page-wh-home .chapter:not(.wh-ch-hero) .wh-h2 .ln-accent { color: var(--cs-content-brand); }

/* บทที่ 6 (#marketplace) และบทที่ 7 (#contact) ออกแบบใหม่ตามภาษาเดียวกับทั้งหน้า (เจ้าของงาน 2026-09-30: เดิมกล่องทึบลอยในบทดำว่าง
   และหัวเรื่องเล็ก + ปุ่มเดียว) หัวเรื่องขนาด display เท่า .display-lg ของ Cresive แสงบทและตารางมาจากระบบบทตามปกติ
   (dark: วงแสงที่หัวเรื่อง, light: ตารางล้วน) พื้นผิวเป็นกระจก recipe เดียวกับ .wh-bento-card */
.wh-h2-lg { font-size: clamp(26px, min(4.6vw, 6.4svh), 60px); line-height: 1.25; }
.wh-h2-lg .ln-accent { font-size: clamp(23px, min(4vw, 5.6svh), 52px); }

.wh-market { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.wh-market-lead .wh-h2 { margin: 0; }
.wh-market-lead .wh-actions { margin-top: clamp(16px, 3svh, 32px); }
.wh .wh-market-facts { list-style: none; margin: 0; padding: clamp(20px, 4.2svh, 52px) clamp(20px, 3vw, 52px); gap: 0; }
.wh-market-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--cs-space-4); align-items: start; padding: clamp(12px, 2.2svh, 22px) 0; }
.wh-market-facts li + li { border-top: 1px solid var(--cs-border-subtle); }
.wh-market-facts li:first-child { padding-top: 0; }
.wh-market-facts li:last-child { padding-bottom: 0; }
.wh-market-facts .wh-bento-icon { margin: 0; }
.wh-market-facts p { max-width: none; font-size: clamp(14px, 0.5vw + 1.8svh, 21px); line-height: 1.5; }
@media (min-width: 900.02px) { .wh-market-facts .wh-bento-icon { width: 48px; height: 48px; } .wh-market-facts .wh-bento-icon .ic { width: 22px; height: 22px; } }
@media (max-width: 900px) {
  .wh-market { grid-template-columns: 1fr; gap: clamp(14px, 3svh, 28px); }
  .wh-market-lead { text-align: center; }
  .wh-market-lead .wh-actions { justify-content: center; }
  .wh-market-facts p { font-size: clamp(13px, 3.4vw, 16px); }
}
@media (max-width: 480px) and (max-height: 700px) {
  .wh .wh-market-facts { padding: 10px 14px; }
  .wh-market-facts li { padding: 8px 0; gap: var(--cs-space-3); }
  .wh-market-facts p { font-size: 12.5px; line-height: 1.4; }
  .wh-market-facts .wh-bento-icon { width: 28px; height: 28px; }
}

.wh-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wh-cta .wh-h2 { margin: 0; }
.wh-cta .wh-lede { max-width: 30em; margin: clamp(10px, 2svh, 20px) auto clamp(14px, 3svh, 32px); }
.wh-cta .wh-actions { justify-content: center; margin-top: 0; }
.wh-contact-alt { margin: clamp(10px, 2svh, 20px) 0 0; font-size: var(--cs-size-body-dense); color: var(--cs-content-secondary); }
.wh-contact-alt a { color: var(--cs-content-secondary); text-underline-offset: 4px; }
.wh-contact-alt a:hover { color: var(--cs-content-primary); }

/* จอเตี้ย (1024x700 และแคบกว่า): บทที่มีเนื้อหาแน่น (แอป+อุปกรณ์, ความเป็นส่วนตัว+คำถาม) ลดระยะแนวตั้งอีกขั้น
   ตามแนวทางเดียวกับ --rhy-* ของ Cresive (สูตร svh เชิงเส้นเดียวกัน คงไว้ที่ไฟล์ site.css ไม่ทำซ้ำ ใช้ค่านั้น
   ตรงๆ ผ่าน var(--rhy-N) ในกฎด้านบนแล้วทุกจุด) ส่วนนี้เพิ่มเฉพาะจุดที่ยังแน่นอยู่ที่ 1024x700: การ์ดกระจกภายใน
   .wh-bento-card ของบท 5/6 มี padding คงที่ (ไม่ใช่ svh-clamp) จึงย่อเพิ่มเฉพาะจอเตี้ยกว่า 760px */
@media (max-height: 759.98px) {
  #privacy .wh-bento-card, #marketplace .wh-bento-card { padding: clamp(14px, 2.4svh, var(--cs-space-6)); }
}

/* หมวด 12 (เนื้อหาในจอโทรศัพท์) ถูกลบในรอบนี้: เจ้าของงานสั่ง 2026-09-30 ให้เอาเนื้อหาออกจากจอทั้งสองจอ
   ของหน้านี้ (hero และแอป+อุปกรณ์) แล้วขยายตัวเครื่องแทน จอทั้งสองยังว่างเปล่าจริง (data-slot="app-screen"
   คงไว้) รอใส่ดีไซน์แอปจริง จึงไม่มี .wh-app-screen-list/.wh-app-row เหลือให้ใช้กฎกลุ่มนี้แล้ว (ดูขนาดเครื่อง
   ใหม่ที่ .wh-phone-hero-lg ก่อนหน้านี้ และ .wh-phone-app-lg ที่หมวด 14 ท้ายไฟล์) */

/* ─── หมวด 13: [data-light] แสงเสริมเฉพาะจุด (ข้อกำหนดข้อ 2 "plus the existing [data-light] anchors
   where they serve the glass cards") ─────────────────────────────────────────
   แสงหลักของแต่ละบท (.spot-pool จากหมวด 11) มีดวงเดียวต่อบท ตำแหน่งอิงหัวเรื่องรวมของทั้งบท (site.js คำนวณ
   จาก headingRectFor ของทั้ง .chapter ไม่รู้จัก [data-light] ของ WizeHome) การ์ดที่ทำเครื่องหมาย [data-light]
   ไว้ (การ์ดความปลอดภัยและระบบอัตโนมัติในบันโต, โทรศัพท์บท 4, การ์ดความเป็นส่วนตัว, การ์ด Marketplace) จึงยัง
   ไม่มีแสงของตัวเองถ้าไม่เพิ่มอะไรเลย ไม่แก้ site.js (ตามคำแนะนำของงาน "prefer reusing... if WizeHome pages
   can load it without side effects") เพิ่มด้วย CSS ล้วนแทน: วงแสงนิ่งอยู่กับที่ตรงกลาง element เอง เผยด้วย
   กลไก .is-in เดียวกับที่ site.js ใส่ให้ .chapter ทุกใบอยู่แล้วเมื่อเลื่อนเข้าจอครั้งแรก (ไม่ต้องเพิ่ม JS ใหม่
   ไม่ต้องผูกกับ IntersectionObserver ของตัวเอง) สีขาวอุ่นเดียวกับแสงหลักของหน้านี้ แต่จางกว่ามาก (20%/0%) เพราะ
   เป็นแสงเสริมชั้นสอง ไม่ใช่แสงนำของบท ป้องกันไม่ให้ข้อความ content-secondary ในการ์ด (เช่นย่อหน้า .wh-bento-card
   p) ตกอยู่ในแสงที่แรงเกิน 4.5:1 (LG3) */
body.page-wh-home [data-light] { position: relative; }
/* ปิดแล้ว 2026-09-30: แสงเสริมวางอยู่ใต้เนื้อความของการ์ดพอดี เมื่อแสงหลักสว่างระดับ Aerium ทำให้ข้อความในการ์ดต่ำกว่า 4.5:1
   กฎด้านล่างคงไว้เป็นสภาพไม่มีผล ลบทั้งหมวดได้ถ้าไม่กลับมาใช้ */
body.page-wh-home [data-light]::before { content: none; }
html.js:not([data-motion="still"]) body.page-wh-home .chapter.is-in [data-light]::before { opacity: 1; }
html:not(.js) body.page-wh-home [data-light]::before,
html[data-motion="still"] body.page-wh-home [data-light]::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body.page-wh-home [data-light]::before { transition: none; } }

/* พื้นผิวกระจกทุกชิ้นใน WizeHome ใช้สูตรเดียวกับ .glass-card / .tile ของ Cresive (chapters.css): tint surface-elevated 5%, ขอบไล่สี
   hairline 135deg .18 > .04, blur(3px) saturate(160%), เงา elevation-2 + ไฮไลต์ขอบบน, text-shadow 0 1px 3px .45 (เจ้าของงาน 2026-09-30
   "กระจกทึบเกินไป": ป้ายลอยใน hero และรายการคำถามเดิมเป็นพื้นทึบ surface-elevated) โหมด light เป็นกระจกฝ้าขาว 55% ตามสูตรของ .wh-bento-card */
.wh-float-panel, .wh-faq-item, .wh-bento-card, .wh-ring-3 {
  --wh-glass-tint: color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.18); --wh-glass-edge-b: rgba(255, 255, 255, 0.04);
  --wh-glass-hi: rgba(255, 255, 255, 0.08); --wh-glass-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.wh-float-panel, .wh-faq-item {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--wh-glass-tint), var(--wh-glass-tint)), linear-gradient(135deg, var(--wh-glass-edge-a), var(--wh-glass-edge-b));
  background-origin: border-box; background-clip: padding-box, border-box;
  -webkit-backdrop-filter: blur(3px) saturate(160%); backdrop-filter: blur(3px) saturate(160%);
  box-shadow: var(--cs-elevation-2), inset 0 1px 0 var(--wh-glass-hi);
  text-shadow: var(--wh-glass-text-shadow);
}
.wh-float-panel { border-radius: var(--cs-radius-lg); }
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] :is(.wh-float-panel, .wh-faq-item, .wh-ring-3) {
    --wh-glass-tint: rgba(255, 255, 255, 0.55);
    --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
    --wh-glass-hi: rgba(255, 255, 255, 0.9); --wh-glass-text-shadow: none;
  }
}
html[data-brand="wizehome"][data-theme="light"] :is(.wh-float-panel, .wh-faq-item, .wh-ring-3) {
  --wh-glass-tint: rgba(255, 255, 255, 0.55);
  --wh-glass-edge-a: rgba(255, 255, 255, 0.95); --wh-glass-edge-b: color-mix(in srgb, var(--cs-content-primary) 8%, transparent);
  --wh-glass-hi: rgba(255, 255, 255, 0.9); --wh-glass-text-shadow: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wh-float-panel, .wh-faq-item { background-image: none; background-color: var(--cs-surface-elevated); border-color: var(--cs-border-subtle); }
}
/* ปุ่มรอง = .btn-glass ของ Cresive (glass-strong + blur 24) */
.wh-btn.wh-btn-secondary { background: var(--cs-surface-glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--cs-shadow-glass); }

/* หน้าต่างเตี้ย + ตัวบอกบทด้านขวา (เจ้าของงาน 2026-09-30, หน้าต่างจริง 1000x550):
   1) กว้าง >= 720 แต่เตี้ย < 640: site.css ปล่อย .chapter เป็น min-height 100svh โดยไม่มี padding-top (กฎ padding-top: var(--nav-h)
      อยู่ในช่วง min-height 640 เท่านั้น) แต่ hero ของหน้านี้ยัง margin-top ติดลบเท่า --nav-h จึงถูกดึงขึ้นไป 96px โทรศัพท์และป้ายลอย
      วิ่งใต้แถบนำทาง (วัด: ขอบบนโทรศัพท์ y=42 แถบนำทางสิ้นสุด y=60) ให้ทุกบทของหน้านี้กันที่ให้แถบนำทางด้วย padding-top ในช่วงนี้เหมือนช่วงสูง
   2) ตัวบอกบทกว้าง 34px ห่างขอบขวา 24px (ซ้ายของตัวบอกบท = 100vw - 58px) เนื้อหาที่ชิดขอบ .wh-wrap (padding 24px) ชนตัวบอกบท: เว้นซ้ายขวาเท่ากัน
      74px (24 + 34 + 16) เฉพาะเมื่อขอบนอก .wh-wrap ยังไม่ให้ที่พอ (จอ < 1348px) จอกว้างกว่านั้นเหมือนเดิม footer เว้น 74px ทุกความกว้าง >= 720px */
/* DEC-258 (Cresive): จอเตี้ย < 640px (กว้าง >= 720px) หนึ่งบท = หนึ่งจอเป๊ะ และ < 680px ย่อระยะบนเหลือแค่พ้นแคปซูลนำทาง หน้านี้ทำเหมือนกัน
   (กฎของ Cresive ใน site.css ยกเว้น body.page-wh-home) ใช้ตัวแปร --wh-ch-pt เป็นระยะบนของบท และ hero ดึงขึ้นเท่าค่าเดียวกัน
   (รอบสิบสองใส่ padding-top แต่ปล่อย min-height ทำให้ #features สูง 604px และ footer สูง 825px ที่ 1000x550 ตัวตรวจเดิมวัดเฉพาะ
   เนื้อหาเทียบขอบบทที่ยืดตามเนื้อหา จึงไม่เห็น) */
body.page-wh-home { --wh-ch-pt: var(--nav-h); }
@media (min-width: 720px) and (max-height: 679.98px) { body.page-wh-home { --wh-ch-pt: calc(var(--nav-h) - 24px); } }
@media (min-width: 1024px) and (max-height: 679.98px) { body.page-wh-home { --wh-ch-pt: calc(var(--nav-h) - 12px); } }
@media (min-width: 720px) and (max-height: 679.98px) {
  body.page-wh-home .chapter { padding-top: var(--wh-ch-pt); }
  body.page-wh-home .wh-ch-hero .wh-hero { margin-top: calc(-1 * var(--wh-ch-pt)); padding-top: var(--wh-ch-pt); }
}
@media (min-width: 720px) and (max-height: 639.98px) {
  body.page-wh-home .chapter { height: 100svh; min-height: 0; }
}
@media (min-width: 720px) {
  body.page-wh-home .chapter:not(.wh-ch-foot) .wh-wrap { padding-inline: max(24px, calc(74px - max(0px, (100vw - 1200px) / 2))); }
  body.page-wh-home .ch-foot { padding-left: 74px; padding-right: 74px; }
}

/* ป้ายลอยของ hero เป็นกระจกโปร่งเท่า Cresive แล้ว (ไม่ทึบเหมือนเดิม) ทำให้ตัวอักษรอยู่บนภาพห้องโดยตรง: วัดพิกเซลใต้ป้ายซ้ายที่ 1000x550 ได้ L ต่ำสุด
   0.085 สูงสุด 0.169 (ตัวอักษรขาว 4.79-7.8:1) ป้ายชื่อแอปเล็ก (WIZEHOME) สีจาง (tertiary) ได้ ~1.9:1 จึงใช้สีหลัก (ขาวใน dark, เข้มใน light) */
.wh-float-panel .wh-status-text .app { color: var(--cs-content-primary); }

/* ป้ายลอยของ hero = สูตร .ui-panel ของ Cresive (chapters.css / home.css) ตรงตัว (เจ้าของงาน 2026-09-30 "ปรับ Card ให้เหมือนของ Cresive
   จะได้ไม่ดูอึดอัด"): badge + ข้อความสองบรรทัด, padding var(--rhy-3) var(--rhy-5) var(--rhy-3) var(--rhy-3), gap var(--rhy-4),
   width max-content, max-width 320px, badge clamp(28px, 2.4svh + 12px, 40px) พื้น status-success-surface, ชื่อแอปสไตล์ eyebrow
   สีหลัก, ข้อความ font-size thai / semibold ข้อความเดียวกันไม่ตัดบรรทัดบนจอกว้าง (หน้านี้ไม่ตั้ง font-size ให้ตัวแผงเอง ใช้ของ token) */
.wh-float-panel {
  gap: var(--rhy-4); padding: var(--rhy-3) var(--rhy-5) var(--rhy-3) var(--rhy-3);
  width: max-content; max-width: 400px; font-size: inherit; /* Cresive: 320px; ข้อความของป้ายขวายาวกว่า จึงยอมให้ถึง 400px เพื่อไม่ตัดบรรทัดบนจอกว้าง */
}
.wh-float-panel .wh-status-icon {
  width: clamp(28px, 2.4svh + 12px, 40px); height: clamp(28px, 2.4svh + 12px, 40px); border-radius: var(--cs-radius-md);
  background: var(--cs-status-success-surface); color: var(--cs-content-brand);
}
.wh-float-panel .wh-status-icon .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }
.wh-float-panel .wh-status-text .app { font-family: var(--cs-font-ui); font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-regular); letter-spacing: var(--cs-tracking-eyebrow); text-transform: uppercase; color: var(--cs-content-primary); }
.wh-float-panel .wh-status-text .msg { font-size: var(--cs-size-thai); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
.wh-float-panel { box-shadow: var(--cs-shadow-glass), inset 0 1px 0 var(--wh-glass-hi); }

/* ─── Splash ของ WizeHome: ใช้กลไกและ CSS หลักจาก site.css หมวด 14 เปลี่ยนแค่สัญลักษณ์ ─── */
/* สีพื้นตามธีมอุปกรณ์อยู่แล้วผ่าน --cs-surface-canvas (data-theme="auto" ของหน้านี้) สัญลักษณ์ใช้ teal ทึบเดียวกับโลโก้ใน nav ทั้งสองธีม */
html[data-brand="wizehome"] .splash::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%220 0 256 256%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M192 75.0808C192 71.4871 189.604 68.3345 186.141 67.3726L174 64V75.9197C174 79.5133 176.396 82.666 179.859 83.6278L192 87.0004V75.0808Z%22 fill=%22%2319B08D%22/%3E%3Cpath d=%22M82 95.0006L69.8598 98.3712C66.3968 99.3327 64 102.486 64 106.08V127.441C64 132.742 69.0629 136.577 74.1663 135.142L118.252 122.741C124.627 120.947 131.373 120.947 137.748 122.741L181.834 135.142C186.937 136.577 192 132.742 192 127.441V106.08C192 102.486 189.603 99.3327 186.14 98.3712L174 95.0006V115.001L137.792 104.766C131.39 102.956 124.61 102.956 118.208 104.766L82 115.001V95.0006Z%22 fill=%22%2319B08D%22/%3E%3Cpath d=%22M96 154.44C96 159.741 101.063 163.577 106.166 162.141L118.252 158.741C124.627 156.948 131.373 156.948 137.748 158.741L149.834 162.141C154.937 163.577 160 159.741 160 154.44V153.06C160 149.476 157.616 146.329 154.166 145.359L137.748 140.741C131.373 138.948 124.627 138.948 118.252 140.741L101.834 145.359C98.3837 146.329 96 149.476 96 153.06V154.44Z%22 fill=%22%2319B08D%22/%3E%3Cpath d=%22M112 183C112 185.662 113.77 187.998 116.332 188.719L118.254 189.259C124.628 191.052 131.372 191.052 137.746 189.259L139.668 188.719C142.23 187.998 144 185.662 144 183C144 180.339 142.23 178.002 139.668 177.282L137.748 176.741C131.373 174.948 124.627 174.948 118.252 176.741L116.332 177.282C113.77 178.002 112 180.339 112 183Z%22 fill=%22%2319B08D%22/%3E%3C/svg%3E");
}

/* DEC-258: footer จอเตี้ย (< 680px สูง, กว้าง >= 720px) เหมือน Cresive: แผงกระชับ ลิงก์สูง 32px และที่กว้าง >= 900px คอลัมน์ลิงก์
   สี่คอลัมน์ + บล็อกแบรนด์แถวเดียว (กฎของ Cresive ใน site.css ยกเว้นหน้าแรก WizeHome) */
@media (min-width: 720px) and (max-height: 679.98px) {
  body.page-wh-home .ch-foot { padding-bottom: var(--cs-space-4); }
  body.page-wh-home .foot-panel { padding: var(--cs-space-5) var(--cs-space-6); }
  body.page-wh-home .foot-brand p { margin-top: var(--cs-space-3); }
  body.page-wh-home .foot-col a { min-height: 32px; }
  body.page-wh-home .foot-col summary { margin-bottom: var(--cs-space-1); }
  body.page-wh-home .foot-legal { margin-top: var(--cs-space-3); padding-top: var(--cs-space-3); }
}
@media (min-width: 900px) and (max-height: 679.98px) {
  body.page-wh-home .foot-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--cs-space-5); }
  body.page-wh-home .foot-brand { grid-column: auto; }
}

/* DEC-258: bento (#features) จอเตี้ย: ย่อระยะและตัวอักษรตามสัดส่วน svh ก่อน (เหมือนการ์ด .tile ของ Cresive) ที่ 1000x550 เดิมล้น 30px */
@media (min-width: 720px) and (max-height: 679.98px) {
  body.page-wh-home .wh-bento-section .wh-section-head { margin-bottom: clamp(8px, 2svh, 14px); }
  body.page-wh-home .wh-bento-card { padding: clamp(10px, 2svh, 14px); gap: 4px; }
  body.page-wh-home .wh-bento-card p { font-size: clamp(12px, 2.3svh, 14px); line-height: 1.35; }
  body.page-wh-home .wh-bento-icon { width: 30px; height: 30px; margin-bottom: 0; }
  body.page-wh-home .wh-bento-icon .ic { width: 16px; height: 16px; }
  body.page-wh-home .wh-bento-card h3 { font-size: clamp(14px, 2.6svh, 17px); }
  body.page-wh-home .wh-bento { gap: 8px; }
}

/* หน้าแรกแบบบท (html[data-page="wh-home"] ตั้งในไฟล์ HTML ของหน้าแรกสองภาษา ไม่ต้องใช้ selector ย้อนขึ้นไปหา body): site.css ตั้ง scroll-padding-top: var(--nav-h) (96px) ให้ html
   แล้วยกเลิกเฉพาะช่วงจอสูงหรือมือถือ และยกเว้นหน้านี้ในช่วงจอเตี้ย (html:not([data-page="wh-home"])) ทำให้ที่ 1000x550 ทุกบท snap
   ที่ y=96 แทน 0: ท้ายบท 96px ตกใต้จอ และท้ายบทก่อนหน้าโผล่ใต้แถบนำทาง บทของหน้านี้กันที่ให้แถบนำทางด้วย padding-top ของตัวเองแล้ว จึงต้องเป็น 0
   และจอเตี้ยใช้ mandatory เหมือน Cresive (เดิมเป็น proximity) หน้าแบบเลื่อนปกติของ WizeHome ไม่มี data-page นี้ จึงเก็บระยะเว้นแถบนำทางไว้ */
html[data-page="wh-home"] { scroll-padding-top: 0; }
@media (min-width: 720px) and (max-height: 639.98px) { html[data-page="wh-home"] { scroll-snap-type: y mandatory; } }

/* ─── หมวด 15: หน้า features (html[data-page="wh-features"]) ──────────────────────────────────────────
   หน้านี้ใช้ภาษาเดียวกับหน้าแรก: โหลด site.css + chapters.css + site.js ชุดเดียวกัน และใส่ class page-wh-home ที่ body เพื่อรับ
   กฎระบบบทของหมวด 11 (แสงขาวอุ่นดวงเดียวต่อบท, ตารางในวงแสง, จัดกึ่งกลางแนวตั้ง, ระยะ .wh-wrap เผื่อตัวบอกบท, จอเตี้ยหนึ่งบทหนึ่งจอ)
   โดยไม่คัดลอกกฎซ้ำ กฎที่เป็นของหน้านี้อยู่ใต้ html[data-page="wh-features"] ทั้งหมด ไม่แก้กฎที่หน้าแรกใช้อยู่ และไม่มี :has()
   (JS ของ wizehome.js ที่ผูกกับ page-wh-home หาองค์ประกอบของหน้าแรกไม่เจอในหน้านี้ จึงออกจากฟังก์ชันทันที) */
html[data-page="wh-features"] { scroll-padding-top: 0; }
@media (min-width: 720px) and (max-height: 639.98px) { html[data-page="wh-features"] { scroll-snap-type: y mandatory; } }

/* บทแรกของหน้านี้ไม่มีรูปถ่าย จึงต้องมีแสงของตัวเอง (หน้าแรกซ่อน #lights-ch-1 เพราะภาพคือแสง) */
html[data-page="wh-features"] body.page-wh-home #lights-ch-1 { display: block; }

/* บรรทัดเน้นของ h1 ใช้สีเดียวกับบรรทัดเน้นของ h2 ในบท (หมวด 14 ท้ายไฟล์): ผสมขาวใน dark เพื่อให้ผ่าน 4.5:1 บนวงแสง */
html[data-page="wh-features"] body.page-wh-home .wh-h1 .ln-accent { color: color-mix(in srgb, var(--cs-content-brand) 50%, #fff); }
@media (prefers-color-scheme: light) {
  html[data-page="wh-features"][data-theme="auto"] body.page-wh-home .wh-h1 .ln-accent { color: var(--cs-content-brand); }
}
html[data-page="wh-features"][data-theme="light"] body.page-wh-home .wh-h1 .ln-accent { color: var(--cs-content-brand); }
html[data-page="wh-features"] .wh-h1 .ln-accent em,
html[data-page="wh-features"] .wh-h2 .ln-accent em { font-style: inherit; }
html[data-page="wh-features"] .wh-h1-lg { font-size: clamp(28px, min(4.4vw, 6.4svh), 56px); line-height: 1.25; margin: 0 0 clamp(8px, 1.6svh, 20px); }
html[data-page="wh-features"] .wh-h1-lg .ln-accent { font-size: clamp(24px, min(3.8vw, 5.6svh), 48px); }

/* สองคอลัมน์ของบท hero / ชาร์จรถ / FAQ: ข้อความฝั่งเดียวกับแสง อีกฝั่งเป็นภาพหรือรายการ */
html[data-page="wh-features"] .wh-feat-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
html[data-page="wh-features"] .wh-feat-split-rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
html[data-page="wh-features"] .wh-feat-split-rev > .wh-feat-copy { order: 2; }
html[data-page="wh-features"] .wh-feat-copy .wh-h2 { margin: 0; }
html[data-page="wh-features"] .wh-feat-copy .wh-lede { margin: clamp(10px, 2svh, 20px) 0 0; }
html[data-page="wh-features"] .wh-feat-copy .wh-eyebrow { margin-bottom: clamp(4px, 1svh, 12px); }
html[data-page="wh-features"] .wh-feat-copy .wh-actions { margin-top: clamp(14px, 3svh, 32px); }
html[data-page="wh-features"] #faq .wh-faq-list { max-width: none; gap: clamp(6px, 1.2svh, var(--cs-space-3)); }
html[data-page="wh-features"] #faq .wh-faq-q { padding: clamp(8px, 1.6svh, var(--cs-space-4)) var(--cs-space-4); min-height: 44px; }
html[data-page="wh-features"] #faq .wh-faq-a p { padding: 0 var(--cs-space-4) clamp(8px, 1.4svh, var(--cs-space-4)); margin: 0; }

/* แผง "บ้านพร้อมแล้ว" ของ hero: กระจก recipe เดียวกับ .wh-bento-card, หัวแผงเป็นประโยคของผู้อยู่อาศัย แถวละหนึ่งระบบ */
html[data-page="wh-features"] .wh-ready, html[data-page="wh-features"] .wh-ev-panel { padding: clamp(14px, 2.8svh, 30px) clamp(16px, 2.6vw, 32px); gap: 0; max-width: 560px; width: 100%; justify-self: center; }
html[data-page="wh-features"] .wh-ready-head { display: flex; flex-direction: column; gap: 2px; margin: 0; padding-bottom: clamp(8px, 1.6svh, 16px); border-bottom: 1px solid var(--cs-border-subtle); }
html[data-page="wh-features"] .wh-ready-head .app,
html[data-page="wh-features"] .wh-ev-title .app { font-family: var(--cs-font-ui); font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-regular); letter-spacing: var(--cs-tracking-eyebrow); text-transform: uppercase; color: var(--cs-content-primary); }
html[data-page="wh-features"] .wh-ready-head .msg,
html[data-page="wh-features"] .wh-ev-title .msg { font-size: var(--cs-size-body-lg); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
html[data-page="wh-features"] .wh-ready-list { list-style: none; margin: 0; padding: 0; }
html[data-page="wh-features"] .wh-ready-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--cs-space-4); align-items: center; padding: clamp(7px, 1.5svh, 14px) 0; }
html[data-page="wh-features"] .wh-ready-list li + li { border-top: 1px solid var(--cs-border-subtle); }
html[data-page="wh-features"] .wh-ready-list li:last-child { padding-bottom: 0; }
html[data-page="wh-features"] .wh-ready-list .wh-bento-icon { margin: 0; }
html[data-page="wh-features"] .wh-ready-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
html[data-page="wh-features"] .wh-ready-text .k { font-size: var(--cs-size-thai-dense); color: var(--cs-content-tertiary); }
html[data-page="wh-features"] .wh-ready-text .v { font-size: var(--cs-size-thai); font-weight: var(--cs-weight-medium); color: var(--cs-content-primary); }
html[lang="en"][data-page="wh-features"] .wh-ready-text .k { font-family: var(--cs-font-ui); }

/* แผงชาร์จรถ: แท่งเดียวแสดงว่าไฟบ้านส่วนอื่นกับรถแบ่งไฟกันอย่างไร ไม่มีตัวเลขเพราะหน้านี้ไม่มีข้อมูลจริงรองรับ */
html[data-page="wh-features"] .wh-ev-head { flex-direction: row; align-items: center; gap: var(--cs-space-4); }
html[data-page="wh-features"] .wh-ev-head .wh-bento-icon { margin: 0; }
html[data-page="wh-features"] .wh-ev-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* แท่งโหลดเป็นแท่งเดียวต่อเนื่อง: สามส่วนชิดกัน (38 / 40 / 22 เปอร์เซ็นต์) ไม่มีช่องว่าง มุมโค้งอยู่ที่สองปลายของทั้งแท่งผ่าน overflow ของกรอบ
   สามส่วนโตจากศูนย์พร้อมกันและถึงความกว้างจริงพร้อมกัน (เจ้าของงาน 28 ต.ค. 2569: เริ่มพร้อมกัน แต่ต่อท้ายกันเสมอ) ตัวแปร --ev-p วิ่งจาก 0 ไป 1
   แบบ linear ตลอด --ev-sweep ทุกส่วนกว้าง สัดส่วน x --ev-p ของกรอบ ส่วนถัดไปจึงเริ่มที่ปลายของส่วนก่อนหน้าทุกเฟรม ไม่มีช่องว่างและไม่มีส่วนใดรอส่วนอื่น
   กรอบมีความกว้างเท่าเดิมตลอด (flex ภายในกรอบเท่านั้นที่เปลี่ยน) จึงไม่ดัน layout รอบนอก legend ขึ้นพร้อมกับแท่ง เล่นตอนบทเป็น data-active
   ทุกครั้งที่เข้าบท ออกจากบทแล้วรีเซ็ตทันที data-motion="still" และ prefers-reduced-motion แสดงสถานะสุดท้ายเลย
   เบราว์เซอร์ที่ไม่รู้จัก @property แสดงแท่งเต็มโดยไม่เล่น */
@property --ev-p { syntax: "<number>"; inherits: true; initial-value: 1; }
html[data-page="wh-features"] .wh-ev-panel { --ev-sweep: 1800ms; }
html[data-page="wh-features"] .wh-load { display: flex; gap: 0; height: clamp(16px, 3svh, 26px); margin: clamp(14px, 3svh, 28px) 0 clamp(10px, 2svh, 18px); border-radius: var(--cs-radius-full); overflow: hidden; }
html[data-page="wh-features"] .wh-load-seg { display: block; height: 100%; min-width: 0; box-sizing: border-box; }
html[data-page="wh-features"] .wh-load-home { flex: 0 0 calc(38% * var(--ev-p)); background: color-mix(in srgb, var(--cs-content-primary) 30%, transparent); }
html[data-page="wh-features"] .wh-load-car { flex: 0 0 calc(40% * var(--ev-p)); background: var(--cs-action-primary); }
html[data-page="wh-features"] .wh-load-free { flex: 0 0 calc(22% * var(--ev-p)); background: transparent; border: 1px dashed color-mix(in srgb, var(--cs-content-primary) 36%, transparent); border-left: 0; border-radius: 0 var(--cs-radius-full) var(--cs-radius-full) 0; }
html.js:not([data-motion="still"])[data-page="wh-features"] .wh-load { transition: --ev-p var(--ev-sweep) linear; }
html.js:not([data-motion="still"])[data-page="wh-features"] .wh-load-key li { transition: opacity var(--ev-sweep) linear; }
html.js:not([data-motion="still"])[data-page="wh-features"] .chapter:not([data-active]) .wh-load { --ev-p: 0; transition: none; }
html.js:not([data-motion="still"])[data-page="wh-features"] .chapter:not([data-active]) .wh-load-key li { opacity: .3; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-page="wh-features"] .wh-load { --ev-p: 1 !important; transition: none !important; }
  html[data-page="wh-features"] .wh-load-key li { opacity: 1 !important; transition: none !important; }
}
html[data-page="wh-features"] .wh-load-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--cs-space-2) var(--cs-space-5); }
html[data-page="wh-features"] .wh-load-key li { display: inline-flex; align-items: center; gap: var(--cs-space-2); font-size: var(--cs-size-thai-dense); color: var(--cs-content-primary); }
html[data-page="wh-features"] .wh-load-key li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
html[data-page="wh-features"] .wh-load-key .home::before { background: color-mix(in srgb, var(--cs-content-primary) 30%, transparent); }
html[data-page="wh-features"] .wh-load-key .car::before { background: var(--cs-action-primary); }
html[data-page="wh-features"] .wh-load-key .free::before { border: 1px dashed color-mix(in srgb, var(--cs-content-primary) 50%, transparent); }
html[data-page="wh-features"] .wh-load-note { margin: clamp(10px, 2svh, 18px) 0 0; padding-top: clamp(8px, 1.6svh, 14px); border-top: 1px solid var(--cs-border-subtle); font-size: var(--cs-size-thai-dense); color: var(--cs-content-secondary); }
html[lang="en"][data-page="wh-features"] :is(.wh-load-key li, .wh-load-note) { font-family: var(--cs-font-ui); }

/* บทระบบในบ้าน: แถวเดียวของการ์ดกระจก การ์ดแรกกว้างกว่า (ไฟคือสิ่งที่ผู้อยู่อาศัยแตะบ่อยที่สุด) */
html[data-page="wh-features"] #systems .wh-section-head { margin-bottom: clamp(14px, 3.4svh, 40px); }
html[data-page="wh-features"] #systems .wh-lede { font-size: clamp(14px, 0.4vw + 1.4svh, 17px); }
html[data-page="wh-features"] .wh-sys { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(10px, 1.8svh, 20px); }
html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child { padding: clamp(16px, 3svh, 34px); }
html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child h3 { font-size: clamp(18px, 0.5vw + 2svh, 24px); }
html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child p { font-size: clamp(14px, 0.3vw + 1.4svh, 17px); }

@media (max-width: 1023.98px) {
  html[data-page="wh-features"] .wh-sys { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html[data-page="wh-features"] .wh-feat-split, html[data-page="wh-features"] .wh-feat-split-rev { grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 3svh, 28px); }
  html[data-page="wh-features"] .wh-feat-split-rev > .wh-feat-copy { order: 0; }
}

/* #marketplace .wh-market-facts: ข้อความบรรทัดเดียวอยู่กึ่งกลางแนวตั้งของกล่องไอคอน ส่วนรายการหลายบรรทัดเริ่มบรรทัดแรกที่ขอบบนของกล่องไอคอนเหมือนเดิม
   ทำโดยให้ p สูงอย่างน้อยเท่ากล่องไอคอน (--mf-icon ตามขนาดไอคอนของแต่ละช่วงจอ) แล้วจัดข้อความกลางแนวตั้งใน min-height นั้น: บรรทัดเดียวจึงกึ่งกลาง
   หลายบรรทัดสูงเกิน min-height แล้ว จึงไม่ถูกดันและบรรทัดแรกไม่ขยับ scope เฉพาะ .wh-market-facts */
.wh-market-facts { --mf-icon: clamp(36px, 4.6svh, 48px); }
@media (min-width: 900.02px) { .wh-market-facts { --mf-icon: 48px; } }
@media (max-width: 560px) { .wh-market-facts { --mf-icon: 32px; } }
@media (max-width: 480px) and (max-height: 700px) { .wh-market-facts { --mf-icon: 28px; } }
.wh-market-facts li > p { min-height: var(--mf-icon); display: flex; align-items: center; }

/* หน้า features บนมือถือ: บทต้องจบเหนือแถบจุดบท รูปแบบเปลี่ยนตามที่ว่าง ไม่ใช่แค่ย่อ
   hero: ป้ายกำกับเล็กของแต่ละแถวออก (ประโยคสถานะบอกเรื่องเดียวกันอยู่แล้ว), จอเตี้ยตัด lede และ eyebrow เหลือหัวข้อ ปุ่ม และแผง
   ระบบในบ้าน: การ์ดสองคอลัมน์ ตัด lede กับรายการย่อย (ยังเหลือหัวข้อ ไอคอน และป้ายมาตรฐาน), จอเตี้ยตัดคำอธิบายของการ์ด แนวเดียวกับบันโตหน้าแรก */
@media (max-width: 560px) {
  html[data-page="wh-features"] .wh-ready-text .k { display: none; }
  html[data-page="wh-features"] .wh-ready, html[data-page="wh-features"] .wh-ev-panel { padding: 12px 16px; }
  html[data-page="wh-features"] .wh-ready-list li { padding: 6px 0; gap: var(--cs-space-3); }
  html[data-page="wh-features"] .wh-ready-list .wh-bento-icon { width: 32px; height: 32px; }
  html[data-page="wh-features"] .wh-ready-list .wh-bento-icon .ic { width: 18px; height: 18px; }
  html[data-page="wh-features"] #systems .wh-lede { display: none; }
  html[data-page="wh-features"] #systems .wh-section-head { margin-bottom: 12px; }
  html[data-page="wh-features"] .wh-sys .wh-bento-parts { display: none; }
  html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child { padding: 12px; }
  html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child h3 { font-size: clamp(15px, 0.3vw + 1.5svh, 19px); }
  html[data-page="wh-features"] .wh-sys .wh-bento-card:first-child p { font-size: 12.5px; }
  html[data-page="wh-features"] .wh-feat-copy .wh-actions { gap: var(--cs-space-2); }
  html[data-page="wh-features"] .wh-feat-copy .wh-btn { min-height: 44px; padding: 0 var(--cs-space-5); }
}
@media (max-width: 560px) and (max-height: 740px) {
  html[data-page="wh-features"] #overview .wh-lede,
  html[data-page="wh-features"] #overview .wh-eyebrow { display: none; }
  html[data-page="wh-features"] .wh-sys .wh-bento-card p { display: none; }
}


/* ─── หมวด 16: หน้าย่อยที่เหลือของ WizeHome (marketplace, contact, blog, legal, 404) ──────────────────────
   ภาษาเดียวกับ landing และหน้า features: โหลด site.css + chapters.css + site.js ชุดเดียวกัน body ใส่ page-wh-home เพื่อรับกฎระบบบทของหมวด 11
   และ page-wh-sub เพื่อรับกฎของหมวดนี้ กฎทั้งหมดอยู่ใต้ body.page-wh-sub (หรือ html[data-page] ของห้าหน้านี้) ไม่แก้กฎที่ landing และ features ใช้ และไม่มี :has()
   คลาสส่วนกลาง (.wh-h1-lg, .wh-feat-split, .wh-ready) ของหน้า features ผูกกับ html[data-page="wh-features"] จึงเขียนซ้ำที่นี่เฉพาะที่ห้าหน้านี้ใช้ */
html:is([data-page="wh-marketplace"], [data-page="wh-contact"], [data-page="wh-blog"], [data-page="wh-legal"], [data-page="wh-404"]) { scroll-padding-top: 0; }
@media (min-width: 720px) and (max-height: 639.98px) {
  html:is([data-page="wh-marketplace"], [data-page="wh-contact"], [data-page="wh-blog"], [data-page="wh-legal"], [data-page="wh-404"]) { scroll-snap-type: y mandatory; }
}

/* บทแรกไม่มีรูปถ่าย จึงต้องมีแสงของตัวเอง (หน้าแรกซ่อน #lights-ch-1 เพราะภาพคือแสง) */
body.page-wh-sub #lights-ch-1 { display: block; }

/* บรรทัดเน้นของ h1 ใช้สีเดียวกับบรรทัดเน้นของ h2 ในบท: ผสมขาวใน dark เพื่อให้ผ่าน 4.5:1 บนวงแสง */
body.page-wh-sub .wh-h1 .ln-accent { color: color-mix(in srgb, var(--cs-content-brand) 50%, #fff); }
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-sub .wh-h1 .ln-accent { color: var(--cs-content-brand); }
}
html[data-theme="light"] body.page-wh-sub .wh-h1 .ln-accent { color: var(--cs-content-brand); }
body.page-wh-sub .wh-h1 .ln-accent em,
body.page-wh-sub .wh-h2 .ln-accent em { font-style: inherit; }
body.page-wh-sub .wh-h1-lg { font-size: clamp(28px, min(4.4vw, 6.4svh), 56px); line-height: 1.25; margin: 0 0 clamp(8px, 1.6svh, 20px); }
body.page-wh-sub .wh-h1-lg .ln-accent { font-size: clamp(24px, min(3.8vw, 5.6svh), 48px); }

/* สองคอลัมน์: ข้อความฝั่งเดียวกับแสง อีกฝั่งเป็นแผงหรือรายการ */
body.page-wh-sub .wh-feat-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
body.page-wh-sub .wh-feat-split-rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
body.page-wh-sub .wh-feat-split-rev > .wh-feat-copy { order: 2; }
body.page-wh-sub .wh-feat-copy .wh-h2 { margin: 0; }
body.page-wh-sub .wh-feat-copy .wh-lede { margin: clamp(10px, 2svh, 20px) 0 0; }
body.page-wh-sub .wh-feat-copy .wh-eyebrow { margin-bottom: clamp(4px, 1svh, 12px); }
body.page-wh-sub .wh-feat-copy .wh-actions { margin-top: clamp(14px, 3svh, 32px); }
body.page-wh-sub #faq .wh-faq-list { max-width: none; gap: clamp(6px, 1.2svh, var(--cs-space-3)); }
body.page-wh-sub #faq .wh-faq-q { padding: clamp(8px, 1.6svh, var(--cs-space-4)) var(--cs-space-4); min-height: 44px; }
body.page-wh-sub #faq .wh-faq-a p { padding: 0 var(--cs-space-4) clamp(8px, 1.4svh, var(--cs-space-4)); margin: 0; }

/* แผงกระจกแบบรายการ: ใช้ซ้ำใน marketplace (สามขั้น), contact (ช่องทางติดต่อ), legal (เอกสาร), 404 (ทางไปต่อ) recipe กระจกเดียวกับ .wh-bento-card */
body.page-wh-sub .wh-panel { padding: clamp(6px, 1.2svh, 14px) clamp(16px, 2.6vw, 32px); gap: 0; max-width: 560px; width: 100%; justify-self: center; }
body.page-wh-sub .wh-panel-head { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: clamp(8px, 1.6svh, 16px) 0; border-bottom: 1px solid var(--cs-border-subtle); }
body.page-wh-sub .wh-panel-head .app { font-family: var(--cs-font-ui); font-size: var(--cs-size-eyebrow); font-weight: var(--cs-weight-regular); letter-spacing: var(--cs-tracking-eyebrow); text-transform: uppercase; color: var(--cs-content-primary); }
body.page-wh-sub .wh-panel-head .msg { font-size: var(--cs-size-body-lg); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
body.page-wh-sub .wh-rows { list-style: none; margin: 0; padding: 0; }
body.page-wh-sub .wh-rows > li + li { border-top: 1px solid var(--cs-border-subtle); }
body.page-wh-sub .wh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--cs-space-4); align-items: center; padding: clamp(7px, 1.5svh, 14px) 0; min-height: 48px; color: inherit; text-decoration: none; }
body.page-wh-sub a.wh-row:focus-visible { outline: none; box-shadow: var(--cs-focus-ring); border-radius: var(--cs-radius-md); }
body.page-wh-sub a.wh-row:hover .v { color: var(--cs-content-brand); }
body.page-wh-sub a.wh-row:hover .wh-row-tail { color: var(--cs-content-brand); }
body.page-wh-sub .wh-row .wh-bento-icon { margin: 0; }
body.page-wh-sub .wh-ready-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
body.page-wh-sub .wh-ready-text .k { font-size: var(--cs-size-thai-dense); color: var(--cs-content-tertiary); }
body.page-wh-sub .wh-ready-text .v { font-size: var(--cs-size-thai); font-weight: var(--cs-weight-medium); color: var(--cs-content-primary); transition: color 160ms ease; }
html[lang="en"] body.page-wh-sub .wh-ready-text .k { font-family: var(--cs-font-ui); }
body.page-wh-sub .wh-row-num { font-family: var(--cs-font-mono); font-size: var(--cs-size-body-dense); color: var(--cs-content-tertiary); min-width: 2ch; }
body.page-wh-sub .wh-row-tail { display: grid; place-items: center; color: var(--cs-content-tertiary); transition: color 160ms ease; }
body.page-wh-sub .wh-row-tail .ic { width: var(--cs-icon-md); height: var(--cs-icon-md); }
body.page-wh-sub .wh-cta .wh-contact-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 0.4em; }
body.page-wh-sub .wh-cta .wh-contact-alt a { display: inline-flex; align-items: center; min-height: 40px; }
body.page-wh-sub .wh-panel-note { margin: 0; max-width: none; padding: clamp(8px, 1.6svh, 14px) 0 clamp(6px, 1.2svh, 12px); border-top: 1px solid var(--cs-border-subtle); font-size: var(--cs-size-thai-dense); color: var(--cs-content-secondary); }

/* marketplace: หมวดอุปกรณ์เป็นรายการในแผงกระจกเดียว ไม่ใช่การ์ดสินค้า (ยังไม่มีราคาและไม่มีผู้ติดตั้งจริง ตามคำสั่งเจ้าของงาน 2026-10-04) */
body.page-wh-marketplace #categories .wh-section-head { max-width: 760px; margin-bottom: clamp(14px, 3.4svh, 40px); }
body.page-wh-marketplace #categories .wh-lede { font-size: clamp(14px, 0.4vw + 1.4svh, 17px); }
body.page-wh-marketplace .wh-mk-list { max-width: 720px; padding-block: clamp(2px, 0.6svh, 8px); }
body.page-wh-marketplace .wh-mk-list .wh-row { grid-template-columns: auto minmax(0, 1fr); }
body.page-wh-marketplace .wh-mk-list .wh-ready-text .v { font-size: var(--cs-size-body-lg); }

/* contact: บทข้อความ (ch1) และบทฟอร์ม (ch2) เป็นสองบทเสมอ ตั้งแต่ 720px วางแถวเดียวกันในกริดสองคอลัมน์ ต่ำกว่านั้นเป็นสองจอ
   site.js นับบทที่เริ่มตำแหน่งเดียวกันเป็นจุดเดียวในแถบจุดเอง (แนวเดียวกับ /contact ของ Cresive) */
body.page-wh-contact .wh-hf { display: contents; }
@media (min-width: 720px) {
  body.page-wh-contact .wh-hf {
    display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); column-gap: var(--cs-space-8); align-items: center;
    max-width: 1120px; margin: 0 auto;
    padding-inline: max(24px, calc(74px - max(0px, (100vw - 1200px) / 2)));
  }
  body.page-wh-contact .wh-hf > .chapter { padding-left: 0; padding-right: 0; }
  body.page-wh-contact .wh-hf > .chapter > .chapter-body > .wh-wrap { padding: 0; max-width: none; }
}
@media (min-width: 1024px) { body.page-wh-contact .wh-hf { column-gap: var(--cs-space-12); } }
body.page-wh-contact .wh-contact-card { margin: clamp(14px, 3.4svh, 36px) 0 0; max-width: 440px; justify-self: start; }
body.page-wh-contact .wh-row-mail { overflow-wrap: anywhere; }
body.page-wh-contact .wh-form-panel { padding: clamp(14px, 2.6svh, 28px) clamp(16px, 2.4vw, 32px); gap: 0; max-width: 640px; width: 100%; margin-inline: auto; }
body.page-wh-contact .wh-form-head { margin: 0 0 clamp(10px, 2svh, 18px); }
body.page-wh-contact .wh-form-title { margin: 0; font-family: var(--cs-font-thai); font-weight: var(--cs-weight-semibold); font-size: clamp(18px, 0.8vw + 1.2svh, 24px); color: var(--cs-content-primary); }
html[lang="en"] body.page-wh-contact .wh-form-title { font-family: var(--cs-font-ui); }
body.page-wh-contact .wh-form-intro { margin: var(--cs-space-2) 0 0; font-size: var(--cs-size-thai-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); max-width: none; }
body.page-wh-contact .wh-form-grid { gap: clamp(8px, 1.6svh, 16px) var(--cs-space-4); margin-bottom: clamp(8px, 1.6svh, 14px); }
body.page-wh-contact .wh-field label { font-size: var(--cs-size-thai-dense); }
body.page-wh-contact .wh-input { min-height: 48px; background: var(--cs-surface-glass); border-color: var(--cs-border-default); }
body.page-wh-contact textarea.wh-input { min-height: clamp(64px, 11svh, 110px); padding-block: var(--cs-space-3); }
body.page-wh-contact .wh-error { font-size: var(--cs-size-thai-dense); }
body.page-wh-contact .wh-notice { margin: 0 0 clamp(8px, 1.6svh, 14px); max-width: none; }
body.page-wh-contact .wh-form-actions { display: flex; flex-direction: column; gap: var(--cs-space-2); }
body.page-wh-contact .wh-submit { width: 100%; min-height: 48px; }
body.page-wh-contact .wh-form-status:empty { display: none; }
@media (max-width: 899.98px) { body.page-wh-contact .wh-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* blog: ยังไม่มีบทความ จึงเป็นแผงกระจกแผงเดียวที่บอกตรงๆ */
body.page-wh-blog .wh-blog-panel { gap: clamp(8px, 1.6svh, 14px); padding: clamp(20px, 4svh, 40px) clamp(18px, 3vw, 36px); align-items: flex-start; }
body.page-wh-blog .wh-panel-title { margin: 0; font-family: var(--cs-font-thai); font-size: var(--cs-size-heading); font-weight: var(--cs-weight-semibold); color: var(--cs-content-primary); }
html[lang="en"] body.page-wh-blog .wh-panel-title { font-family: var(--cs-font-ui); }
body.page-wh-blog .wh-blog-panel p { max-width: none; font-size: var(--cs-size-thai); line-height: var(--cs-leading-relaxed); }
body.page-wh-blog .wh-blog-panel .wh-btn { margin-top: clamp(4px, 1svh, 10px); align-self: flex-start; }

/* legal index: เอกสารสองฉบับเป็นแถวลิงก์ในแผงเดียว คำอธิบายอยู่ใต้ชื่อ */
body.page-wh-legal .wh-docs { max-width: 600px; }
body.page-wh-legal .wh-docs .wh-ready-text .k { color: var(--cs-content-secondary); }
body.page-wh-legal .wh-docs .wh-ready-text .v { order: -1; font-size: var(--cs-size-body-lg); font-weight: var(--cs-weight-semibold); }
body.page-wh-legal .wh-docs .wh-row { align-items: start; padding-block: clamp(10px, 2svh, 18px); }
body.page-wh-legal .wh-docs .wh-row-tail { padding-top: 2px; }

/* 404: เลขใหญ่เป็นตัวบอกสถานะ ส่วนทางไปต่อเป็นแผงรายการ */
body.page-wh-404 .chapter .wh-404-number { color: color-mix(in srgb, var(--cs-content-brand) 50%, #fff); }
@media (prefers-color-scheme: light) { html[data-theme="auto"] body.page-wh-404 .chapter .wh-404-number { color: var(--cs-content-brand); } }
html[data-theme="light"] body.page-wh-404 .chapter .wh-404-number { color: var(--cs-content-brand); }
body.page-wh-404 .wh-404-number { font-size: clamp(44px, min(8vw, 11svh), 96px); margin: 0 0 clamp(4px, 1.2svh, 12px); }
body.page-wh-404 .wh-nf-links { max-width: 420px; }

@media (max-width: 900px) {
  body.page-wh-sub .wh-feat-split, body.page-wh-sub .wh-feat-split-rev { grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 3svh, 28px); }
  body.page-wh-sub .wh-feat-split-rev > .wh-feat-copy { order: 0; }
}

/* ─── หน้าย่อยบนมือถือ (< 720px): บทต้องจบเหนือแถบจุดบท รูปแบบเปลี่ยนตามที่ว่าง ไม่ใช่แค่ย่อ ───
   marketplace: หมวดอุปกรณ์เหลือแถวละไอคอนกับชื่อ ตัดบรรทัดอธิบาย; hero ตัดป้ายเล็กของแต่ละแถวออกแนวเดียวกับหน้า features */
@media (max-width: 719.98px) {
  body.page-wh-marketplace #categories .wh-lede { font-size: 13px; line-height: 1.45; }
  body.page-wh-marketplace #categories .wh-section-head { margin-bottom: 12px; }
  body.page-wh-marketplace .wh-mk-list .wh-ready-text .k { display: none; }
}
@media (max-width: 560px) {
  body.page-wh-sub .wh-panel-steps .wh-ready-text .k { display: none; }
  body.page-wh-sub .wh-panel { padding-inline: 16px; }
  body.page-wh-sub .wh-row { gap: var(--cs-space-3); padding-block: 6px; }
  body.page-wh-sub .wh-row .wh-bento-icon { width: 32px; height: 32px; }
  body.page-wh-sub .wh-row .wh-bento-icon .ic { width: 18px; height: 18px; }
  body.page-wh-sub .wh-feat-copy .wh-actions { gap: var(--cs-space-2); }
  body.page-wh-sub .wh-feat-copy .wh-btn { min-height: 44px; padding: 0 var(--cs-space-5); }
}
@media (max-width: 560px) and (max-height: 740px) {
  body.page-wh-sub #overview .wh-eyebrow { display: none; }
  body.page-wh-marketplace #overview .wh-lede { display: none; }
}
@media (max-width: 719.98px) and (max-height: 700px) {
  body.page-wh-marketplace #categories .wh-section-head { margin-bottom: 8px; }
}

/* contact: ช่องเลือกหัวข้อที่วาดเอง (form-controls.css) สูงเท่าช่องกรอกอื่น 48px ทุกขนาดจอ และลิงก์ในประโยคแจ้งการใช้ข้อมูลมีพื้นที่แตะ 40px+ โดยไม่ดันบรรทัด */
body.page-wh-contact .cs-select-btn { height: 48px; min-height: 48px; padding-block: 0; background: var(--cs-surface-glass); }
body.page-wh-contact .wh-notice a { display: inline-block; padding-block: 12px; margin-block: -12px; }
body.page-wh-contact textarea.wh-input { height: clamp(64px, 11svh, 110px); }

/* contact บนมือถือ: บทฟอร์มต้องจบเหนือแถบจุดบท สามระดับตามความสูงจอ ช่องกรอกสูง 48px เสมอ ไม่ตัด label */
@media (max-width: 719.98px) {
  body.page-wh-contact .wh-form-panel { padding: 16px; border-radius: var(--cs-radius-lg); }
  body.page-wh-contact .wh-form-head { margin-bottom: 10px; }
  body.page-wh-contact .wh-form-grid { gap: 10px; margin-bottom: 8px; }
  body.page-wh-contact .wh-field { gap: 4px; }
  body.page-wh-contact .wh-field label { line-height: 1.4; }
  body.page-wh-contact .wh-notice { margin-bottom: 10px; font-size: 13px; line-height: 1.45; }
  body.page-wh-contact textarea.wh-input { height: clamp(64px, 9svh, 88px); min-height: 0; }
}
@media (max-width: 719.98px) and (max-height: 760px) {
  body.page-wh-contact .wh-form-intro { display: none; }
  body.page-wh-contact .wh-form-head { margin-bottom: 8px; }
  body.page-wh-contact .wh-form-grid { gap: 8px; margin-bottom: 6px; }
  body.page-wh-contact .wh-form-panel { padding: 14px; }
  body.page-wh-contact textarea.wh-input { height: 64px; }
  body.page-wh-contact .wh-notice { margin-bottom: 8px; }
}
@media (max-width: 719.98px) and (max-height: 700px) {
  body.page-wh-contact .wh-form-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  body.page-wh-contact .wh-form-panel { padding: 12px 14px; }
  body.page-wh-contact .wh-form-grid { gap: 6px; margin-bottom: 4px; }
  body.page-wh-contact .wh-field { gap: 3px; }
  body.page-wh-contact .wh-field label { font-size: 13px; line-height: 1.3; }
  body.page-wh-contact textarea.wh-input { height: 56px; }
  body.page-wh-contact .wh-notice { font-size: 12.5px; line-height: 1.35; margin-bottom: 6px; }
}

/* กฎของ landing (@media 560 x 740: .wh-bento-card:not(.wh-bento-tall) p { display: none }) ซ่อนทุกย่อหน้าในแผงกระจกบนมือถือเตี้ย ซึ่งในห้าหน้านี้คือเนื้อหาจริง
   (ข้อเท็จจริงผู้ติดตั้ง, ประโยคแจ้งการใช้ข้อมูล, แผงบทความ, หมายเหตุคุกกี้) จึงคืนการแสดงผลเฉพาะรายการเหล่านี้ ส่วนที่ซ่อนโดยตั้งใจ (บรรทัดอธิบายของหมวดอุปกรณ์บนมือถือ) ไม่ถูกแตะ */
@media (max-width: 560px) and (max-height: 740px) {
  body.page-wh-marketplace .wh-market-facts li > p,
  body.page-wh-contact .wh-form-panel .wh-notice,
  body.page-wh-blog .wh-blog-panel p,
  body.page-wh-sub .wh-panel-note { display: block; }
  body.page-wh-marketplace .wh-market-facts li > p { display: flex; }
}

/* 404 และ legal บนมือถือเตี้ย: ประโยคนำตามออกเหลือเลข หัวข้อ ปุ่ม และทางไปต่อ (ข้อความเดิมยังอยู่ใน DOM) */
@media (max-width: 560px) and (max-height: 700px) {
  body.page-wh-404 #notfound .wh-lede { display: none; }
}
body.page-wh-contact .wh-submit { font-weight: var(--cs-weight-medium); }
body.page-wh-sub .wh-bento-card a.wh-btn { text-decoration: none; }
body.page-wh-sub .wh-bento-card a.wh-btn.wh-btn-secondary { color: var(--cs-content-primary); }
@media (max-width: 560px) and (max-height: 740px) {
  body.page-wh-legal #overview .wh-lede { display: none; }
}

/* contact: ปุ่ม dropdown ที่วาดเอง (.cs-select-btn) ถูก ".wh button { border: none; background: none }" ตัดขอบ จึงตั้งซ้ำให้เหมือน .wh-input ทุกสถานะ (ขอบ พื้น focus error) */
body.page-wh-contact .cs-select-btn {
  border: var(--cs-border-hairline) solid var(--cs-border-default); border-radius: var(--cs-radius-md);
  background: var(--cs-surface-glass); color: var(--cs-content-primary);
}
body.page-wh-contact .cs-select-btn:hover { border-color: var(--cs-border-default); }
body.page-wh-contact .cs-select-btn:focus-visible,
body.page-wh-contact .cs-select.open .cs-select-btn { outline: none; border-color: var(--cs-border-focus); background: var(--cs-surface-glass); box-shadow: var(--cs-focus-ring); }
body.page-wh-contact .cs-select-btn[aria-invalid="true"] { border-color: var(--cs-status-error-border); background: var(--cs-status-error-surface); }
body.page-wh-contact .wh-input:focus-visible { border-color: var(--cs-border-focus); background: var(--cs-surface-glass); }
body.page-wh-contact .wh-input[aria-invalid="true"] { border-color: var(--cs-status-error-border); background: var(--cs-status-error-surface); }

/* โลโก้ในธีมสว่าง: symbol ใช้ #119778 ตามชุด on-light (wizehome-horizontal-onlight.svg) แทน #19B08D ที่จางบนพื้นสว่าง
   wordmark ใช้ var(--cs-content-primary) อยู่แล้ว จึงเป็นหมึกเข้มเองในธีมสว่าง ไม่ต้องแตะ markup ใน partial */
@media (prefers-color-scheme: light) {
  html[data-brand="wizehome"][data-theme="auto"] svg [fill="#19B08D"] { fill: #119778; }
}
html[data-brand="wizehome"][data-theme="light"] svg [fill="#19B08D"] { fill: #119778; }

/* หน้ากฎหมายไม่มีรูปในส่วนหัว: ชั้น wash ของ .wh-hero (z-index 1) จึงไม่มีอะไรให้บัง แต่ไปทับหัวข้อที่ไม่มี z-index
   จนข้อความจางเกือบหาย ทั้งธีมสว่าง (ขาวทับตัวเข้ม) และธีมมืด (เข้มทับตัวสว่าง) ปิดชั้นนี้เฉพาะหน้ากฎหมายทุกธีม ชั้นนี้เป็น absolute จึงไม่กระทบ geometry */
body.page-wh-legal .wh-hero::before { display: none; }

/* หน้ากฎหมาย (privacy, terms): ตัวบอกตำแหน่งในสารบัญใช้รูปแบบเดียวกับหน้ากฎหมายของ Cresive ทุกจุด
   จอ >= 720: เส้นแนวตั้งเส้นเดียว จุดต่อหัวข้อ หัวข้อปัจจุบันเป็นวงแหวน 14px แสดงหัวข้อแรก สุดท้าย และข้างเคียงอย่างละ 2 ที่เหลือพับเป็นจุดเล็กสามจุด
   จอเล็ก: ปุ่มพับเปิดแผงรายการเต็ม พฤติกรรมมาจาก legal.js ตัวเดียวกับ Cresive (ไม่แก้ไฟล์ร่วม) ต่างกันเฉพาะสีแบรนด์ที่มาจาก token ของธีม
   เลขหัวข้อและหัวข้อ h2 ใช้ตัวอักษร ขนาด และระยะเดียวกับ Cresive เพื่อให้เลขอยู่ตำแหน่งเดียวกัน */
body.page-wh-legal .wh-legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--cs-space-8); }
body.page-wh-legal .legal-toc { position: sticky; top: calc(var(--wh-nav-h) + var(--cs-space-4)); }
body.page-wh-legal .legal-toc-toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between; gap: var(--cs-space-3);
  min-height: 48px; padding: 0 var(--cs-space-4); margin-bottom: var(--cs-space-3);
  border: 1px solid var(--cs-border-subtle); border-radius: var(--cs-radius-lg);
  background: var(--cs-surface-glass); color: var(--cs-content-primary);
  font-family: var(--cs-font-thai); font-size: var(--cs-size-thai); font-weight: var(--cs-weight-semibold);
  cursor: pointer;
}
body.page-wh-legal .legal-toc-toggle .ic { flex: none; transition: rotate var(--cs-duration-base) var(--cs-ease-standard); }
body.page-wh-legal .legal-toc-list {
  list-style: none; margin: 0; padding: var(--cs-space-2) 0 var(--cs-space-2) var(--cs-space-4);
  border-left: 1px solid var(--cs-border-subtle);
  display: flex; flex-direction: column; gap: var(--cs-space-1);
  max-height: calc(100svh - var(--wh-nav-h) - var(--cs-space-8));
  overflow-y: auto;
}
body.page-wh-legal .legal-toc-list a {
  display: block; padding: var(--cs-space-2) var(--cs-space-3);
  border-radius: var(--cs-radius-sm); text-decoration: none;
  font-family: var(--cs-font-thai); font-size: var(--cs-size-thai-dense); color: var(--cs-content-primary);
  transition: color var(--cs-duration-base) var(--cs-ease-standard), font-style var(--cs-duration-base) var(--cs-ease-standard);
}
body.page-wh-legal .legal-toc-list a:hover, body.page-wh-legal .legal-toc-list a:focus-visible { color: var(--cs-content-brand); background: none; }
body.page-wh-legal .legal-toc-list a:focus-visible { outline: none; box-shadow: var(--cs-focus-ring); }
body.page-wh-legal .legal-toc-list a[aria-current="true"] { color: var(--cs-content-brand); }
body.page-wh-legal .legal-doc .legal-section { margin-bottom: clamp(11px, calc(11px + 29 * (100svh - 640px) / 260), 40px); padding-bottom: clamp(11px, calc(11px + 29 * (100svh - 640px) / 260), 40px); border-bottom: 1px solid var(--cs-border-subtle); scroll-margin-top: calc(var(--wh-nav-h) + var(--cs-space-4)); }
body.page-wh-legal .legal-doc .legal-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body.page-wh-legal .legal-doc h2 {
  display: block; font-family: var(--cs-font-thai); font-weight: var(--cs-weight-semibold); font-size: clamp(20px, 1.4vw + 1svh, 28px);
  margin: 0 0 var(--cs-space-4); scroll-margin-top: calc(var(--wh-nav-h) + var(--cs-space-4));
}
body.page-wh-legal .legal-doc h2 .legal-section-no { font-family: inherit; font-size: inherit; font-weight: var(--cs-weight-regular); margin-right: var(--cs-space-2); }
@media (max-width: 719.98px) {
  body.page-wh-legal .wh-legal-layout { display: block; }
  body.page-wh-legal .legal-toc { position: static; margin-bottom: clamp(9px, calc(9px + 23 * (100svh - 640px) / 260), 32px); }
  body.page-wh-legal .legal-toc-toggle { display: flex; }
  body.page-wh-legal .legal-toc-list {
    border-left: 0; padding: var(--cs-space-2); max-height: none; overflow: visible;
    border: 1px solid var(--cs-border-subtle); border-radius: var(--cs-radius-lg); background: var(--cs-surface-glass);
    display: none;
  }
  body.page-wh-legal .legal-toc[data-open] .legal-toc-list { display: flex; }
  body.page-wh-legal .legal-toc[data-open] .legal-toc-toggle .ic { rotate: 180deg; }
}
@media (min-width: 720px) {
  body.page-wh-legal .legal-toc-list { position: relative; max-height: none; overflow: visible; border-left: 0; padding: var(--cs-space-2) 0; gap: 0; }
  body.page-wh-legal .legal-toc-list::before {
    content: ""; position: absolute; left: 6px; top: var(--cs-space-4); bottom: var(--cs-space-4); width: 1px;
    background: linear-gradient(var(--cs-border-subtle), var(--cs-border-subtle));
  }
  body.page-wh-legal .legal-toc-list li { position: relative; }
  body.page-wh-legal .legal-toc-list li[data-far] { display: none; }
  body.page-wh-legal .legal-toc-list a {
    position: relative; display: flex; align-items: center; gap: var(--cs-space-3);
    min-height: 40px; padding: var(--cs-space-1) var(--cs-space-2) var(--cs-space-1) 0;
    color: var(--cs-content-secondary);
  }
  body.page-wh-legal .legal-toc-list a::before {
    content: ""; flex: none; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle, var(--cs-action-primary) 0 2.5px, transparent 3px);
    border: 1.5px solid transparent;
    transition: border-color var(--cs-duration-base) var(--cs-ease-standard);
  }
  body.page-wh-legal .legal-toc-list a[aria-current="true"] { color: var(--cs-content-primary); font-weight: var(--cs-weight-semibold); }
  body.page-wh-legal .legal-toc-list a[aria-current="true"]::before { border-color: var(--cs-action-primary); }
  body.page-wh-legal .legal-toc-list a:hover, body.page-wh-legal .legal-toc-list a:focus-visible { color: var(--cs-content-brand); }
  body.page-wh-legal .legal-toc-list li[data-gap-after]::after {
    content: ""; display: block; width: 14px; height: 20px;
    background: radial-gradient(circle, var(--cs-content-tertiary) 0 1.2px, transparent 1.6px) center / 14px 6px repeat-y;
  }
}

/* หน้ากฎหมายธีมมืด: สระแสงขาวอุ่น (.spot-pool) ยกพื้นหลังแผงเอกสารและหัวข้อขึ้นเป็นเทากลาง (วัดได้ 55-87 จาก 10) ข้อความรอง เลขลำดับ และคำเน้นในหัวข้อเหลือ
   contrast ต่ำกว่า 4.5:1 หรี่สระเหลือ 0.4 เท่ากับที่หน้า auth ทำ แสงยังอยู่แต่ไม่ยกพื้น */
body.page-wh-legal { --spot-o: 0.4; }
/* รายการเอกสารบนดัชนีกฎหมาย: เลขลำดับใช้ tertiary และคำอธิบายบรรทัดรองใช้ secondary บนแผงกระจกที่พื้นหลังสว่างขึ้นเป็น 48-57 (ธีมมืด) จึงได้ 3.4-4.3:1
   ยกเลขลำดับและคำอธิบายเป็น primary ให้ถึง 4.5:1 ขึ้นไป (ธีมสว่างเดิมผ่านแล้ว สีเดียวกันยังอ่านชัดบนพื้นสว่าง) */
body.page-wh-legal .wh-docs .wh-row-num { color: var(--cs-content-primary); }
body.page-wh-legal .wh-docs .wh-ready-text .k { color: var(--cs-content-primary); }
/* หัวข้อ /legal ธีมสว่าง: คำเน้นสี brand บนพื้นเทาอ่อนของตารางได้ 4.48:1 ในภาษาไทย ลดความสว่างลงเล็กน้อยให้ถึง 4.5:1 */
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body.page-wh-legal .wh-h1 em { color: color-mix(in srgb, var(--cs-content-brand) 88%, #000); }
}
html[data-theme="light"] body.page-wh-legal .wh-h1 em { color: color-mix(in srgb, var(--cs-content-brand) 88%, #000); }

/* ─── เมนูหลักเมื่อไม่มี JS (WizeHome) ───────────────────────────────────────
   เหมือนกฎท้าย site.css แต่ต้องเจาะจงกว่ากฎ html:not(.js)[data-brand="wizehome"] .mobile-menu { display: none } ด้านบน
   จอแคบกว่า 1024px แสดงรายการลิงก์ในโฟลว์ใต้แถบนำทาง ผู้เปิด JS ไม่เห็นกฎนี้ */
@media (max-width: 1023.98px) {
  html:not(.js)[data-brand="wizehome"] .mobile-menu {
    display: flex; position: static; inset: auto; z-index: auto;
    opacity: 1; visibility: visible; pointer-events: auto; overflow: visible;
    padding-bottom: var(--cs-space-4); transition: none;
  }
  html:not(.js)[data-brand="wizehome"] .mobile-menu > * { opacity: 1; translate: none; transition: none; }
}
