/* Mr.Kitdie Local Guide อุดรธานี — implemented from Claude Design handoff
   ("Mr.Kitdie Local Guide.dc.html"). Mobile breakpoint: < 768px. */

:root {
  --orange: #f56e47;
  --cream: #f2f2f2;
  --ink: #181919;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--orange); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--cream); }
button { font: inherit; }
img { display: block; }

.page {
  background: var(--orange);
  color: var(--ink);
  font-family: Mitr, sans-serif;
  min-height: 100vh;
  overflow-x: clip;
}
/* Keep anchor targets clear of the fixed header. */
#reviews, #michelin, #travel, #contact { scroll-margin-top: 100px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.nowrap { white-space: nowrap; }

/* ---------- Image slot (filled photo or empty placeholder) ---------- */
.slot { position: absolute; inset: 0; overflow: hidden; background: rgba(127,127,127,0.08); }
.slot picture { display: block; width: 100%; height: 100%; }
.slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Hero: จุดสนใจของแต่ละภาพบนจอกว้าง (บนมือถือภาพถูกครอปมาให้แล้ว จึงอยู่กลาง) */
@media (min-width: 768px) { .scene img { object-position: var(--fx, 50%) 50%; } }
/* การ์ดที่ยังไม่มีภาพปก: พื้นไล่สีตามหมวด + ไอคอน + โลโก้จาง ๆ (render.js: placeholder) */
.slot--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-fg, #3a3530);
  background: radial-gradient(120% 95% at 22% 12%, var(--ph-a, #e7e2da) 0%, var(--ph-b, #bdb4a8) 100%);
}
.slot--empty::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.32) 1px, transparent 1.6px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%); mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
}
.slot__icon { width: 30%; max-width: 92px; height: auto; position: relative; z-index: 1; opacity: 0.85; }
.slot img.slot__mark { position: absolute; right: calc(8% + 12px); bottom: calc(8% + 12px); width: 30px; height: 30px; object-fit: contain; opacity: 0.4; z-index: 1; transform: none; }
.slot--cafe { --ph-a: #f0dcc3; --ph-b: #b98a5e; --ph-fg: #4a3020; }
.slot--isan { --ph-a: #ffbf9f; --ph-b: #e2532c; --ph-fg: #4a1608; }
.slot--souvenir { --ph-a: #f8e3a0; --ph-b: #d9a33a; --ph-fg: #4d3608; }
.slot--clinic { --ph-a: #cdeae4; --ph-b: #5fa79a; --ph-fg: #12403a; }
.slot--stay { --ph-a: #d5ddef; --ph-b: #6d7fae; --ph-fg: #1d2846; }
.slot--gift { --ph-a: #f9d2da; --ph-b: #d9738a; --ph-fg: #4f1824; }
.slot--guide { --ph-a: #d8e9c2; --ph-b: #6f9b4f; --ph-fg: #213a13; }
.slot--michelin { --ph-a: #4a4340; --ph-b: #1d1b1a; --ph-fg: #f5c86b; }
.slot--michelin::after { opacity: 0.18; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  background: rgba(24,25,25,0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(24,25,25,0.28);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__logo {
  width: 60px; height: 60px; /* ตามกฎโลโก้ Brand CI: ใช้รูปทรงไฟล์ต้นฉบับ ไม่ครอบกรอบ/เงาเพิ่ม ไม่ยืดบีบ */
}
.brand__name { font-family: Rubik, sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -0.03em; color: var(--cream); }
.brand__tag {
  font-weight: 400; font-size: 13px; color: var(--cream); opacity: 0.7;
  border-left: 1px solid rgba(242,242,242,0.35); padding-left: 11px;
}
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 15px; font-weight: 400; white-space: nowrap; color: var(--cream); }
.nav a:hover { color: var(--orange); }
.nav a.nav__cta {
  display: inline-flex; align-items: center; background: var(--orange); color: var(--ink);
  font-weight: 500; padding: 9px 20px; border-radius: 999px;
}
.nav a.nav__cta:hover { background: var(--cream); color: var(--ink); }

/* ---------- Hero (scroll-driven, 7 scenes) ---------- */
.hero { position: relative; height: 700vh; background: var(--ink); }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; /* svh = ไม่ให้แถบเบราว์เซอร์มือถือบังปุ่มด้านล่าง */
  perspective: 1400px; background: var(--ink);
}
.hero__world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.scene { position: absolute; inset: -5%; opacity: 0; will-change: transform, opacity; }
@media (min-width: 768px) { .scene { inset: -3%; } } /* เดสก์ท็อป: ขยายภาพเกินกรอบน้อยลง = resample น้อยลง ภาพคมขึ้น */
.scene[data-scene="0"] { opacity: 1; }

.hero__shade-x {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(24,25,25,0.58) 0%, rgba(24,25,25,0.12) 34%, rgba(24,25,25,0.06) 50%, rgba(24,25,25,0.5) 78%, rgba(24,25,25,0.66) 100%);
}
.hero__shade-y {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(24,25,25,0.8) 0%, rgba(24,25,25,0) 26%, rgba(24,25,25,0) 82%, rgba(24,25,25,0.55) 100%);
}
.hero__grid { position: absolute; inset: 0; pointer-events: none; }
.hero__grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(242,242,242,0.07); }

.hero__rail {
  position: absolute; top: 92px; bottom: 0; width: 12.5%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.hero__rail--left { left: 0; }
.hero__rail--right { right: 0; }
.rail-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: Rubik, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream); opacity: 0.85;
}
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; padding: 0; background: var(--cream); color: var(--ink);
  transition: background 0.25s ease;
}
.round-btn:hover { background: var(--orange); }
.round-btn--lg { width: 52px; height: 52px; }
.vbar { width: 1px; height: 70px; background: rgba(242,242,242,0.25); position: relative; overflow: hidden; }
.vbar__fill { position: absolute; left: 0; top: 0; width: 1px; height: 0%; background: var(--orange); }
.counter { font-family: Rubik, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--cream); }

/* Map */
.hero__map {
  position: absolute; left: 12.5%; top: 50%;
  width: min(28vw, 380px, calc((100vh - 330px) * 0.8));
  transform: translateY(-50%); will-change: transform;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}
.hero__map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-dot { cursor: pointer; }
.map-dot text { font-family: Mitr, sans-serif; font-size: 13px; font-weight: 500; }
.map-city { font-family: Rubik, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.hero__map-note {
  font-weight: 300; font-size: 11px; color: var(--cream); opacity: 0.9; margin-top: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* Place detail panels (liquid glass) */
.hero__panels {
  position: absolute; left: 50%; right: 12.5%; top: 104px; bottom: 96px;
  pointer-events: none; display: flex; align-items: center;
}
.panel {
  position: absolute; left: 0; right: 0; top: 50%;
  max-height: 100%; overflow: hidden; opacity: 0; will-change: transform, opacity;
  transform: translate3d(0, -50%, 0);
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(18px, 3.2vh, 32px) clamp(20px, 2.6vw, 34px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(242,242,242,0.08), rgba(242,242,242,0.02));
  backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid rgba(242,242,242,0.28);
  box-shadow: inset 0 1px 0 rgba(242,242,242,0.3), 0 16px 40px rgba(0,0,0,0.16);
}
.panel[data-panel="0"] { opacity: 1; }
.panel__en {
  font-family: 'PT Serif', serif; font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.1em; color: var(--cream); opacity: 0.9;
}
.panel__title {
  font-family: Mitr, sans-serif; font-weight: 600;
  font-size: clamp(34px, min(5.6vw, 8vh), 92px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0; color: var(--orange); text-wrap: balance;
}
.panel__title--narrow { width: 285px; line-height: 1; }
.panel__loc {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 13px; letter-spacing: 0.08em; color: var(--cream);
}
.panel__loc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: block; flex-shrink: 0; }
.panel__desc {
  font-weight: 300; font-size: 16px; line-height: 1.75; margin: 4px 0 0; max-width: 460px;
  color: var(--cream); opacity: 0.85; text-wrap: pretty;
}
.panel__desc--tight { line-height: 1.45; }

/* Bottom bar */
.hero__bottom {
  position: absolute; left: 12.5%; right: 12.5%; bottom: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hero__h1 {
  font-weight: 400; font-size: 15px; line-height: 1.5; margin: 0 7px;
  color: var(--cream); opacity: 0.9;
}
.hero__nav { display: flex; align-items: center; gap: 22px; }
.hero__names { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.hero__name-side { font-size: 13px; font-weight: 300; color: var(--cream); opacity: 0.45; min-width: 92px; }
.hero__name-side--prev { text-align: right; }
.hero__name-cur { font-size: 15px; font-weight: 500; color: var(--cream); letter-spacing: 0.04em; min-width: 110px; text-align: center; }
.video-pill {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; border: none; cursor: pointer; background: var(--orange); color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(242,242,242,0.12); }
.hero__progress-fill { height: 100%; width: 0%; background: var(--orange); }

/* ---------- Category chips ---------- */
.chips-section { padding-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips__label { font-size: 14px; font-weight: 400; padding: 9px 0; margin-right: 6px; color: var(--cream); opacity: 0.9; }
.chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--cream); color: var(--ink); border: none; cursor: pointer;
  font-family: Mitr, sans-serif; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 300;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease);
}
button.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
a.chip:hover { background: var(--ink); color: var(--cream); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid rgba(242,242,242,0.45);
}
.eyebrow {
  font-family: Rubik, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-weight: 600; font-size: 42px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; color: var(--cream); }

/* ---------- Reviews ---------- */
.reviews { padding-top: 72px; }
.reviews .eyebrow { color: var(--cream); opacity: 0.8; }
.reviews__all { font-size: 15px; font-weight: 400; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; white-space: nowrap; color: var(--cream); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }

.card {
  background: var(--cream); color: var(--ink); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(24,25,25,0.14);
}
/* Cards are links: keep text ink on hover (global a:hover would turn it cream-on-cream). */
.card:hover { color: var(--ink); }
.card__media { height: 210px; position: relative; overflow: hidden; }
.card__media .slot { will-change: transform; }
.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 300;
  padding: 6px 13px; border-radius: 999px;
}
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card__title { font-weight: 500; font-size: 21px; line-height: 1.35; margin: 0; text-wrap: pretty; }
.card__excerpt { font-size: 14.5px; font-weight: 300; line-height: 1.65; margin: 0; opacity: 0.72; flex: 1; }
.card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-size: 13.5px; font-weight: 400; opacity: 0.78; letter-spacing: 0.01em;
  padding-top: 12px; border-top: 1px solid rgba(24,25,25,0.16);
}
.card__meta .sep { opacity: 0.45; }

/* ---------- Michelin ---------- */
.michelin { background: var(--ink); color: var(--cream); margin-top: 100px; padding: 84px 0 92px; }
.michelin .section-head { border-bottom-color: rgba(242,242,242,0.22); }
.michelin .eyebrow { color: var(--orange); }
.michelin__lede { font-size: 15px; font-weight: 300; margin: 12px 0 0; opacity: 0.6; max-width: 620px; }
.michelin__all { display: inline-flex; align-items: center; white-space: nowrap; font-size: 15px; font-weight: 400; color: var(--orange); padding-bottom: 6px; }
.michelin__all:hover { color: var(--cream); }
.card--michelin { box-shadow: 0 8px 24px rgba(0,0,0,0.30); }
.card--michelin .card__media { height: 190px; }
.card--michelin .card__tag { background: var(--orange); color: var(--ink); font-weight: 400; }
.card--michelin .card__body { padding: 20px 20px 22px; gap: 10px; }
.card--michelin .card__title { font-size: 20px; }
.card--michelin .card__excerpt { font-size: 14px; line-height: 1.6; }
.michelin__note { font-size: 12.5px; font-weight: 200; opacity: 0.45; margin: 26px 0 0; }

/* ---------- Trip planner ---------- */
.travel { padding-top: 96px; }
.travel__box {
  background: var(--cream); border-radius: 28px; padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 14px 36px rgba(24,25,25,0.16);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px; align-items: center;
}
.travel .eyebrow { color: var(--orange); margin-bottom: 12px; }
.travel__title { font-weight: 600; font-size: 36px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.travel__text { font-size: 16px; font-weight: 300; line-height: 1.7; margin: 0 0 24px; opacity: 0.75; text-wrap: pretty; }
.travel__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px;
  font-size: 15px; font-weight: 400; transition: background 0.25s ease, color 0.25s ease;
}
.btn--dark { background: var(--ink); color: var(--cream); padding: 12px 24px; }
.btn--dark:hover { background: var(--orange); color: var(--ink); }
.btn--outline { border: 2px solid var(--ink); padding: 10px 24px; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.travel__media { height: 280px; border-radius: 20px; overflow: hidden; position: relative; }

/* ---------- Contact ---------- */
.contact { padding-top: 70px; }
.contact__box {
  border: 1px solid rgba(24,25,25,0.30); border-radius: 28px; padding: clamp(22px, 5vw, 44px);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 36px); flex-wrap: wrap;
}
.contact__avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream);
  box-shadow: 0 8px 22px rgba(24,25,25,0.20); flex-shrink: 0;
}
.contact__copy { flex: 1; min-width: min(100%, 280px); }
.contact__title { font-weight: 600; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 0 0 10px; }
.contact__text { font-size: 16px; font-weight: 300; line-height: 1.65; margin: 0; opacity: 0.86; max-width: 620px; text-wrap: pretty; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--cream); border-radius: 20px; padding: 16px 16px 14px; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(24,25,25,0.16);
}
.qr-card:hover { color: var(--ink); }
.qr-card__img { width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: #fff; }
.qr-card__img img { width: 100%; height: 100%; object-fit: cover; }
.qr-card__label { font-size: 13.5px; font-weight: 400; color: var(--ink); text-align: center; line-height: 1.4; }
.qr-card__handle { font-family: Rubik, sans-serif; font-weight: 700; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); margin-top: 80px; }
.site-footer__top {
  padding-top: 56px; padding-bottom: 44px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start;
}
.site-footer__about { max-width: 320px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer__brand img { width: 36px; height: 36px; }
.site-footer__brand span { font-family: Rubik, sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -0.03em; }
.site-footer__about p { font-size: 13.5px; font-weight: 300; line-height: 1.65; margin: 0; opacity: 0.65; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 9px; }
.site-footer__col h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 0 0 3px; }
.site-footer__col a { font-size: 14px; font-weight: 300; color: var(--cream); opacity: 0.8; }
.site-footer__col a:hover { color: var(--orange); opacity: 1; }
.site-footer__bottom { padding-bottom: 40px; }
.site-footer__bottom div { border-top: 1px solid rgba(242,242,242,0.18); padding-top: 22px; font-size: 12.5px; font-weight: 200; opacity: 0.55; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { text-decoration: underline; color: inherit; }

/* ---------- Sample badge / empty states ---------- */
.card__sample {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; white-space: nowrap;
  background: #fff3c4; color: var(--ink); font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(24,25,25,0.18);
}
.card-grid__empty { grid-column: 1 / -1; margin: 0; padding: 40px 0; text-align: center; font-weight: 300; opacity: 0.8; }

/* ---------- Article page ---------- */
.page--article { padding-top: 92px; }
.article__top { padding-top: 44px; padding-bottom: 28px; max-width: 920px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 300; color: var(--cream); margin-bottom: 22px; }
.crumbs a { color: var(--cream); opacity: 0.9; }
.crumbs a:hover { color: var(--ink); }
.sample-banner {
  background: #fff3c4; color: var(--ink); border-radius: 14px; padding: 12px 16px;
  font-size: 14px; font-weight: 300; line-height: 1.55; margin-bottom: 22px;
}
.sample-banner strong { font-weight: 600; margin-right: 6px; }
.article__tag {
  display: inline-flex; align-items: center; white-space: nowrap; background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 300; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.article__title { font-weight: 600; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--cream); text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; gap: 9px; font-size: 14.5px; font-weight: 400; color: var(--ink); opacity: 0.85; }
.article__meta .sep, .card__meta .sep { opacity: 0.45; }
.article__cover {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 8;
  border-radius: 28px; overflow: hidden; box-shadow: 0 14px 36px rgba(24,25,25,0.18); background: var(--cream);
}
.article__layout {
  max-width: 1100px; margin: -48px auto 0; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
}
.article__layout--flat { margin-top: 0; }
.article__layout:has(> :only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article__body {
  background: var(--cream); border-radius: 24px; padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 8px 24px rgba(24,25,25,0.14);
}
.prose { font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-weight: 600; font-size: 26px; line-height: 1.3; margin: 1.8em 0 0.6em; }
.prose h3 { font-weight: 500; font-size: 21px; line-height: 1.35; margin: 1.5em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose strong { font-weight: 500; }
.prose a { color: #b33f14; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--orange); font-style: normal; opacity: 0.85; }
.prose hr { border: 0; border-top: 1px solid rgba(24,25,25,0.16); margin: 2em 0; }
.shop-box {
  position: sticky; top: 112px; background: var(--ink); color: var(--cream);
  border-radius: 22px; padding: 24px; box-shadow: 0 8px 24px rgba(24,25,25,0.2);
}
.shop-box__title { font-weight: 600; font-size: 19px; margin: 0 0 14px; color: var(--orange); }
.shop-box dl { margin: 0 0 18px; display: grid; gap: 4px; }
.shop-box dt { font-size: 12.5px; font-weight: 400; opacity: 0.6; margin-top: 8px; }
.shop-box dd { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.55; }
.shop-box .btn--dark { background: var(--orange); color: var(--ink); }
.shop-box .btn--dark:hover { background: var(--cream); }
.related { padding-top: 84px; }
.not-found { padding-top: 120px; padding-bottom: 120px; text-align: center; color: var(--ink); }
.not-found p { font-weight: 300; margin: 0 0 24px; }

/* ---------- Language toggle, disclosure, guide blocks, preview ---------- */
.nav a.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(242,242,242,0.45); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}
.nav a.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }
.disclosure {
  margin: 18px 0 0; padding: 12px 16px; background: rgba(24,25,25,0.9); color: var(--cream);
  border-radius: 14px; font-size: 14px; font-weight: 300; line-height: 1.6;
}
.disclosure strong { font-weight: 500; color: var(--orange); }
.disclosure a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.disclosure a:hover { color: var(--orange); }
.article__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.answer-box { background: #fff; border-left: 4px solid var(--orange); border-radius: 14px; padding: 18px 22px; margin: 0 0 1.6em; }
.prose .answer-box__title, .prose .facts__title, .prose .sources h2 { margin-top: 0; }
.answer-box__title, .facts__title, .sources h2 { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: #b33f14; }
.answer-box p { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.7; }
.facts { margin: 0 0 1.8em; }
.facts table { width: 100%; border-collapse: collapse; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 11px 12px; border-top: 1px solid rgba(24,25,25,0.14); font-weight: 300; }
.facts th { width: 34%; font-weight: 500; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid rgba(24,25,25,0.14); }
.sources { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid rgba(24,25,25,0.16); font-size: 15px; }
.sources ol { margin: 0; padding-left: 1.3em; }
.changelog { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid rgba(24,25,25,0.16); font-size: 15px; }
.changelog h2 { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: #b33f14; }
.changelog ul { margin: 0; padding-left: 1.3em; }
.changelog time { font-weight: 500; }
.verified { margin: 0 0 10px; font-size: 14px; font-weight: 400; opacity: 0.8; }
.card--highlight { outline: 4px solid var(--ink); outline-offset: 4px; }
.card--highlight .card__tag::after { content: "· ร้านของคุณ"; margin-left: 0.4em; }
.hub__lead { font-size: 18px; font-weight: 300; line-height: 1.7; margin: 0; max-width: 640px; color: var(--ink); }

/* ---------- แกลเลอรีภาพ Bento (3–7 รูป) + lightbox ---------- */
.bento { max-width: 1100px; margin: 28px auto 28px; }
.bento ~ .article__layout { margin-top: 0; }
.bento__title { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); opacity: 0.86; }
.bento__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; gap: 10px; }
.bento__tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--cream); box-shadow: 0 8px 22px rgba(24,25,25,0.14); }
.bento__tile:first-child { grid-column: 1 / -1; grid-row: span 2; }
.bento--n4 .bento__tile:last-child, .bento--n6 .bento__tile:last-child { grid-column: 1 / -1; }
.bento__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bento__btn:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.bento__btn picture { display: block; width: 100%; height: 100%; }
.bento__btn img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bento__label {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 13px; border-radius: 999px; pointer-events: none;
  font-size: 12.5px; font-weight: 500; color: var(--cream); background: rgba(24,25,25,0.52);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); border: 1px solid rgba(242,242,242,0.22);
}
@media (hover: hover) { .bento__tile:hover .bento__btn img { transform: scale(1.045); } }
@media (min-width: 768px) {
  .bento__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 190px); gap: 12px; }
  .bento__tile { border-radius: 24px; }
  .bento__tile:first-child, .bento--n4 .bento__tile:last-child, .bento--n6 .bento__tile:last-child { grid-column: auto; grid-row: auto; }
  .bento__tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento--n3 .bento__tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
  .bento--n3 .bento__tile:nth-child(3) { grid-column: 3 / 5; grid-row: 2; }
  .bento--n4 .bento__tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
  .bento--n4 .bento__tile:nth-child(3) { grid-column: 3; grid-row: 2; }
  .bento--n4 .bento__tile:nth-child(4) { grid-column: 4; grid-row: 2; }
  .bento--n5 .bento__tile:nth-child(2), .bento--n6 .bento__tile:nth-child(2), .bento--n7 .bento__tile:nth-child(2) { grid-column: 3; grid-row: 1; }
  .bento--n5 .bento__tile:nth-child(3), .bento--n6 .bento__tile:nth-child(3), .bento--n7 .bento__tile:nth-child(3) { grid-column: 4; grid-row: 1; }
  .bento--n5 .bento__tile:nth-child(4), .bento--n6 .bento__tile:nth-child(4), .bento--n7 .bento__tile:nth-child(4) { grid-column: 3; grid-row: 2; }
  .bento--n5 .bento__tile:nth-child(5), .bento--n6 .bento__tile:nth-child(5), .bento--n7 .bento__tile:nth-child(5) { grid-column: 4; grid-row: 2; }
  .bento--n6 .bento__tile:nth-child(6) { grid-column: 1 / 5; grid-row: 3; }
  .bento--n7 .bento__tile:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
  .bento--n7 .bento__tile:nth-child(7) { grid-column: 3 / 5; grid-row: 3; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 56px 64px 24px;
  background: rgba(24,25,25,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: lb-in .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); border-radius: 14px; object-fit: contain; }
