/* Hallmark · shape: Ecosystem Index (kept from the Halftone build) · genre: editorial · theme: Editorial (by request) · redesign: polish (inner pages: layout kept), full (homepage: rebuilt and swept with the layout gates on)
 * hero: Stage · nav: search-led bar · footer: statement · imagery: photographs, the owner's own, natural sat=-10 · signature: the Power List set as a contents page, the order as the cover line
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · job: visit (find a shop, then order) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, same markup as the Halftone build by design so the owner can compare looks; the hero drops the colour slab for a photo cut to the column edge */
/* Hallmark · waive 37 · Bricolage carries the heads and labels, Source Serif 4 the reading text, Anuphan only sets Thai script · Source Serif and Bricolage have no Thai glyphs */
/* Hallmark · waive 83 · the photographs are the owner's own shop and recipe pictures, the reason the guide exists · the Power List and kit photos run small with their facts */
/* Hallmark · waive 44c · the search block and its Try row sit in the text column under the actions, and the photo runs the full column height to the edge · the measured text block stops at the actions, so the centres read 75px apart while the columns align top and bottom */
/* Hallmark · waive 59 · the Power List starts 80px under the hero so the contents page meets the fold · every other seam is 217px or more */
/* Hallmark · dismissed 25 · the footer line is one standfirst sentence at 28ch; the city and Brew Guide lines are two-sentence ledes, which may sit from 28ch */
/* Hallmark · answered F4 · each Amazon button sells a different product in the starter kit; the hero keeps the one filled action above the fold */
/* Hallmark · answered F21 · the footer column names are h4 in the shared footer markup on 74 pages; they are sized as labels in CSS */
/* Hallmark · answered F7 · the shared skin gives one recipe per role on purpose: every legacy button, table and well across 74 pages reads as the same printed part */
/* Hallmark · dismissed 23 · the flagged rules are buttons, a few hundred pixels each, never a viewport-scale fill */
/* Hallmark · reworded the announcement script's link from '+S[2]+' to '+S[1]+' · 30a named the emoji its first slot held; the same seasonal links render */
/* Hallmark · waive 49b · links inside article sentences (which mix to buy, the curdling fix, why is my Thai tea bitter) wrap at 320px · a link in running prose wraps with its sentence, two lines at most */
/* Hallmark · waive 39b · the phrase cards on How to Order are 109 to 126px buttons that hold a Thai phrase big enough to show a vendor across a counter · every other control on the site sits at 44 to 52px */
/* Hallmark · polish 19 Nov 2026 · inner pages: arrows, emoji, dashes, eyebrows (moved below their heads as captions), tracked caps, colour and font literals tokenised, spacing snapped to the 4px scale, image grids on minmax(0, 1fr) */
/* Hallmark · dropped the eyebrows (Visiting Thailand?, Visitor toolkit, Beyond the malls, Where to drink, Make it at home, What you need, Troubleshooting, Go deeper, About Chaayen) · 54 names them */
/* Hallmark · dropped two Bangkok & beyond thumbnails (new-thai-tea-bangkok-2026.jpg, powerlist/hero.jpg) · their links live in the city tiles; the ordering photo leads the city column and the latte photo sits in the Brew Guide well */
@import url("./tokens.css");
@import url("./base.css");

:root, html:root {
  --font-wordmark: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --font-body: "Source Serif 4", "Anuphan", ui-serif, Georgia, serif;
  --font-display: "Bricolage Grotesque", "Anuphan", ui-sans-serif, sans-serif;
  --font-label: "Bricolage Grotesque", "Anuphan", ui-sans-serif, sans-serif;
  --color-accent-deep: oklch(40% 0.115 152); --color-wordmark: oklch(60% 0.17 50);
  --rule-bar: var(--rule-heavy); --radius-input: 0;
  --font-thai: "Anuphan", ui-sans-serif, sans-serif;
  --text-body: 1.125rem;
  --text-hero: clamp(2.75rem, 3.6vw + 1rem, 5rem);
  --read: 46rem;
  --nav-h: 72px;
  /* legacy names, re-pointed so every page's own inline rules adopt the Halftone palette */
  --bg: var(--color-paper); --surface: var(--color-paper-2); --line: var(--color-rule);
  --c-ink: var(--color-ink); --c-body: var(--color-ink-2); --c-muted: var(--color-muted);
  --action: var(--color-ink); --action-h: var(--color-ink-2); --action-tint: var(--color-paper-2); --action-ink: var(--color-accent-deep);
  --pandan: var(--color-ink); --pandan-tint: var(--color-paper-2);
  --gold: var(--color-ink); --on-dark: var(--color-paper);
  --f-head: var(--font-display); --f-body: var(--font-body);
  --sh: none; --sh-h: none;
  --tea: var(--color-ink); --tea-soft: var(--color-ink-2); --orange: var(--color-ink); --orange-deep: var(--color-accent-deep);
  --milk: var(--color-paper-2); --milk-dim: var(--color-paper-3); --ink: var(--color-ink); --paper: var(--color-paper); --radius: 0;
  --accent: var(--color-ink); --primary: var(--color-ink); --dark: var(--color-ink); --light-gray: var(--color-paper-2);
  --text-muted: var(--color-muted); --border-color: var(--color-rule); --card-bg: var(--color-paper);
}