.lightbox__cap { font-size: 14px; color: var(--cream); text-align: center; max-width: 720px; line-height: 1.55; }
.lightbox__cap strong { color: var(--orange); font-weight: 500; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242,242,242,0.3);
  background: rgba(242,242,242,0.1); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 767px) { .lightbox { padding: 60px 8px 16px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } .lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; } .lightbox__cap { padding: 0 60px; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } .bento__btn img { transition: none; } }

/* ---------- หน้าตัวอย่างสำหรับเสนอร้าน (/udon/demo/) ---------- */
/* ป้ายแจ้งลอยล่างกลางจอ (header เป็น fixed จึงไม่วางไว้ด้านบน) */
.demo-ribbon { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 20px); width: max-content; background: var(--ink); color: var(--cream); text-align: center; font-size: 12px; line-height: 1.4; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--orange); box-shadow: 0 4px 16px rgba(0,0,0,0.35); pointer-events: none; }
@media (max-width: 767px) { .demo-ribbon { font-size: 11px; padding: 4px 10px; bottom: 4px; } }
.demo-ribbon strong { color: var(--orange); font-weight: 500; }

/* ---------- ร้านโฆษณา (ADR 0005): ป้าย "โฆษณา" ต้องเห็นชัดทุกใบ ---------- */
.card__tag--ad { background: var(--cream); color: var(--ink); font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--ink); }
.card--ad { outline: 1px dashed rgba(24,25,25,0.35); outline-offset: -1px; }
.ads-more { margin: 18px 0 0; font-size: 14px; }
.ads-more a { text-decoration: underline; }