/* ---------- Base, every page ---------- */
html body { background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: var(--text-body); line-height: 1.55; }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--color-ink); letter-spacing: var(--tracking-display); line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
html body summary { font-family: var(--font-label); }
html body :is(h1, h2, h3, h4, .hm-pl-n, .hm-pl-name b, .hm-pl-order b, .hm-now-row time, .hm-now-what b, .hm-fig, .hm-rail b, .hm-poster-n, .hm-poster-u, .hm-rows a > b, .hm-cart strong, .kl-card b, .wn-card b, .product strong, .chycalc-head > strong) { font-stretch: 75%; font-weight: var(--display-weight); font-variant-numeric: lining-nums tabular-nums; }
html body { font-optical-sizing: auto; font-variant-numeric: oldstyle-nums; }
html body a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
html body a:hover { color: var(--color-accent-deep); }
html body img { border-radius: 0; }
html body strong, html body b { color: var(--color-ink); font-weight: 600; }
html body [lang="th"], html body .chy-logo::after { font-family: var(--font-thai); }
html body :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Announcement line ---------- */
html body .announce, html body .chy-announce { display: block; background: var(--color-paper-2) !important; color: var(--color-ink) !important; font: 600 var(--text-sm)/1.4 var(--font-label); text-align: center; padding: var(--space-xs) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
html body .announce a, html body .chy-announce a { color: var(--color-ink) !important; font-weight: 600; }
@media (max-width: 60rem) { html body .announce .ann-x { display: none; } }

/* ---------- Nav: a search-led bar on the cream, an ink rule under it ---------- */
html body .chy-nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-ink); font-family: var(--font-label); box-shadow: none; backdrop-filter: none; }
html body .chy-nav-inner { max-width: var(--container); min-height: var(--nav-h); margin-inline: auto; padding: 0 var(--gutter); gap: var(--space-md); }
html body .chy-logo { font-family: var(--font-wordmark); font-weight: 800; font-size: 1.4375rem; letter-spacing: -0.03em; color: var(--color-ink); text-decoration: none; }
html body .chy-logo span, html body .chy-logo b { color: var(--color-ink); font-weight: 800; text-transform: lowercase; }
html body .chy-logo b, html body .cf-logo b { color: var(--color-wordmark); }
html body .chy-logo::after { content: "ชาเย็น"; font: 500 var(--text-xs) var(--font-thai); color: var(--color-muted); letter-spacing: 0; margin-left: var(--space-2xs); }
html body .chy-menu a, html body .chy-drop-toggle { color: var(--color-ink); font: 600 0.9375rem/1.2 var(--font-label); letter-spacing: 0 !important; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); text-decoration: none; }
html body .chy-menu a:hover { color: var(--color-ink); background: var(--color-paper-2); }
html body .chy-submenu { background: var(--color-paper); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; box-shadow: none; padding: var(--space-xs); }
html body .chy-submenu a { border-radius: 0; padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); }
html body .chy-sub-sep { display: block; color: var(--color-muted); font: 600 var(--text-xs) var(--font-label); letter-spacing: 0; text-transform: none; padding: var(--space-sm) var(--space-sm) var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-2xs); }
html body .chy-cta { background: transparent !important; color: var(--color-ink) !important; border: 0 !important; border-bottom: var(--rule-hair) solid var(--color-ink) !important; border-radius: 0 !important; padding: var(--space-2xs) 0 !important; margin-left: var(--space-xs); font-weight: 600; white-space: nowrap; }
html body .chy-cta:hover { color: var(--color-accent-deep) !important; background: transparent !important; }
html body .chy-search-btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; min-width: 11rem; padding: 0 var(--space-md); background: var(--color-paper); color: var(--color-ink); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-input); font: 600 var(--text-sm) var(--font-label); box-shadow: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
html body .chy-search-btn:hover { background: var(--color-paper-2); color: var(--color-ink); border-color: var(--color-ink); }
html body .chy-search-btn:active { background: var(--color-paper-3); }
html body .chy-search-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
html body .chy-burger span { background: var(--color-ink); }
@media (max-width: 1100px) { html body .chy-search-btn { min-width: 0; } }
@media (max-width: 900px) {
  html body .chy-menu { background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-ink); box-shadow: none; }
  html body .chy-menu a { padding: var(--space-sm); font-size: var(--text-md); }
  html body .chy-submenu { border: 0; padding: 0 0 var(--space-xs) var(--space-sm); }
}

/* ---------- Footer: one closing statement, the links beneath ---------- */
html body footer.chy-foot { background: var(--color-ink); color: var(--color-paper); text-align: left; padding: var(--space-3xl) 0 var(--space-xl); margin-top: var(--section-gap-s); font-size: var(--text-sm); border-top: 0; opacity: 1 !important; }
html body .chy-foot a { color: var(--color-paper); text-decoration: none; }
html body .chy-foot a:hover { color: var(--color-paper); text-decoration: underline; text-decoration-color: var(--color-accent); }
html body .cf-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: var(--space-xl) var(--gap-columns); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { html body .cf-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body .cf-brand { grid-column: 1 / -1; display: grid; gap: var(--space-md); padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-muted); }
html body .cf-logo { font: 800 1.5rem var(--font-wordmark); letter-spacing: -0.03em; color: var(--color-paper) !important; text-transform: lowercase; }
html body .cf-logo b { color: var(--color-wordmark); }
html body .cf-brand p { font: 400 var(--text-display-s)/1.2 var(--font-body); color: var(--color-paper); max-width: 28ch; margin: 0; text-wrap: balance; }
html body .cf-cta { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; background: transparent !important; color: var(--color-paper) !important; font-weight: 600; padding: var(--space-2xs) 0; border-bottom: var(--rule-hair) solid var(--color-paper); border-radius: 0; }
html body .cf-col { display: flex; flex-direction: column; gap: var(--space-xs); }
html body .cf-col h4 { font: 600 var(--text-sm) var(--font-label); color: var(--color-paper); letter-spacing: 0; text-transform: none; margin: 0 0 var(--space-2xs); }
html body .cf-col a { color: var(--color-rule); white-space: nowrap; }
@media (max-width: 25rem) { html body .cf-inner { grid-template-columns: minmax(0, 1fr); } }
html body .cf-share { max-width: var(--container); margin: var(--space-2xl) auto 0; padding: var(--space-md) var(--gutter) 0; border-top: var(--rule-hair) solid var(--color-muted); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); align-items: center; color: var(--color-rule); font-size: var(--text-sm); }
html body .cf-bottom { max-width: var(--container); margin: 0 auto; padding: var(--space-sm) var(--gutter) 0; color: var(--color-rule); font-size: var(--text-xs); }
html body .cf-bottom p { margin: 0 0 var(--space-xs); max-width: 72ch; }
html body .chy-legal-links { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------- Article template (.wrap article) ---------- */
html body article.wrap { max-width: var(--read); margin-inline: auto; padding: var(--space-xl) var(--space-lg) var(--space-2xl) !important; }
html body article.blog-post { padding-bottom: var(--space-2xl); }
html body .crumbs { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-sm); opacity: 1; }
html body .crumbs a { color: var(--color-muted); text-decoration: none; }
html body .crumbs a:hover { color: var(--color-ink); text-decoration: underline; }
html body article h1, html body .post-header h1 { font-size: var(--text-display-s); max-width: 22ch; margin: 0 0 var(--space-md); }
html body article.wrap h2, html body article.blog-post h2 { font-size: var(--text-2xl); margin: var(--space-2xl) 0 var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-ink); scroll-margin-top: calc(var(--nav-h) + var(--space-md)); }
html body article.wrap h3, html body article.blog-post h3 { font-size: var(--text-title); color: var(--color-ink) !important; margin: var(--space-xl) 0 var(--space-xs); }
html body article.wrap h2::before, html body article.wrap h2::after, html body article.blog-post h2::before, html body article.blog-post h2::after { display: none !important; }
html body .byline { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); color: var(--color-muted); font-size: var(--text-sm); padding: var(--space-sm) 0; border-top: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); margin: var(--space-2xs) 0 var(--space-lg); opacity: 1; }
html body .byline span { opacity: 1; }
html body .lede { font-size: var(--text-lead); color: var(--color-ink-2); line-height: 1.5; }
html body .lede::first-letter { all: unset; }
html body article > img, html body article p > img, html body .chy-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; outline: var(--rule-hair) solid var(--color-ink); outline-offset: calc(-1 * var(--rule-hair)); margin: var(--space-xs) 0 var(--space-lg); }
html body .chy-fig { margin: var(--space-lg) 0; background: none; border: 0; padding: 0; }
html body .chy-fig figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: calc(-1 * var(--space-sm)); }
html body .chy-fig svg { display: block; width: 100%; height: auto; margin-bottom: var(--space-xs); }
html body article.wrap ul, html body article.wrap ol { padding-left: var(--space-lg); margin-left: 0; }
html body article li::marker { color: var(--color-accent-deep); }
html body .stars { display: none; }

/* Jump to recipe */
html body .chyjr-wrap { margin: var(--space-sm) 0 var(--space-md); }
html body .chyjr-btn, html body .jump .btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); background: var(--color-ink); color: var(--color-paper) !important; font: 600 var(--text-md)/1 var(--font-label); border-radius: var(--radius-input); box-shadow: none; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
html body .chyjr-btn:hover { background: var(--color-ink-2); }
html body .jump .ghost, html body .btn-ghost { background: transparent !important; color: var(--color-ink) !important; border: 0 !important; border-bottom: var(--rule-hair) solid var(--color-ink) !important; border-radius: 0 !important; }

/* Table of contents: a well */
html body nav.toc, html body .toc { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; padding: var(--space-md) var(--space-lg); margin: var(--space-xs) 0 var(--space-xl); box-shadow: none; }
html body .toc-h { font: 600 var(--text-sm) var(--font-label) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--color-ink) !important; margin: 0 0 var(--space-xs) !important; }
html body .toc ol { counter-reset: none; columns: 1; margin: 0; padding-left: var(--space-lg); font-size: 0.9375rem; line-height: 1.85; }
@media (min-width: 900px) { html body .toc ol { columns: 2; column-gap: var(--space-xl); } }
html body .toc li { margin: 0; padding: 0; break-inside: avoid; }
html body .toc li::before { display: none !important; }
html body .toc a { color: var(--color-ink-2); text-decoration: none; }
html body .toc a:hover { color: var(--color-ink); text-decoration: underline; }

/* Quick answer: ruled, the label in bold */
html body .chy-answer { background: var(--color-paper-2); border: 0; border-top: var(--rule-bar) solid var(--color-ink); border-radius: 0; padding: var(--space-md) var(--space-lg); margin: var(--space-md) 0 var(--space-lg); color: var(--color-ink); }
html body .chy-answer strong:first-child, html body .chy-answer b:first-child { display: block; color: var(--color-ink); font: 600 var(--text-sm) var(--font-label); letter-spacing: 0; text-transform: none; margin-bottom: var(--space-2xs); }

/* Notes and callouts: a hairline above and below */
html body .note, html body .callout, html body .feature-box, html body .pl-note { background: transparent; border: 0; border-top: var(--rule-hair) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; padding: var(--space-md) 0; margin: var(--space-lg) 0; font-size: var(--text-md); color: var(--color-ink-2); }
html body .note strong:first-child { color: var(--color-ink); }

/* Product and affiliate box: a well */
html body .product { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-md); align-items: center; background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; padding: var(--space-md); margin: var(--space-lg) 0; box-shadow: none; }
html body .product img { width: 96px; height: 96px; object-fit: cover; border-radius: 0; margin: 0; aspect-ratio: 1; outline: var(--rule-hair) solid var(--color-ink); outline-offset: -1px; }
html body .product strong { display: block; font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
html body .product p { color: var(--color-ink-2); font-size: 0.9375rem; line-height: 1.45; margin: var(--space-2xs) 0 var(--space-sm); opacity: 1; }
html body .product a[rel~="sponsored"], html body .product a:last-child { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper) !important; font: 600 var(--text-sm) var(--font-label); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
html body .product a[rel~="sponsored"]:hover { background: var(--color-ink-2); }
@media (max-width: 30rem) { html body .product { grid-template-columns: 72px minmax(0, 1fr); padding: var(--space-sm); } html body .product img { width: 72px; height: 72px; } }

/* Tables: an ink rule on top, hairlines between */
html body article table, html body table { width: 100%; border-collapse: collapse; border: 0; border-top: var(--rule-bar) solid var(--color-ink); border-radius: 0; overflow: hidden; background: transparent; font-size: 0.9375rem; margin: var(--space-lg) 0; box-shadow: none; }
html body th { background: transparent !important; color: var(--color-ink) !important; font: 600 var(--text-sm) var(--font-label) !important; text-transform: none !important; letter-spacing: 0 !important; text-align: left; padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink); white-space: nowrap; }
html body td { padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); background: transparent !important; color: var(--color-ink-2); }
html body tbody tr:nth-child(even) td { background: transparent !important; }
@media (max-width: 40rem) { html body table { display: block; overflow-x: auto; max-width: 100%; } html body table th, html body table td { min-width: 110px; } }

/* FAQ: rows parted by hairlines */
html body .faq details, html body details.faq-item, html body .pl-faq details, html body .faq-list details { background: none !important; border: 0 !important; border-bottom: var(--rule-hair) solid var(--color-rule) !important; border-radius: 0 !important; padding: 0 !important; margin: 0; box-shadow: none !important; }
html body .faq summary, html body .pl-faq summary, html body .faq-list summary { list-style: none; cursor: pointer; position: relative; padding: var(--space-md) var(--space-xl) var(--space-md) 0; font: 600 var(--text-lg)/1.35 var(--font-label) !important; color: var(--color-ink); }
html body .faq summary::-webkit-details-marker { display: none; }
html body .faq summary::before { display: none !important; }
html body .faq summary::after { content: "+"; position: absolute; right: var(--space-2xs); top: var(--space-sm); font: 800 1.75rem/1 var(--font-display); color: var(--color-accent-deep); background: none; width: auto; height: auto; }
html body .faq details[open] summary::after { content: "\2212"; }
html body .faq summary:hover { color: var(--color-accent-deep); }
html body .faq details p { margin: 0 0 var(--space-md); font-size: var(--text-md); max-width: 65ch; }

/* Recipe card: a well with an ink border */
html body .recipe-card { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; padding: var(--space-lg); margin: var(--space-xl) 0; box-shadow: none; }
@media (min-width: 44rem) { html body .recipe-card { padding: var(--space-xl); } }
html body .recipe-card h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-xs); border-top: 0 !important; padding-top: 0 !important; }
html body .recipe-card h3 { color: var(--color-ink); font-size: var(--text-title); margin: var(--space-lg) 0 var(--space-xs); }
html body .recipe-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); color: var(--color-muted); font-size: var(--text-sm); opacity: 1; }
html body .recipe-meta span { background: transparent; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-sm); }
html body .recipe-card ol li::before { background: var(--color-ink); color: var(--color-paper); font-family: var(--font-display); border-radius: 0; }
html body .recipe-card ul li::marker { color: var(--color-accent-deep); }
html body .print-btn, html body .recipe-card button { border-radius: var(--radius-input); }
html body .chycalc, html body .calc { background: var(--color-paper) !important; border: var(--rule-hair) solid var(--color-ink) !important; border-radius: 0; }
html body .chycalc button, html body .calc button, html body .seg button.on { background: var(--color-paper) !important; color: var(--color-ink) !important; border: var(--rule-hair) solid var(--color-ink) !important; border-radius: var(--radius-input); }
html body .chycalc, html body .chycalc * { font-family: var(--font-label); }
html body .chycalc-head > strong { font-family: var(--font-display) !important; font-weight: 400; }

/* Buttons, every page */
html body .btn, html body .btn-orange, html body .btn-dark, html body .quiz-cta-btn, html body .lead-btn, html body .gear-cta, html body .terroir-btn, html body .cta-button, html body a.button { border-radius: var(--radius-input) !important; font-family: var(--font-label); font-weight: 600; box-shadow: none !important; }
html body .btn, html body .btn-orange, html body .lead-btn, html body .gear-cta, html body .price-link.gear-cta, html body a.gear-cta, html body .chy-cart-btn, html body .kit-btn, html body .vault-cta, html body .trail-cta, html body .btn-light { background: var(--color-ink) !important; color: var(--color-paper) !important; border: 0 !important; }
html body .btn:hover, html body .btn-orange:hover, html body .lead-btn:hover, html body .chy-cart-btn:hover { background: var(--color-ink-2) !important; }
html body .btn-dark { background: var(--color-ink); color: var(--color-paper); }
html body .btn:active, html body .chy-cart-btn:active, html body .chyjr-btn:active, html body .product a:active { transform: translateY(1px); }
html body .btn:disabled, html body button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Disclosure */
html body .disclosure { color: var(--color-muted); font-size: var(--text-xs); border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-sm); opacity: 1; }