/* ---------- Intro video: ป๊อปอัปกระจกกลางจอ ซ้อนบน hero ---------- */
.video-layer {
  position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 48px); padding-top: calc(var(--hdr, 92px) + clamp(14px, 4vw, 48px));
  background: rgba(24,25,25,0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease;
}
.video-layer[hidden] { display: none; }
.video-layer.is-in { opacity: 1; }
.video-layer__window {
  width: min(100%, 1120px, calc((100vh - 220px) * 16 / 9)); width: min(100%, 1120px, calc((100svh - 220px) * 16 / 9));
  display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 16px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(242,242,242,0.14), rgba(242,242,242,0.04));
  border: 1px solid rgba(242,242,242,0.28); box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  opacity: 0; transform: translateY(18px) scale(0.94); transition: opacity .4s ease .12s, transform .45s cubic-bezier(.2,.8,.2,1) .12s;
}
.video-layer.is-in .video-layer__window { opacity: 1; transform: none; }
.video-layer:not(.is-in) .video-layer__window { transition-delay: 0s; transition-duration: .2s; }
.video-layer__head { display: flex; align-items: center; gap: 12px; padding: 0 4px 0 10px; }
.video-layer__title { flex: 1; font-size: 15px; font-weight: 400; color: var(--cream); letter-spacing: 0.04em; }
.video-layer__title span { color: var(--orange); }
.video-layer__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video-layer__frame video, .video-layer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.video-layer__sound {
  height: 34px; padding: 0 16px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 500;
}
.video-layer__sound[hidden] { display: none; }
.video-layer__hint { display: none; margin: 0; text-align: center; font-size: 12px; font-weight: 300; color: var(--cream); opacity: 0.75; }
@media (max-width: 767px) { .video-layer { padding: 12px; padding-top: calc(var(--hdr, 92px) + 12px); } .video-layer__window { padding: 10px 10px 14px; border-radius: 22px; } .video-layer__title { font-size: 13px; } .video-layer__hint { display: block; } }
@media (prefers-reduced-motion: reduce) { .video-layer, .video-layer__window { transition: none; transform: none; } }
.tilt-btn {
  position: absolute; left: 16px; bottom: 112px; z-index: 30; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(242,242,242,0.4); background: rgba(24,25,25,0.55); color: var(--cream); font-size: 12px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tilt-btn[hidden] { display: none; }
.tilt-btn[aria-pressed="true"] { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 767px) {
  /* เมนูมือถือ: เห็นครบทุกแท็บโดยไม่ต้องปัด — บีบขนาดให้อยู่บรรทัดเดียว ถ้าจอแคบมากให้ขึ้นบรรทัดใหม่ (ไม่ซ่อน) */
  .site-header__inner { padding: 8px 12px 10px; gap: 6px 12px; flex-wrap: wrap; }
  .brand { gap: 9px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 22px; }
  .brand__tag { font-size: 12px; padding-left: 9px; }
  .nav {
    margin-left: 0; width: 100%; flex-wrap: wrap; overflow: visible; gap: 6px 10px;
    justify-content: space-between;
  }
  .nav a { font-size: 13px; }
  .nav a.nav__cta { padding: 7px 12px; }
  /* ปุ่มภาษาไปอยู่มุมขวาบนแถวโลโก้ เพื่อให้แท็บเมนูที่เหลืออยู่ครบในบรรทัดเดียว */
  .site-header__inner { position: relative; }
  .nav a.lang-toggle { position: absolute; top: 12px; right: 12px; min-width: 38px; height: 32px; padding: 0 9px; font-size: 12px; }
  #reviews, #michelin, #travel, #contact, #guides { scroll-margin-top: 112px; }

  .hero__shade-x { background: linear-gradient(to bottom, rgba(24,25,25,0.55) 0%, rgba(24,25,25,0.3) 38%, rgba(24,25,25,0) 55%, rgba(24,25,25,0.15) 70%, rgba(24,25,25,0.7) 100%); }
  .hero__grid, .hero__rail, .hero__map-note, .hero__name-side { display: none; }
  /* Hero มือถือ: ภาพเต็มจอ · แผนที่ซ้ายบน · กล่องข้อมูลขวาบน เหลือกลางจอให้เห็นภาพชัดๆ
     --hdr = ความสูงเมนูมือถือ (103px) · --mw = ความกว้างแผนที่ */
  .hero__stage { --hdr: 103px; --mw: min(36vw, 160px); --gap: 12px; }
  .hero__map { left: var(--gap); top: calc(var(--hdr) + 12px); width: var(--mw); }
  .hero__panels {
    left: auto; right: var(--gap); top: calc(var(--hdr) + 12px); bottom: auto;
    width: calc(100% - var(--mw) - var(--gap) * 2 - 8px);
    height: min(300px, calc(100svh - var(--hdr) - 150px));
    align-items: flex-start;
  }
  .panel { top: 0; padding: 12px 14px; gap: 6px; border-radius: 18px; }
  .panel__en { font-size: 13px; }
  .panel__title { font-size: clamp(24px, 7.4vw, 30px); }
  .panel__title--narrow { width: auto; }
  .panel__loc { font-size: 12px; letter-spacing: 0.03em; }
  .panel__desc {
    font-size: 12.5px; line-height: 1.5; margin-top: 0;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero__bottom { left: 16px; right: 16px; bottom: 16px; justify-content: center; gap: 10px; }
  .hero__h1 { font-size: 12px; text-align: center; width: 100%; max-width: none; }
  .hero__names { gap: 0; }
  .video-pill { display: flex; }

  .page--article { padding-top: 128px; }
  .facts th { width: 40%; }
  .answer-box p { font-size: 16.5px; }
  .article__top { padding-top: 28px; }
  .article__cover { border-radius: 20px; aspect-ratio: 4 / 3; }
  .article__layout { grid-template-columns: minmax(0, 1fr); margin-top: -28px; gap: 20px; }
  .article__layout--flat { margin-top: 0; }
  .article__body { border-radius: 20px; }
  .prose { font-size: 16px; line-height: 1.8; }
  .prose h2 { font-size: 22px; }
  .shop-box { position: static; }
}

@media (max-width: 340px) { .brand__tag { display: none; } .hero__stage { --mw: 30vw; --hdr: 130px; } .page--article { padding-top: 150px; } }

@media (prefers-reduced-motion: reduce) {
  .chip, .btn, .round-btn { transition: none; }
}

/* ============================================================
   หน้าแรก v2: แผ่นเนื้อหาทับ Hero · ตัวอักษรวิ่ง · กริดนิตยสาร · มือถือปัดข้าง
   โทนสี: พื้นส้ม การ์ดครีม (เลือกแล้ว 2569-10) สีทั้งหมดอยู่ในตัวแปร --s-* ของ .sheet
   ============================================================ */
.sheet {
  --s-bg: var(--orange); --s-title: var(--cream); --s-eyebrow: var(--cream); --s-muted: rgba(242,242,242,0.9);
  --s-line: rgba(242,242,242,0.45); --s-card: var(--cream); --s-chip: var(--cream); --s-chip-line: transparent;
  --s-shadow: 0 8px 24px rgba(24,25,25,0.14);
  position: relative; z-index: 2; margin-top: -40px; padding-bottom: 96px;
  background: var(--s-bg); border-radius: 40px 40px 0 0;
  box-shadow: 0 -24px 60px rgba(0,0,0,0.35);
}
.sheet::before { /* ที่จับแบบแผ่นชีต */
  content: ""; position: absolute; top: 12px; left: 50%; width: 46px; height: 5px; margin-left: -23px;
  border-radius: 99px; background: var(--s-title); opacity: 0.18;
}
main:has(.sheet) + .site-footer { margin-top: 0; }
/* เว้นพื้นใต้ Hero เท่ากับส่วนที่แผ่นทับ → แผ่นไม่บังปุ่มแถวล่างของ Hero */
.hero:has(+ .sheet) { padding-bottom: 40px; }

/* ตัวอักษรวิ่ง (ตกแต่ง, aria-hidden) */
.marquee { overflow: hidden; padding: 40px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; flex-shrink: 0; }
.marquee__w { font-weight: 600; font-size: clamp(32px, 5.4vw, 76px); line-height: 1.35; white-space: nowrap; color: var(--s-title); letter-spacing: -0.01em; }
.marquee__w--line { color: transparent; -webkit-text-stroke: 1.4px var(--s-title); opacity: 0.75; }
.marquee__dot { width: 0.3em; height: 0.3em; font-size: clamp(32px, 5.4vw, 76px); border-radius: 50%; background: var(--ink); margin: 0 0.55em; flex-shrink: 0; }

/* สีตามโทนในแผ่นเนื้อหา */
.sheet .chips-section { padding-top: 26px; }
.sheet .chips__label { color: var(--s-muted); opacity: 1; }
.sheet .chip { background: var(--s-chip); box-shadow: inset 0 0 0 1px var(--s-chip-line); }
.sheet .chip[aria-pressed="true"], .sheet a.chip:hover { background: var(--ink); color: var(--cream); box-shadow: none; }
.sheet .section-head { border-bottom-color: var(--s-line); }
.sheet .section-title { color: var(--s-title); }
.sheet .michelin .section-title { color: var(--cream); }
.sheet .michelin .section-head { border-bottom-color: rgba(242,242,242,0.22); }
.sheet .reviews .eyebrow { color: var(--s-eyebrow); opacity: 1; }
.sheet .reviews__all { color: var(--s-muted); }
.sheet .ads-more, .sheet .ads-more a { color: var(--s-title); }
.sheet .michelin { margin: 100px clamp(8px, 1.4vw, 20px) 0; border-radius: 40px; }

/* การ์ด: ภาพซูมเบา ๆ + "อ่านต่อ →" */
.card .slot img { transition: transform 0.9s var(--ease); }
.card__meta::after { content: "อ่านต่อ →"; margin-left: auto; font-weight: 500; color: #b33f14; opacity: 0; transform: translateX(-6px); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.card--ad .card__meta::after { content: "ดูข้อมูลร้าน →"; }
.card--michelin .card__meta::after { color: #b33f14; }
html[lang="en"] .card__meta::after { content: "Read →"; }
html[lang="en"] .card--ad .card__meta::after { content: "View shop →"; }
@media (hover: hover) {
  .card:hover .slot img { transform: scale(1.06); }
  .card:hover .card__meta::after { opacity: 1; transform: none; }
}
@media (hover: none) { .card__meta::after { opacity: 0.9; transform: none; } }

/* กริดแบบนิตยสาร (render.js: magazineVariants) — กู้กลับ 9 ต.ค. ตามแผน docs/design/2026-10-09_Udon-Magazine-Grid-Restore-Plan.md (ตัดมาจาก 182d50a เฉพาะส่วนกริด ไม่เอาโทนครีม/bg.js กลับ) */
@media (min-width: 768px) {
  .card-grid--mag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--mag > .card--feature, .card-grid--mag > .card--wide { grid-column: span 2; }
  .card-grid--mag > .card--feature .card__media { height: 320px; }
}
@media (min-width: 1024px) {
  .card-grid--mag { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--mag > .card--feature { grid-row: span 2; }
  .card-grid--mag > .card--feature .card__media { height: auto; flex: 1; min-height: 360px; }
  .card-grid--mag > .card--feature .card__body { flex: 0 0 auto; padding: 28px 30px 30px; }
  .card-grid--mag > .card--feature .card__title { font-size: 30px; line-height: 1.28; }
  .card-grid--mag > .card--feature .card__excerpt { font-size: 16px; flex: 0 0 auto; }
  .card-grid--mag > .card--wide { flex-direction: row; min-height: 300px; }
  .card-grid--mag > .card--wide .card__media { height: auto; flex: 0 0 56%; }
  .card-grid--mag > .card--wide .card__body { padding: 28px 28px 26px; justify-content: center; }
  .card-grid--mag > .card--wide .card__title { font-size: 25px; }
  .card-grid--mag > .card--wide .card__excerpt { flex: 0 0 auto; }
}
/* จอ 2 คอลัมน์: การ์ดปกติใบสุดท้ายกว้างเต็มแถวเมื่อจำนวนเป็นคี่ (render.js ใส่ card--wide-md ให้) กันช่องโหว่ */
@media (min-width: 768px) and (max-width: 1023.98px) { .card-grid--mag > .card--wide-md { grid-column: span 2; } }
/* ตอนกรองหมวด จำนวนการ์ดเปลี่ยน → กลับเป็นกริดธรรมดา */
.card-grid--mag.is-filtered > .card { grid-column: auto; grid-row: auto; flex-direction: column; min-height: 0; }
.card-grid--mag.is-filtered > .card .card__media { height: 210px; flex: none; min-height: 0; }
.card-grid--mag.is-filtered > .card .card__body { padding: 22px 22px 24px; }
.card-grid--mag.is-filtered > .card .card__title { font-size: 21px; }
.card-grid--mag.is-filtered > .card .card__excerpt { font-size: 14.5px; flex: 1; }

/* มือถือ: แต่ละส่วนเป็นแถวปัดซ้าย-ขวา เห็นใบถัดไปโผล่ขอบ */
.rail-meter { display: none; }
@media (max-width: 767px) {
  .sheet { margin-top: -28px; border-radius: 28px 28px 0 0; padding-bottom: 64px; }
  .hero:has(+ .sheet) { padding-bottom: 28px; }
  .marquee { padding-top: 30px; }
  .sheet .michelin { border-radius: 28px; margin-top: 64px; padding: 56px 0 60px; }
  .reviews { padding-top: 52px; }
  .section-title { font-size: 30px; }
  [data-rail] {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 20px;
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > .card { flex: 0 0 84%; scroll-snap-align: start; }
  [data-rail] > .card:only-child { flex-basis: 100%; }
  [data-rail] > .card-grid__empty { flex: 1 0 100%; }
  [data-rail] > .card .card__media { height: 200px; }
  .rail-meter { display: block; position: relative; height: 3px; border-radius: 3px; margin: 2px auto 0; width: 96px; background: var(--s-line, rgba(24,25,25,0.12)); overflow: hidden; }
  .michelin .rail-meter { background: rgba(242,242,242,0.18); }
  .rail-meter i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--orange); }
  .rail-meter[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card .slot img, .card__meta::after { transition: none; }
  .marquee__track { transform: none !important; }
}

/* ============================================================
   หน้าแรก v2 กลุ่ม 2: แถบหมวดลอยติดจอ · วิธีรีวิว · มิชลินแสงตามเคอร์เซอร์ · CTA
   ============================================================ */
/* แถบหมวด: ลอยติดใต้เมนูตอนเลื่อนผ่านรีวิว (main.js: data-dock) */
.chips-section { position: sticky; top: calc(var(--hdr-h, 92px) + 10px); z-index: 20; transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.chips { position: relative; }
.chips-section.is-away { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.chips__pill { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border-radius: 999px; background: var(--orange); opacity: 0; pointer-events: none; transition: left 0.5s var(--ease), width 0.5s var(--ease), opacity 0.25s ease; }
.chip { position: relative; z-index: 1; }
.chip__n { margin-left: 7px; font-size: 11.5px; font-weight: 500; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: rgba(24,25,25,0.08); }
.chip[aria-pressed="true"] .chip__n { background: rgba(242,242,242,0.18); }
.chip:disabled { opacity: 0.45; cursor: default; transform: none; }
.chips-section.is-docked .chips {
  margin: -6px; padding: 6px; border-radius: 999px; width: fit-content; max-width: calc(100% + 12px);
  background: rgba(24,25,25,0.78); box-shadow: 0 12px 34px rgba(24,25,25,0.30), inset 0 0 0 1px rgba(242,242,242,0.14);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.chips-section.is-docked .chips__label { display: none; }
.chips-section.is-docked .chip { background: transparent; color: var(--cream); box-shadow: none; }
.chips-section.is-docked .chip[aria-pressed="true"] { color: var(--ink); }
.chips-section.is-docked .chip[aria-pressed="true"] .chip__n { background: rgba(24,25,25,0.14); }
.chips-section.is-docked .chip__n { background: rgba(242,242,242,0.14); }
.chips-section.is-docked .chips__pill { opacity: 1; }
.chips-section.is-docked a.chip:hover { background: rgba(242,242,242,0.12); color: var(--cream); }

/* วิธีรีวิว */
.trust { padding-top: 96px; color: var(--cream); }
.trust__head .eyebrow { color: var(--cream); opacity: 0.85; }
.trust__head { margin-bottom: 30px; }
.trust__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(242,242,242,0.45); }
.trust__step { padding: 26px 28px 8px 0; position: relative; }
.trust__step + .trust__step { padding-left: 28px; border-left: 1px solid rgba(242,242,242,0.3); }
.trust__no { display: block; font-family: Rubik, sans-serif; font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.3px var(--cream); margin-bottom: 18px; }
.trust__step h3 { font-weight: 600; font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
.trust__step p { font-size: 15px; font-weight: 300; line-height: 1.7; margin: 0; opacity: 0.9; text-wrap: pretty; }
.trust__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust__stat { display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: var(--cream); border-radius: 20px; padding: 16px 22px; min-width: 180px; }
.trust__num { font-family: Rubik, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--orange); }
.trust__num time { font-family: Mitr, sans-serif; font-weight: 500; font-size: 22px; }
.trust__label { font-size: 13px; font-weight: 300; opacity: 0.8; }
.trust__more { display: inline-flex; margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.trust__more:hover { color: var(--cream); }

/* มิชลิน: แสงตามเคอร์เซอร์ + เส้นขอบจังหวัดจาง ๆ + ใบอื่นหรี่ลงตอนชี้ใบหนึ่ง */
.michelin { position: relative; overflow: hidden; isolation: isolate; }
.michelin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--spot-o, 0); transition: opacity 0.5s ease;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(245,110,71,0.16), transparent 65%);
}
.michelin__outline { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(56vw, 720px); height: auto; transform: translateY(-50%) rotate(-6deg); opacity: 0.07; pointer-events: none; }
@media (hover: hover) {
  .michelin .card-grid:hover > .card:not(:hover) { filter: brightness(0.74) saturate(0.85); }
  .michelin .card { transition: filter 0.4s ease, transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.45s ease; }
}

/* CTA: ปุ่ม LINE (มือถือ) · การ์ด QR เอียงตามเมาส์ · มาสคอตลอยเบา ๆ */
.line-btn { display: none; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border-radius: 999px; background: #06c755; color: #fff; font-size: 17px; font-weight: 500; box-shadow: 0 10px 24px rgba(6,199,85,0.3); }
.line-btn span { font-family: Rubik, sans-serif; font-weight: 700; font-size: 15px; opacity: 0.9; }
.line-btn:hover { color: #fff; filter: brightness(1.05); }
.qr-card { position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); will-change: transform; }
.qr-card__shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 0%), rgba(255,255,255,0.55), transparent 60%); mix-blend-mode: soft-light; z-index: 2; }
.qr-card.is-tilting .qr-card__shine { opacity: 1; }
@keyframes kd-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.contact__avatar { animation: kd-float 5.5s ease-in-out infinite; transition: rotate 0.6s var(--ease); }

@media (max-width: 767px) {
  .chips-section { padding-top: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); gap: 8px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips__label { display: none; }
  .chip { flex-shrink: 0; padding: 8px 14px; font-size: 13.5px; }
  .chips-section.is-docked .chips { margin: -4px calc(-1 * var(--gutter) + 8px); padding: 5px 6px; max-width: none; width: auto; }
  .chips__pill { top: 4px; height: calc(100% - 8px); }
  .chips-section.is-docked .chips__pill { top: 5px; height: calc(100% - 10px); }
  .trust { padding-top: 64px; }
  .trust__steps { grid-template-columns: minmax(0, 1fr); }
  .trust__step, .trust__step + .trust__step { padding: 20px 0 18px; border-left: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; }
  .trust__step + .trust__step { border-top: 1px solid rgba(242,242,242,0.3); }
  .trust__no { font-size: 38px; margin: 2px 0 0; grid-row: span 2; }
  .trust__step h3 { font-size: 19px; margin-bottom: 4px; }
  .trust__stat { flex: 1 1 140px; min-width: 0; padding: 14px 16px; }
  .trust__num { font-size: 28px; }
  .michelin__outline { width: 120vw; right: -40%; top: 18%; }
  .line-btn { display: inline-flex; }
  .contact .qr-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chips-section, .chips__pill, .qr-card, .contact__avatar { transition: none; animation: none; }
}

/* ============================================================
   หน้าใน (บทความ / หน้ารวม / โฆษณา / 404): ภาษาดีไซน์เดียวกับหน้าแรก v2
   แถบมืด (phero) แบบ Hero → เนื้อหาเลื่อนขึ้นมาทับเป็นแผ่นส้มมุมโค้ง (.sheet--page)
   ============================================================ */
.page--article { padding-top: 0; }
.phero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
  padding: 124px 0 84px; isolation: isolate;
}
.phero::before { /* เส้นกริดแนวตั้งแบบ Hero */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(242,242,242,0.06) 0 1px, transparent 1px 12.5%);
}
.phero::after { /* แสงส้มมุมขวาบน */
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -12%; top: -45%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(245,110,71,0.34), rgba(245,110,71,0) 70%);
}
.phero .article__top { padding-top: 0; padding-bottom: 0; }
.phero .crumbs { margin-bottom: 20px; }
.phero .crumbs a:hover { color: var(--orange); }
.phero .article__tag { background: var(--orange); color: var(--ink); font-weight: 400; }
.phero .article__meta { color: var(--cream); opacity: 0.85; }
.phero .article__meta a { color: var(--cream); }
.phero .hub__lead { color: var(--cream); opacity: 0.85; }
.phero .disclosure { background: rgba(242,242,242,0.08); border: 1px solid rgba(242,242,242,0.2); }
.phero--full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }

.sheet--page { margin-top: -44px; padding-bottom: 72px; min-height: 40vh; }
.sheet--page .related { padding-top: 64px; }
.sheet--page .related:first-child { padding-top: 76px; }
.sheet--page .contact { padding-top: 76px; }
main:has(.sheet--page) + .site-footer { margin-top: 0; }
.sheet--page .trust { padding-top: 76px; }

/* บทความ: ภาพปกยกขึ้นเหนือขอบแผ่น */
.sheet--page .article__cover { margin-top: -120px; box-shadow: 0 24px 60px rgba(24,25,25,0.34); }
.sheet--page .article__wrap { padding-top: 1px; } /* กัน margin ของภาพปกดันทั้งแผ่นขึ้นไป */
.phero--cover { padding-bottom: 210px; }
.sheet--page .bento:first-child { margin-top: 56px; }
.sheet--page .article__layout--flat { padding-top: 56px; }
.sheet--page .article__layout { margin-top: -48px; }
.sheet--page .article__layout--flat { margin-top: 0; }

/* 404 */
.not-found { color: var(--cream); text-align: left; padding: 120px 0 80px; }
.not-found.phero--full { padding: 120px 0 80px; }
.not-found__code { font-family: Rubik, sans-serif; font-weight: 900; font-size: clamp(120px, 24vw, 280px); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--orange); margin: 0 0 12px -0.04em; }
.not-found p { font-weight: 300; margin: 0 0 28px; opacity: 0.85; }
.btn--orange { background: var(--orange); color: var(--ink); padding: 12px 26px; font-weight: 500; }
.btn--orange:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 767px) {
  .page--article { padding-top: 0; }
  .phero { padding: 128px 0 64px; }
  .phero--full, .not-found.phero--full { padding: 128px 0 64px; }
  .phero--cover { padding-bottom: 150px; }
  .sheet--page { margin-top: -32px; padding-bottom: 56px; }
  .sheet--page .article__cover { margin-top: -84px; }
  .sheet--page .article__layout { margin-top: -28px; }
  .sheet--page > .related:first-child, .sheet--page .related:first-child { padding-top: 56px; }
  .sheet--page .related { padding-top: 48px; }
  .sheet--page .contact { padding-top: 56px; }
}
@media (max-width: 340px) { .phero { padding-top: 152px; } }
.phero--full > .wrap { width: 100%; }