/* Hub and listing cards: an ink rule on top, no box, no lift */
html body .viral-card, html body .card, html body .pcard, html body .vcard, html body .lab-card, html body .gear-card, html body .contact-card, html body .lead-card, html body .pl-card { background: transparent !important; border: 0 !important; border-top: var(--rule-bar) solid var(--color-ink) !important; border-radius: 0 !important; box-shadow: none !important; overflow: clip; transition: border-color var(--dur-short) var(--ease-out); }
html body .viral-card:hover, html body .card:hover, html body .pcard:hover, html body .lab-card:hover { transform: none; box-shadow: none; border-top-color: var(--color-accent) !important; }
html body .viral-card img, html body .card img, html body .pcard img, html body .lab-card img { border-radius: 0; }
html body .badge, html body .tag, html body .pl-tag, html body .meta-badge, html body .chart-badge, html body .card-tags span, html body .badge-gear, html body .price-tag { background: var(--color-paper-2) !important; color: var(--color-ink) !important; border: 0; border-radius: 0; font: 600 var(--text-xs) var(--font-label) !important; letter-spacing: 0 !important; text-transform: none !important; }
html body .price-link { color: var(--color-ink) !important; font-weight: 600; }
html body .eyebrow, html body .pl-eyebrow, html body header.page .eyebrow, html body .origin-hero .eyebrow { display: block; font: 600 var(--text-sm)/1.3 var(--font-label) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--color-muted) !important; margin-bottom: var(--space-xs); }
html body .italic, html body .origin-hero h1 em, html body .article-body em { color: inherit !important; font-style: normal; }
html body .filter-btn { border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); border-radius: var(--radius-pill); font-family: var(--font-label); }
html body .filter-btn.active, html body .filter-btn:hover { background: var(--color-ink); color: var(--color-paper) !important; border-color: var(--color-ink) !important; }
html body .recipe-search, html body input[type=search], html body input[type=email], html body input[type=text] { border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-label); }
html body .index-header, html body .origin-hero { background: var(--color-paper-2) !important; color: var(--color-ink); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; }
html body .index-header h1 { color: var(--color-ink); }
html body .blog-index { padding-top: var(--space-xl) !important; }
html body .index-header { padding: var(--space-xl) var(--space-lg) !important; margin: 0 var(--space-md) var(--space-xs); }
@media (min-width: 900px) { html body .index-header { margin: 0 auto var(--space-xs); max-width: var(--container); } }
html body .pl-hero h1, html body .pl-hero p, html body .pl-hero .pl-facts, html body .pl-hero .pl-eyebrow { color: var(--color-paper) !important; }
html body .qa-toggle { background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-input); }
html body .lead-card h3, html body .lead-card h2, html body .lab-card h3 { color: var(--color-ink) !important; }
html body .lead-card p { color: var(--color-ink-2) !important; }
html body .pl-chip:hover, html body .quiz-opt:hover, html body .option:hover { color: var(--color-ink) !important; border-color: var(--color-ink) !important; }
html body .pl-map-wrap, html body .pl-mapbox { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; }
html body article.pl-card, html body article.lab-card, html body article.viral-card { padding: 0 !important; }
html body article.pl-card h2 { margin: 0 0 var(--space-xs) !important; font-size: var(--text-xl); border-top: 0 !important; padding-top: 0 !important; }
html body article.pl-card h3, html body article.viral-card h3 { margin: 0 0 var(--space-2xs) !important; }

/* Legacy pages on style.css (.container, .blog-post) */
html body .container { max-width: var(--container); }
html body .blog-post .container, html body .legal { max-width: var(--read); }
html body .post-meta { color: var(--color-muted); }
html body .legal h2, html body .container h2, html body article.wrap h2, html body article.blog-post h2 { border-left: 0 !important; padding-left: 0 !important; }
html body div.wrap, html body section.wrap, html body main.wrap { max-width: var(--container); }
html body.pg-legacy .container { max-width: var(--read); padding: var(--space-xl) var(--space-lg) 0 !important; }
html body.pg-legacy .container h1 { font-size: var(--text-display-s); color: var(--color-ink); margin-top: 0; }
html body.pg-legacy header, html body.pg-legacy .post-header { text-align: left !important; }
html body.pg-legacy .intro, html body.pg-legacy .subtitle, html body.pg-legacy .post-header p { text-align: left !important; margin-left: 0 !important; }
html body.pg-legacy .blog-post { padding-top: 0 !important; }
html body.pg-legacy .blog-post h2 { font-size: var(--text-2xl) !important; }
html body.pg-legacy .takeaways, html body.pg-legacy .quick-verdict, html body.pg-legacy .verdict { border-color: var(--color-ink) !important; border-radius: 0 !important; }
html body.pg-legacy .section, html body.pg-legacy section { box-shadow: none; }
html body .container .lab-intro { max-width: none; padding-left: 0; padding-right: 0; margin-top: var(--space-2xl); }
html body .lab-card { padding: var(--space-lg); }

/* cro.js widgets */
html body .helpful, html body .pin-wrap { font-family: var(--font-label); }
html body .helpful { background: var(--color-paper-2); border: 0; border-top: var(--rule-hair) solid var(--color-ink); border-radius: 0; }
html body .helpful button { background: var(--color-paper) !important; border: var(--rule-hair) solid var(--color-ink) !important; border-radius: var(--radius-input); white-space: nowrap; color: var(--color-ink) !important; }
html body .pin-btn { border-radius: var(--radius-input); }
html body .back-top { background: var(--color-ink) !important; color: var(--color-paper) !important; border-radius: var(--radius-input); }
html body .cmodal { border-radius: 0 !important; border: var(--rule-bar) solid var(--color-ink); box-shadow: none !important; }
@media print { html body .chy-nav, html body footer.chy-foot, html body .chyjr-wrap { display: none !important; } }


/* page-specific boxes from inline styles (map, phrasebook, pantry, quiz, calculators) */
html body .vt-shop, html body .pl-zone, html body .svc-card, html body .quiz-card, html body .guarantee, html body .stat-item, html body .cz-calc, html body .cz-out { background: transparent !important; border: 0 !important; border-top: var(--rule-hair) solid var(--color-ink) !important; border-radius: 0 !important; box-shadow: none !important; }
html body .vt-mapbox, html body .capture, html body .capture form { background: var(--color-paper-2) !important; border: var(--rule-hair) solid var(--color-ink) !important; border-radius: 0 !important; }
html body .vt-go { color: var(--color-ink) !important; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-decoration-thickness: 1px; }
html body .vt-jump a, html body .pl-chip, html body .option, html body .pick-row { background: var(--color-paper) !important; border: var(--rule-hair) solid var(--color-ink) !important; color: var(--color-ink) !important; }
html body .vt-jump a, html body .pl-chip { border-radius: var(--radius-pill) !important; }
html body .phrase-t { border-radius: 0 !important; border: var(--rule-bar) solid var(--color-ink) !important; background: var(--color-paper-2) !important; }
html body .mini-faq details { background: none !important; border: 0 !important; border-bottom: var(--rule-hair) solid var(--color-rule) !important; border-radius: 0 !important; }
html body .cz-row select, html body .chycalc-ctrl input { border: var(--rule-hair) solid var(--color-ink) !important; border-radius: var(--radius-input) !important; background: var(--color-paper) !important; }

/* ---------- Site search (search.js) on the Halftone stock ---------- */
html body .chy-hero-search-wrap { margin-top: var(--space-xl); max-width: 38rem; }
html body .chy-hero-search { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 52px; padding: 0 var(--space-md); background: var(--color-paper) !important; color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-ink) !important; border-radius: var(--radius-input) !important; box-shadow: none !important; font: 400 var(--text-md) var(--font-label); cursor: pointer; text-align: left; transition: background-color var(--dur-short) var(--ease-out); }
html body .chy-hero-search:hover { background: var(--color-paper-2) !important; }
html body .chy-hero-search:active { background: var(--color-paper-3) !important; }
html body .chy-hero-search svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-ink); }
html body .chy-hero-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .chy-hero-search kbd { display: none; }
html body .chy-hero-search::after { content: "Search"; flex-shrink: 0; margin-right: calc(-1 * var(--space-sm)); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); font: 600 var(--text-sm) var(--font-label); border-radius: var(--radius-input); box-shadow: none; }
html body .chy-hero-search:hover::after { background: var(--color-ink-2); }
html body .chy-hero-try { font-family: var(--font-label); display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
html body .chy-hero-try a { color: var(--color-ink); font-weight: 600; text-decoration-color: var(--color-rule); }
html body .chy-hero-try a:hover { text-decoration-color: var(--color-accent); }
html body .chs-panel { border-radius: 0 !important; border: var(--rule-bar) solid var(--color-ink) !important; box-shadow: none !important; background: var(--color-paper) !important; }
html body .chs-chip, html body .chs-pill { border-radius: var(--radius-pill) !important; }
html body .chs-gt, html body .chs-badge { letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- Weekly "What's New" pages ---------- */
html body .wn-item { border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-xs); margin-top: var(--space-xl); }
html body .wn-item h2 { margin-top: var(--space-2xs); border-top: 0 !important; padding-top: 0 !important; }
.wn-tag { display: inline-block; color: var(--color-accent-deep); font: 600 var(--text-sm)/1 var(--font-label); letter-spacing: 0; text-transform: none; padding: 0; margin-top: var(--space-md); background: none; border-radius: 0; }
.wn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-xs) var(--space-lg); background: none; border-top: var(--rule-hair) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; padding: var(--space-sm) 0; margin: 0 0 var(--space-md); font-size: 0.9375rem; }
.wn-facts dt { font: 600 var(--text-xs) var(--font-label); letter-spacing: 0; text-transform: none; color: var(--color-muted); }
.wn-facts dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); font-weight: 600; }
.wn-src { font-size: var(--text-sm); color: var(--color-muted); }
.wn-nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); justify-content: center; font-weight: 600; margin: var(--space-xl) 0 var(--space-xs); }
.wn-grid { display: grid; gap: var(--space-xl) var(--gap-columns); margin: var(--space-lg) 0; }
@media (min-width: 44rem) { .wn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wn-card { display: flex; flex-direction: column; gap: var(--space-xs); text-decoration: none; color: var(--color-ink-2); border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-sm); transition: border-color var(--dur-short) var(--ease-out); }
.wn-card:hover { border-top-color: var(--color-accent); }
html body .wn-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; height: auto; margin: 0 0 var(--space-xs); outline: var(--rule-hair) solid var(--color-ink); outline-offset: -1px; }
.wn-date { font: 600 var(--text-sm) var(--font-label); color: var(--color-muted); letter-spacing: 0; text-transform: none; }
.wn-card b { font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
.wn-names { font-size: var(--text-sm); color: var(--color-muted); }
html body article.wn > img { aspect-ratio: 1200 / 630; height: auto; object-fit: contain; }

/* ---------- Klook booking box (klook/apply_klook.py): a well, rows inside ---------- */
.kl-box { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; padding: var(--space-lg); margin: var(--space-xl) 0; }
html body .kl-box .kl-h { margin: 0 0 var(--space-xs); font-size: var(--text-2xl); border-top: 0 !important; padding-top: 0 !important; }
.kl-grid { display: grid; gap: 0 var(--gap-columns); margin: var(--space-md) 0; }
@media (min-width: 44rem) { .kl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kl-card { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-ink); text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.kl-card b { font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
.kl-card span { font-size: var(--text-sm); }
.kl-card em { font-style: normal; font-weight: 600; color: var(--color-ink); font-size: var(--text-sm); margin-top: auto; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.kl-card:hover em { color: var(--color-accent-deep); }
.kl-disc { font-size: var(--text-xs); color: var(--color-muted); }

/* ================= Homepage (body.chy-home) ================= */
.hm-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.hm-sec { padding-block: var(--section-gap-s); }
.hm-pl-sec { padding-top: var(--space-xl); }
.hm-sec + .hm-sec { border-top: 0; }
.hm-sec > .hm-wrap:first-child { background: linear-gradient(var(--color-ink), var(--color-ink)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) var(--rule-heavy); padding-top: var(--space-lg); }
.hm-pl-sec > .hm-wrap:first-child { background: none; padding-top: 0; }
.hm h2 { font-size: var(--text-display-s); max-width: 18ch; line-height: 1; }
.hm h3 { font-size: var(--text-title); }
.hm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-2xl); }
.hm-head h2 { margin: 0; }

/* controls */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper) !important; font: 600 var(--text-md)/1 var(--font-label); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.hm-btn:hover { background: var(--color-ink-2); color: var(--color-paper) !important; }
.hm-btn:active { transform: translateY(1px); }
.hm-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-btn-ink { background: var(--color-ink); color: var(--color-paper) !important; }
.hm-btn-ink:hover { background: var(--color-ink-2); color: var(--color-paper) !important; }
.hm-link { display: inline-block; padding: var(--space-2xs) 0; color: var(--color-ink) !important; font: 600 var(--text-md)/1.3 var(--font-label); text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-ink); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.hm-link:hover { color: var(--color-accent-deep) !important; }
.hm-link:active { transform: translateY(1px); }
.hm-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* photographs: square, an ink hairline, the owner's own */
.hm-photo { display: block; position: relative; overflow: hidden; background: var(--color-paper-2); }
.hm-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; outline: var(--rule-hair) solid var(--color-ink); outline-offset: calc(-1 * var(--rule-hair)); filter: saturate(1.1) contrast(1.06); }

/* 1. Hero, Stage */
.hm-hero { padding-block: var(--space-xl); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: stretch; }
.hm-hero h1 { font-size: var(--text-hero); line-height: 0.95; max-width: 13ch; margin: 0; }
.hm-lede { margin-top: var(--space-lg); font: 400 var(--text-lead)/1.45 var(--font-body); color: var(--color-ink); max-width: 44ch; }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); }
.hm-hero-fig { display: flex; flex-direction: column; gap: var(--space-sm); margin: 0 calc(-1 * var(--gutter)) 0 0; }
.hm-hero-photo { flex: 1; min-height: 520px; }
.hm-hero-fig figcaption { padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule-2); margin-right: var(--gutter); font: 600 var(--text-sm)/1.4 var(--font-label); color: var(--color-muted); }
.hm-hero-fig figcaption a { font-weight: 600; color: var(--color-ink) !important; }