/* ============================================================
   แก้ตามผลตรวจ Design 9 ต.ค. (docs/design/2026-10-09_Udon-Magazine-Grid-Restore-Plan.md ข้อ 7)
   ============================================================ */
/* ข้อ 1 — ทาง (ก) ที่ Kitti เลือก 9 ต.ค.: ตัวหนังสือบนพื้นส้มเป็นหมึก (เดิมครีมบนส้ม 2.60:1 → หมึก 6.0:1) */
.sheet { --s-title: var(--ink); --s-eyebrow: var(--ink); --s-muted: rgba(24,25,25,0.85); --s-line: rgba(24,25,25,0.3); }
.sheet .trust { color: var(--ink); }
.sheet .trust__head .eyebrow { color: var(--ink); opacity: 1; }
.sheet .trust__steps { border-top-color: rgba(24,25,25,0.3); }
.sheet .trust__step + .trust__step { border-left-color: rgba(24,25,25,0.22); }
.sheet .trust__no { -webkit-text-stroke-color: var(--ink); }
.sheet .trust__step p { opacity: 1; }
.sheet .trust__more:hover { color: var(--ink); opacity: 0.7; }
/* ป้ายเล็กสีส้มบนการ์ดครีม (2.60:1) → ส้มเข้ม brand-700 (5.2:1) */
.travel .eyebrow { color: #b33f14; }
/* ข้อ 2 — ป้ายหมวดพื้นหมึกกลืนกับการ์ดไม่มีรูปพื้นหมึก → ขอบครีมบาง */
.card__tag:not(.card__tag--ad) { box-shadow: inset 0 0 0 1px rgba(242,242,242,0.55); }
/* ข้อ 3 — ปุ่ม LINE: ขาวบนเขียว 2.26:1 → หมึกบนเขียว 7.8:1 (คงสีปุ่ม) */
.line-btn, .line-btn:hover { color: var(--ink); }
.line-btn span { opacity: 1; }
/* ข้อ 4 — ลิงก์ในเนื้อหา + หัวข้อเล็ก + "อ่านต่อ →" เดิมส้ม #c4472a 4.38:1 → brand-700 #b33f14 5.2:1 (แก้ที่บรรทัดของแต่ละตัวโดยตรง) */
/* ข้อ 5 — ป้ายบนภาพแกลเลอรี 3.48:1 → พื้นหมึกเข้มขึ้น */
.bento__label { background: rgba(24,25,25,0.78); }