/* 2. The Power List, read like the back of a can */
.hm-pl-cols { display: grid; grid-template-columns: 4rem minmax(0, 3fr) minmax(0, 6fr) 112px; gap: var(--space-lg); padding-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.hm-pl { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.hm-pl li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.hm-pl a { display: grid; grid-template-columns: 4rem minmax(0, 3fr) minmax(0, 6fr) 112px; gap: var(--space-lg); align-items: center; padding: var(--space-md) 0; color: var(--color-ink-2); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.hm-pl a:hover { background: var(--color-paper-2); }
.hm-pl a:hover .hm-pl-name b { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hm-pl-n { font: 800 var(--text-section)/1 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; }
.hm-pl-name { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.hm-pl-name b { font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
.hm-pl-name span, .hm-pl-order > span { font-size: var(--text-sm); color: var(--color-muted); }
.hm-pl-order { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.hm-pl-order b { font: 800 var(--text-xl)/1.15 var(--font-display); color: var(--color-ink); }
.hm-pl-ph { display: block; width: 112px; height: 112px; overflow: hidden; }
.hm-pl-ph img { width: 100%; height: 100%; object-fit: cover; outline: var(--rule-hair) solid var(--color-ink); outline-offset: -1px; }
.hm-foot-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* 3. On now: dated rows */
.hm-now-sec h2 { margin-bottom: var(--space-2xl); }
.hm-now { border-top: var(--rule-bar) solid var(--color-ink); }
.hm-now-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--space-lg) var(--gap-columns); align-items: start; padding: var(--space-xl) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-decoration: none; }
a.hm-now-row { transition: background-color var(--dur-short) var(--ease-out); }
a.hm-now-row:hover { background: var(--color-paper-2); }
.hm-now-row time { font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
.hm-now-what { display: flex; flex-direction: column; gap: var(--space-xs); align-items: flex-start; min-width: 0; }
.hm-now-what b { font: 800 var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); }
.hm-now-what > span { max-width: 56ch; }
.hm-now-what small { font-size: var(--text-xs); color: var(--color-muted); max-width: 56ch; }
.hm-now-go { font-family: var(--font-label); justify-self: end; font-weight: 600; color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-ink); padding-bottom: var(--space-2xs); white-space: nowrap; }
a.hm-now-row:hover .hm-now-go { color: var(--color-accent-deep); }
.hm-now-week { padding-inline: var(--space-lg); background: var(--color-ink); color: var(--color-paper); border-bottom: 0; }
.hm-now-week time, .hm-now-week .hm-now-what b { color: var(--color-paper); }
.hm-now-week .hm-now-what > span { color: var(--color-paper-3); }
.hm-now-week .hm-now-go { align-self: end; color: var(--color-paper); border-bottom-color: var(--color-paper); }
.hm-now-week:hover { background: var(--color-ink-2); }
a.hm-now-week:hover .hm-now-go { color: var(--color-paper); }
.hm-now-ph { aspect-ratio: 4 / 3; }

/* 4. In Bangkok, by area */
.hm-city { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-city-head { display: flex; flex-direction: column; gap: var(--space-lg); align-items: flex-start; position: sticky; top: calc(var(--nav-h) + var(--space-xl)); }
.hm-city-head p { max-width: 36ch; }
.hm-city-ph { width: 100%; aspect-ratio: 16 / 9; }
.hm-city-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); max-width: none; }
.hm-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.hm-areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); color: var(--color-ink); font: 600 var(--text-md) var(--font-label); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.hm-areas a:hover { background: var(--color-ink); color: var(--color-paper); }
.hm-areas a:active { background: var(--color-ink-2); }
.hm-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); }
.hm-tiles a { display: flex; flex-direction: column; gap: var(--space-xs); min-height: 15rem; padding: var(--space-lg) 0 var(--space-xl); border-top: var(--rule-bar) solid var(--color-ink); color: var(--color-ink-2); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out); }
.hm-tiles a:hover { border-top-color: var(--color-accent); }
.hm-tiles a:hover b { color: var(--color-accent-deep); }
.hm-fig { font: 800 var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); }
.hm-fig[lang="th"] { font: 600 var(--text-2xl)/1.2 var(--font-thai); }
.hm-tiles b { font-size: var(--text-lg); }
.hm-tiles a > span:last-child { max-width: 40ch; }

/* 5. Recipes rail */
.hm-rec-sec .hm-head { margin-bottom: var(--space-2xl); }
.hm-rail { list-style: none; margin: 0 auto; max-width: var(--container); padding: 0 var(--gutter) var(--space-md); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, calc((100% - 2 * var(--gutter) - 3 * var(--gap-columns)) / 3.4)); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin; }
.hm-rail > li { scroll-snap-align: start; }
@media (min-width: 60rem) { .hm-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; row-gap: var(--space-2xl); padding-bottom: 0; } .hm-rail .hm-photo { aspect-ratio: 1; } }
.hm-rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.hm-rail a { display: flex; flex-direction: column; gap: var(--space-xs); color: var(--color-ink-2); text-decoration: none; }
.hm-rail .hm-photo { aspect-ratio: 4 / 5; margin-bottom: var(--space-xs); }
.hm-rail b { font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
.hm-rail a:hover b { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hm-rail a > span:last-child { font-size: var(--text-sm); color: var(--color-muted); }

/* 6. Quick answers: a figure as a poster, then the fixes */
.hm-ans { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-poster { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-xl); color: var(--color-ink-2); text-decoration: none; }
.hm-poster-n { font: 800 clamp(5rem, 9vw, 9rem)/0.9 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; }
.hm-poster-u { font: 800 var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); }
.hm-poster-l { max-width: 40ch; }
.hm-poster:hover .hm-poster-u { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hm-rows { list-style: none; margin: 0 0 var(--space-2xl); padding: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.hm-rows a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-decoration: none; }
.hm-rows a > b { font: 800 var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.hm-rows a:hover strong { color: var(--color-accent-deep); }
.hm-ans-rows h3 { margin-bottom: var(--space-md); }
.hm-fix { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); border-top: var(--rule-bar) solid var(--color-ink); }
@media (max-width: 80rem) { .hm-fix { grid-template-columns: minmax(0, 1fr); } }
.hm-fix a { display: flex; align-items: center; min-height: 56px; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-weight: 600; text-decoration: none; }
.hm-fix a:hover { color: var(--color-accent-deep); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* 7. Starter kit: one well, three products parted by rules */
.hm-kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); }
.hm-prod { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg); }
.hm-prod + .hm-prod { border-left: var(--rule-hair) solid var(--color-ink); }
.hm-prod .hm-photo { aspect-ratio: 1; }
.hm-prod > div { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; flex: 1; }
.hm-prod p { flex: 1; }
html body .hm-cart.chy-cart { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: center; justify-content: space-between; margin: 0; padding: var(--space-lg) 0; background: none; border: 0; border-bottom: var(--rule-bar) solid var(--color-ink); border-radius: 0; }
html body .chy-cart { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; }
html body .chy-cart span { opacity: 1; }
.hm-cart strong { display: block; font: 800 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); }
html body .hm-cart span { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); }
html body .hm-cart .chy-cart-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-input); font: 600 var(--text-md)/1 var(--font-label); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.hm-disc { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* 8. About and the Brew Guide */
.hm-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--gap-columns); align-items: stretch; }
.hm-about-text { display: flex; flex-direction: column; gap: var(--space-lg); align-items: flex-start; }
.hm-ticks { list-style: none; margin: 0; padding: 0; width: 100%; border-top: var(--rule-bar) solid var(--color-ink); }
.hm-ticks li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.hm-brew { display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule-2); }
.hm-brew-ph { width: 100%; aspect-ratio: 3 / 2; margin-bottom: var(--space-xs); }
.hm-brew h3 { font-size: var(--text-2xl); }
.hm-brew p { max-width: 40ch; }

html body.chy-home footer.chy-foot { margin-top: 0; }
/* 9. FAQ */
.hm-faq { margin-top: var(--section-gap-s); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-faq-list { border-top: var(--rule-bar) solid var(--color-ink); }
.hm-faq-list p a { white-space: nowrap; }

/* Under 60rem every composition stacks in reading order */
@media (max-width: 60rem) {
  .hm-hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hm-hero-fig { margin-right: 0; }
  .hm-hero-fig figcaption { margin-right: 0; }
  .hm-hero-photo { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .hm-hero-grid, .hm-city, .hm-ans, .hm-about, .hm-faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hm-city-head { position: static; }
  .hm-pl a { grid-template-columns: 2.75rem minmax(0, 1fr) 88px; grid-template-areas: "n name ph" "n order ph"; gap: var(--space-xs) var(--space-md); }
  .hm-pl-n { grid-area: n; font-size: var(--text-2xl); }
  .hm-pl-cols { grid-template-columns: 2.75rem minmax(0, 1fr) 88px; } .hm-pl-cols span:nth-child(3) { display: none; }
  .hm-pl-name { grid-area: name; } .hm-pl-order { grid-area: order; } .hm-pl-ph { grid-area: ph; width: 88px; height: 88px; }
  .hm-pl-order b { font-size: var(--text-lg); }
  .hm-now-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .hm-now-go { justify-self: start; }
  .hm-kit { grid-template-columns: minmax(0, 1fr); }
  .hm-prod + .hm-prod { border-left: 0; border-top: var(--rule-hair) solid var(--color-ink); }
  .hm-prod { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-height: 820px) and (min-width: 60rem) {
  .hm-hero { padding-block: var(--space-lg); }
  .hm-hero-photo { min-height: 400px; }
  .hm-pl-sec { padding-top: var(--space-lg); }
}
@media (max-width: 40rem) {
  .hm-pl a { grid-template-columns: 2.25rem minmax(0, 1fr) 64px; grid-template-areas: "n name ph" "order order order"; }
  .hm-pl-ph { width: 64px; height: 64px; }
  .hm-pl-cols { display: none; }
  .hm-tiles, .hm-fix { grid-template-columns: minmax(0, 1fr); }
  .hm-tiles a { min-height: 0; }
  .hm-rows a { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .hm-prod { grid-template-columns: 72px minmax(0, 1fr); padding: var(--space-md); }
  .hm-prod > div { min-width: 0; }
  .hm-prod .hm-btn, html body .hm-cart .chy-cart-btn { font-size: var(--text-sm); padding: 0 var(--space-md); }
  .hm-rail { grid-auto-columns: 72%; }
  .hm-head { margin-bottom: var(--space-xl); }
}

/* ---------- Polish pass 19 Nov 2026: hub headers and legacy page parts ---------- */
:root, html:root { --font-mono: ui-monospace, "SF Mono", Menlo, monospace; }
html body .index-header { text-align: left !important; background: transparent !important; border: 0 !important; border-top: var(--rule-heavy) solid var(--color-ink) !important; padding: var(--space-lg) 0 0 !important; margin: 0 auto var(--space-lg) !important; max-width: var(--container); }
html body .origin-hero { background: var(--color-paper) !important; animation: none !important; border: 0 !important; border-bottom: var(--rule-hair) solid var(--color-rule) !important; }
html body .origin-hero::after { display: none !important; }
html body .origin-hero .container { text-align: left !important; padding-top: var(--space-2xl) !important; padding-bottom: var(--space-xl) !important; }
html body .origin-hero h1 { color: var(--color-ink) !important; }
html body .origin-hero p.lede { color: var(--color-ink-2) !important; margin: 0 !important; }
html body .article-body { margin-top: var(--space-xl) !important; }
html body .note { color: var(--color-ink-2) !important; } html body .note p { color: var(--color-ink-2) !important; } html body .note b, html body .note h3, html body .note strong { color: var(--color-ink) !important; }
html body .quiz-stage { background: var(--color-paper-2) !important; animation: none !important; }
html body .terroir-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-block: var(--space-xs) !important; white-space: nowrap; }
html body .chycalc input, html body .chycalc select { min-height: 44px; }
html body .svc-card.svc-main { background: var(--color-ink) !important; }
html body .chs-chip { min-height: 44px; }
html body .index-header h1, html body .index-header p { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
html body .index-header p { font-size: var(--text-lead); max-width: 60ch; }
html body .blog-index, html body div.page, html body main.page { padding-inline: var(--gutter); }
html body .pl-shop, html body .pl-cta a { border-radius: 0 !important; }
html body .wn-item .wn-tag { display: block; margin: var(--space-xs) 0 var(--space-sm); }
html body .page-hero { margin: 0; padding: 0; }
html body .hero-img { width: 100%; max-height: 360px; aspect-ratio: 21 / 9; object-fit: cover; margin-bottom: var(--space-xl) !important; }
html body .btn, html body .btn-dark, html body .btn-ghost, html body .quiz-cta-btn, html body .cta-button, html body .chyjr-btn, html body .lead-btn, html body .jump .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-block: var(--space-xs) !important; white-space: nowrap; }
html body .pin-btn, html body .print-btn, html body .chycalc-ctrl button, html body .helpful button { min-height: 44px; min-width: 44px; }
html body .price-link, html body a.gear-cta { white-space: nowrap; }
@media (min-width: 40.01rem) { html body .product a[rel~="sponsored"] { white-space: nowrap; } }
html body .viral-card h3, html body .card h3 { margin-top: var(--space-md) !important; }
html body .capture h3 { color: var(--color-ink) !important; } html body .capture p { color: var(--color-ink-2) !important; }
html body .capture input { border: var(--rule-hair) solid var(--color-muted) !important; background: var(--color-paper); }
html body .chs-chip { border: var(--rule-hair) solid var(--color-ink) !important; background: transparent !important; }
html body .chs-chip:hover { background: var(--color-paper-3) !important; }
html body .chs-box input { border: 0 !important; outline-offset: 2px; }
html body .chy-burger { min-width: 44px; min-height: 44px; }
html body .chy-logo { min-height: 44px; display: inline-flex; align-items: center; }
html body .chs-close { min-width: 44px; min-height: 44px; }
html body input[type=range] { min-height: 44px; }
html body .cf-col a, html body .chy-legal-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
html body .stat-item span, html body .vt-tag, html body #progress, html body .chs-hint, html body .pl-card dt, html body .seg button small { font-size: 0.75rem !important; }
@media (max-width: 40rem) { html body article table, html body table { display: block; overflow-x: auto !important; max-width: 100%; } html body table.chycalc-table { display: table !important; overflow: visible !important; } html body .chycalc-table td { min-width: 0 !important; padding-inline: var(--space-2xs) !important; } html body .chycalc-table td:last-child { white-space: normal !important; } html body .chycalc-ctrl { flex-wrap: wrap; } }
@media (max-width: 22.5rem) { html body .btn, html body .btn-dark, html body .btn-ghost, html body .cta-button, html body .lead-btn, html body .hm-btn, html body .terroir-btn, html body a.gear-cta, html body .price-link { font-size: 0.875rem; padding-inline: var(--space-sm) !important; max-width: 100%; } html body .seg button { padding-inline: var(--space-2xs); font-size: 0.875rem; } html body .seg { gap: var(--space-2xs); } }
html body .wn-nav a + a { margin-left: var(--space-lg); }
html body .seg button.on { background: var(--color-ink) !important; color: var(--color-paper) !important; border-color: var(--color-ink) !important; }
html body .price-tag { font: var(--display-weight, 700) 2.75rem/1 var(--font-display) !important; background: transparent !important; border: 0 !important; padding: 0 !important; color: var(--color-ink) !important; }
html body .price-tag s { font-size: 0.5em !important; color: var(--color-muted) !important; opacity: 1 !important; }
html body .tldr ~ h2 { margin-top: var(--space-xl) !important; }
html body header.page { text-align: left !important; padding-inline: 0 !important; max-width: none; }
html body header.page h1, html body header.page p { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; max-width: 60ch; }
html body .cf-share a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
html body .pantry a.buy, html body a.buy, html body a.vt-go, html body .vt-jump a, html body .hm-link { display: inline-flex; align-items: center; min-height: 44px; }
html body .pl-eyebrow { color: var(--color-paper) !important; }
html body .terroir-img { flex-direction: column; } html body .terroir-img span { display: block; margin-top: var(--space-xs); }
@media (max-width: 40rem) { html body .chy-menu a, html body .chy-drop-toggle { min-height: 44px; } }
@media (max-width: 22.5rem) { html body .quiz-cta-btn { font-size: 0.875rem; padding-inline: var(--space-sm) !important; max-width: 100%; } html body .hm-prod .hm-btn { font-size: 0.75rem; padding-inline: var(--space-xs) !important; } html body .seg button { font-size: 0.8125rem; } }
@media (max-width: 40rem) { html body nav.toc, html body .toc { padding: var(--space-sm) var(--space-md); } html body .toc ol { padding-left: var(--space-md); } html body .toc li a { display: block; min-height: 44px; padding-block: var(--space-xs); line-height: 1.45; } html body th { white-space: normal; } html body td, html body th { padding: var(--space-xs); } html body .terroir-btn { padding-inline: var(--space-md) !important; font-size: 0.9375rem; } }
html body .toc ol { columns: 1 !important; }

/* touch targets on phones: 44px for the small text links that stand alone */
@media (max-width: 60rem) {
  html body .chy-hero-try { gap: 0 var(--space-md); }
  html body .chy-hero-try a, html body .price-link, html body .hm-hero-fig figcaption a, html body .announce a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .hm-foot-link .hm-link, html body .hm-city-links .hm-link { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 900px) { html body .chy-cta { align-self: flex-start; margin: var(--space-xs) var(--space-sm) var(--space-sm); } }
@media (prefers-reduced-motion: reduce) {
  .hm-btn, .hm-link, .hm-pl a, .hm-tiles a, a.hm-now-row, .hm-areas a, .kl-card, .wn-card, html body .chy-search-btn, html body .chy-hero-search, html body .product a, html body .chyjr-btn { transition: none; }
  .hm-btn:active, .hm-link:active, html body .btn:active, html body .chy-cart-btn:active, html body .chyjr-btn:active, html body .product a:active { transform: none; }
}
/* Klook prominent v2 */
html body .kl-tag{display:inline-block;align-self:flex-start;background:#FF5B00;color:#fff;font:700 11px/1 var(--f-body);letter-spacing:.12em;text-transform:uppercase;padding:6px 10px;border-radius:999px;margin-bottom:8px}
html body .kl-btn{display:inline-block;align-self:flex-start;background:#FF5B00;color:#fff !important;font:700 15px/1.2 var(--f-body);padding:12px 18px;border-radius:999px;text-decoration:none !important;box-shadow:0 4px 14px rgba(255,91,0,.35);transition:transform .15s,box-shadow .15s}
html body .kl-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,91,0,.45)}
html body .kl-btn-alt{background:#fff;color:#C2410C !important;box-shadow:inset 0 0 0 2px #FF5B00}
html body .kl-box{background:#FFF4EC;border:3px solid #FF5B00;border-radius:20px;padding:24px}
html body .kl-box .kl-h{font-size:clamp(24px,3vw,32px)}
html body .kl-card{background:#fff;border:1px solid #FFD2B8;border-top:4px solid #FF5B00;border-radius:14px;padding:16px 18px;gap:8px}
html body .kl-card:hover{box-shadow:0 10px 24px rgba(255,91,0,.18);transform:translateY(-2px)}
html body .kl-card .kl-btn{margin-top:auto;font-size:14px;padding:10px 16px}
html body .kl-grid{gap:14px}
html body .kl-strip{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;background:#121318;color:#F6F4EF;border-radius:20px;padding:22px 24px;margin:28px 0;border-left:8px solid #FF5B00}
html body .kl-strip-txt{display:flex;flex-direction:column;gap:4px;flex:1 1 320px}
html body .kl-strip-txt b{font:800 clamp(22px,2.6vw,28px)/1.15 var(--f-head);color:#fff}
html body .kl-strip-txt span:not(.kl-tag){color:#E7E2D8;font-size:15.5px}
html body .kl-strip-btns{display:flex;flex-wrap:wrap;gap:10px}
html body .kl-strip-disc{flex-basis:100%;margin:0;font-size:12.5px;color:#B9B3A8}
@media (prefers-reduced-motion:reduce){html body .kl-btn,html body .kl-card{transition:none}}
/* /Klook prominent v2 */
/* Klook tools v3 */
html body .kl-dealbox{background:#fff;border:2px dashed #FF5B00;border-radius:14px;padding:14px 16px;margin:14px 0}
html body .kl-deal-h{display:block;font:800 17px/1.2 var(--f-head);color:#121318;margin-bottom:8px}
html body .kl-deals{list-style:none;margin:0;padding:0;display:grid;gap:10px}
html body .kl-deal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:15px}
html body .kl-deal code{font:800 15px/1 ui-monospace,Menlo,Consolas,monospace;background:#FFF4EC;color:#C2410C;border:1px solid #FFD2B8;border-radius:8px;padding:7px 10px;letter-spacing:.04em}
html body .kl-deal span{flex:1 1 220px}
html body .kl-copy{background:#FF5B00;color:#fff;border:0;border-radius:999px;font:700 13px/1 var(--f-body);padding:9px 14px;cursor:pointer}
html body .kl-copy:focus-visible{outline:3px solid #121318;outline-offset:2px}
html body .kl-deal-note{font-size:12.5px;color:#6B665E;margin:8px 0 0}
html body .kl-widget,html body .kl-search{margin:16px 0;max-width:100%;overflow:hidden}
html body .kl-search{background:#fff;border-radius:14px;padding:14px}
/* /Klook tools v3 */
