/* ==========================================================================
   PerJourney — stylesheet หลักของทั้งเว็บ
   ใช้ร่วมกันทุกหน้า: หน้าแรก, หน้าบทความ, 404
   --------------------------------------------------------------------------
   1. Fonts            5. Header / Nav        9.  Stories (บันทึก)
   2. Tokens (สี/ขนาด)  6. Hero               10. About / Footer
   3. Base             7. Expo + Navigator    11. Article page
   4. Utilities/Btn    8. Plan (ก่อนไปงาน)     12. Motion / Print
   ========================================================================== */

/* 1. Fonts — โฮสต์เองในโฟลเดอร์ /assets/fonts (ไม่ต้องพึ่ง Google Fonts) ---- */
@font-face { font-family: "Mitr"; font-weight: 400; font-display: swap;
  src: url(../fonts/mitr-thai-400.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Mitr"; font-weight: 400; font-display: swap;
  src: url(../fonts/mitr-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mitr"; font-weight: 500; font-display: swap;
  src: url(../fonts/mitr-thai-500.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Mitr"; font-weight: 500; font-display: swap;
  src: url(../fonts/mitr-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mitr"; font-weight: 600; font-display: swap;
  src: url(../fonts/mitr-thai-600.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Mitr"; font-weight: 600; font-display: swap;
  src: url(../fonts/mitr-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "Plex Looped"; font-weight: 400; font-display: swap;
  src: url(../fonts/plex-looped-thai-400.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-weight: 400; font-display: swap;
  src: url(../fonts/plex-looped-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Looped"; font-weight: 500; font-display: swap;
  src: url(../fonts/plex-looped-thai-500.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-weight: 500; font-display: swap;
  src: url(../fonts/plex-looped-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Looped"; font-weight: 600; font-display: swap;
  src: url(../fonts/plex-looped-thai-600.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-weight: 600; font-display: swap;
  src: url(../fonts/plex-looped-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* 2. Tokens — เปลี่ยนสีทั้งเว็บได้จากตรงนี้ที่เดียว ----------------------- */
:root {
  /* โทน "หมอกริมบึง": เขียวหมอกอ่อน + เขียวสนเข้ม + ชมพูบัว */
  --paper:       #EEF4F0;   /* พื้นหลังหลัก */
  --surface:     #FAFCFB;   /* พื้นการ์ด/แผง */
  --mist:        #E2ECE6;   /* พื้นรอง */
  --water:       #CFE3DD;   /* สีน้ำในบึง */
  --water-deep:  #5E9A90;
  --ink:         #1D3530;   /* ตัวอักษรหลัก (เขียวสนเข้ม) */
  --ink-soft:    #4B635C;   /* ตัวอักษรรอง */
  --line:        #CCDBD3;   /* เส้นขอบ */
  --lotus:       #B4436A;   /* ชมพูบัวแดง — ปุ่มหลัก/จุดเด่น */
  --lotus-ink:   #FFFFFF;   /* ตัวอักษรบนปุ่มชมพู */
  --lotus-soft:  #F5DEE6;
  --leaf:        #2F7A57;   /* สถานะ "เปิดอยู่" */
  --sun:         #E4B548;
  --pin-faint:   #A9BFB7;
  --footer-bg:   #1D3530;
  --footer-ink:  #DCE8E3;

  --font-display: "Mitr", "Plex Looped", "Noto Sans Thai", system-ui, sans-serif;
  --font-body:    "Plex Looped", "Noto Sans Thai Looped", "Sarabun", system-ui, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-panel: 0 1px 0 rgba(29, 53, 48, .04), 0 18px 40px -24px rgba(29, 53, 48, .35);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #12201D;
    --surface:    #182A26;
    --mist:       #1B2F2A;
    --water:      #1F3B36;
    --water-deep: #6FB2A6;
    --ink:        #E3EEEA;
    --ink-soft:   #A9BEB7;
    --line:       #2C433D;
    --lotus:      #E98DAC;
    --lotus-ink:  #2A0F1A;
    --lotus-soft: #3A2230;
    --leaf:       #7DD3A6;
    --sun:        #E9C46A;
    --pin-faint:  #4C6760;
    --footer-bg:  #0D1816;
    --footer-ink: #C9D9D3;
    --shadow-panel: 0 18px 40px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:#12201D; --surface:#182A26; --mist:#1B2F2A; --water:#1F3B36; --water-deep:#6FB2A6;
  --ink:#E3EEEA; --ink-soft:#A9BEB7; --line:#2C433D; --lotus:#E98DAC; --lotus-ink:#2A0F1A;
  --lotus-soft:#3A2230; --leaf:#7DD3A6; --sun:#E9C46A; --pin-faint:#4C6760;
  --footer-bg:#0D1816; --footer-ink:#C9D9D3; --shadow-panel:0 18px 40px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px — ภาษาไทยอ่านสบายกว่า 16px */
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 .5em;
  letter-spacing: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--lotus); outline-offset: 3px; border-radius: 6px; }

/* 4. Utilities + Buttons ------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.nw { white-space: nowrap; }   /* กันคำไทยถูกตัดกลางวลีในหัวข้อ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .6em 1.35em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--lotus); color: var(--lotus-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--lotus) 86%, var(--ink)); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn--small { min-height: 40px; padding: .45em 1.05em; font-size: .95rem; }
.btn:active { transform: translateY(1px); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.07rem; }

/* 5. Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; }
.mark-trail { fill: var(--ink); }
.mark-pin   { fill: var(--lotus); }
.mark-dot   { fill: var(--paper); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; }
.brand__name span { color: var(--lotus); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .98rem;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(0,0,0,.4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 12px 8px; font-size: 1.08rem; border-radius: var(--radius-s); }
  .site-nav .btn { margin: 8px 0 0; }
}

/* 6. Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); font-weight: 500; line-height: 1.3; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.06rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  margin-bottom: 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-soft); line-height: 1.4;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pin-faint); flex: none; }
.status[data-state="open"] .status__dot { background: var(--leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 22%, transparent); }
.status[data-state="closed-today"] .status__dot,
.status[data-state="before-open"] .status__dot { background: var(--sun); }
.status__main { color: var(--ink); font-weight: 500; }

.hero__art { position: relative; }
.journey-map { width: 100%; height: auto; overflow: visible; }
.journey-map .land { fill: var(--mist); }
.journey-map .land-2 { fill: color-mix(in srgb, var(--mist) 60%, var(--water)); }
.journey-map .lake { fill: color-mix(in srgb, var(--water) 82%, var(--water-deep)); }
.journey-map .ripple { fill: none; stroke: var(--water-deep); stroke-width: 1.5; stroke-linecap: round; opacity: .35; }
.journey-map .route { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .55; }
.journey-map .route-ahead { fill: none; stroke: var(--pin-faint); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.journey-map .pin-faint { fill: var(--surface); stroke: var(--pin-faint); stroke-width: 2.5; }
.journey-map .pin-faint-q { fill: var(--pin-faint); font: 600 15px var(--font-display); }
.journey-map .pin-start { fill: var(--ink); }
.journey-map .pin-main { fill: var(--lotus); }
.journey-map .pin-main-dot { fill: var(--surface); }
.journey-map .halo { fill: var(--lotus); opacity: .16; }
.journey-map .petal { fill: var(--lotus); opacity: .82; }
.journey-map .petal-2 { fill: color-mix(in srgb, var(--lotus) 55%, #fff); opacity: .9; }
.journey-map .pad { fill: color-mix(in srgb, var(--leaf) 55%, var(--water)); opacity: .55; }
.journey-map .sun { fill: var(--sun); opacity: .9; }
.journey-map .tree { fill: color-mix(in srgb, var(--leaf) 40%, var(--mist)); }
.journey-map .label { font-family: var(--font-display); }
.journey-map .label-card { fill: var(--surface); stroke: var(--line); }
.journey-map .label-title { fill: var(--ink); font-size: 17px; font-weight: 500; }
.journey-map .label-sub { fill: var(--ink-soft); font-size: 13px; font-family: var(--font-body); }
.journey-map .label-faint { fill: var(--ink-soft); font-size: 13px; font-family: var(--font-body); opacity: .85; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: 2; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* 7. Expo + Navigator ---------------------------------------------------- */
.expo { position: relative; background: var(--water); }
.expo::before {               /* ขอบบนเป็นคลื่นน้ำ */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v8c-20 0-40 14-60 14S140 8 120 8 80 22 60 22 20 8 0 8z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v8c-20 0-40 14-60 14S140 8 120 8 80 22 60 22 20 8 0 8z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
}
.expo .section-head { max-width: 46rem; }
.expo__theme { color: var(--ink-soft); }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 clamp(36px, 5vw, 56px); padding: 0;
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.facts > div { padding: 18px 20px 4px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.facts dt { font-size: .9rem; color: var(--ink-soft); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; line-height: 1.5; }
.facts dd small { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
}

.navigator {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--surface); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow-panel);
}
.navigator__phone { max-width: 300px; width: 100%; margin-inline: auto; }
.navigator h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-bottom: .35em; }
.navigator__intro { color: var(--ink-soft); margin-bottom: 1.4em; }
.feature-list { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .ficon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lotus-soft); color: var(--lotus);
}
.feature-list .ficon svg { width: 21px; height: 21px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.45; }
.feature-list span { display: block; color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }
.navigator__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.navigator__hint { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; flex: 1 1 14rem; }
.navigator__note { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

.phone .frame { fill: #1D3530; }
.phone .screen { fill: #F4F8F6; }
.phone .bar { fill: #FFFFFF; }
.phone .bar-text { fill: #1D3530; font: 500 13px var(--font-display); }
.phone .ground { fill: #E3EEE6; }
.phone .lake { fill: #BFDDD6; }
.phone .path { fill: none; stroke: #FFFFFF; stroke-width: 7; stroke-linecap: round; }
.phone .walk { fill: none; stroke: #B4436A; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 7; }
.phone .num { fill: #FFFFFF; stroke: #5E9A90; stroke-width: 2; }
.phone .num-text { fill: #1D3530; font: 600 11px var(--font-body); text-anchor: middle; }
.phone .num-target { fill: #B4436A; stroke: #FFFFFF; stroke-width: 2.5; }
.phone .num-target-text { fill: #FFFFFF; font: 600 12px var(--font-body); text-anchor: middle; }
.phone .me-halo { fill: #2F6FD6; opacity: .18; }
.phone .me { fill: #2F6FD6; stroke: #FFFFFF; stroke-width: 3; }
.phone .sheet { fill: #FFFFFF; }
.phone .sheet-title { fill: #1D3530; font: 500 15px var(--font-display); }
.phone .sheet-sub { fill: #4B635C; font: 400 12px var(--font-body); }
.phone .chip { fill: #F5DEE6; }
.phone .chip-text { fill: #B4436A; font: 500 11px var(--font-display); }
.phone .tab-text { fill: #6C817A; font: 400 10.5px var(--font-body); text-anchor: middle; }
.phone .tab-text.on { fill: #B4436A; font-weight: 600; }
.phone .tab-line { stroke: #DCE6E1; }
.phone .tree { fill: #A9CDB3; }

@media (max-width: 860px) {
  .navigator { grid-template-columns: 1fr; }
  .navigator__phone { max-width: 250px; }
}

/* 8. Plan (ก่อนไปงาน) ----------------------------------------------------- */
.plan__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.plan h3 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); margin-bottom: 8px; }
.ways { margin: 0; }
.ways > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ways dt { grid-column: 2; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.ways dd { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
.ways .wicon { grid-row: 1 / span 2; grid-column: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.ways .wicon svg { width: 22px; height: 22px; }
.tips { list-style: none; margin: 0; padding: 0; }
.tips li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.tips li::before {
  content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 10px; border-radius: 50%;
  border: 2.5px solid var(--lotus); background: var(--paper);
}
.tips strong { font-weight: 600; }
.plan__more { margin-top: 28px; }
@media (max-width: 860px) { .plan__grid { grid-template-columns: 1fr; } }

/* 9. Stories (บันทึก) ---------------------------------------------------- */
.stories { background: var(--mist); }
.stories__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.stories__top .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 40px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: 500 .95rem var(--font-display);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.story-card[hidden] { display: none; }
.story-card--featured { grid-column: span 2; flex-direction: row; }
.story-card__cover { background: var(--water); aspect-ratio: 16 / 10; overflow: hidden; }
.story-card--featured .story-card__cover { flex: 0 0 48%; aspect-ratio: auto; min-height: 280px; }
.story-card__cover svg, .story-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.story-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-card__cat { align-self: flex-start; font: 500 .85rem var(--font-display); color: var(--lotus); background: var(--lotus-soft); padding: 3px 12px; border-radius: 999px; }
.story-card h3 { font-size: 1.3rem; margin: 6px 0 2px; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* ทั้งการ์ดคลิกได้ */
.story-card { position: relative; }
.story-card:has(h3 a:hover) h3 a { text-decoration: underline; }
.story-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.story-card__meta { margin-top: auto; padding-top: 12px; font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.story-card--next { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); justify-content: center; }
.story-card--next .story-card__body { justify-content: center; align-items: flex-start; }
.story-card--next h3 { font-size: 1.15rem; }
@media (max-width: 960px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card--featured { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-card--featured { flex-direction: column; }
  .story-card--featured .story-card__cover { min-height: 0; aspect-ratio: 16 / 10; }
}

/* 10. About + Footer ----------------------------------------------------- */
.about__inner { display: grid; grid-template-columns: 120px minmax(0, 40rem); gap: clamp(20px, 4vw, 48px); align-items: start; }
.about__mark { width: 120px; height: 120px; }
.about h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.about p { color: var(--ink-soft); font-size: 1.07rem; }
.about__sign { font-family: var(--font-display); color: var(--ink) !important; }
@media (max-width: 640px) { .about__inner { grid-template-columns: 1fr; } .about__mark { width: 84px; height: 84px; } }

.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 56px 0 32px; font-size: .96rem; }
.site-footer a { color: inherit; }
.site-footer .brand { color: #fff; --ink: #DCE8E3; --paper: var(--footer-bg); --lotus: #E98DAC; }
.site-footer .brand__name span { color: #F2A7C0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__about p { margin-top: 14px; max-width: 26rem; opacity: .85; }
.footer__col h2 { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 10px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__col a { text-decoration: none; opacity: .85; }
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: .88rem; opacity: .75; }
.footer__legal p { margin: 0; max-width: 46rem; }
.ext::after { content: "↗"; font-size: .8em; margin-left: .25em; opacity: .7; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* 11. Article page (หน้าบทความ) ------------------------------------------ */
.article { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.article__wrap { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.breadcrumb { font-size: .92rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.article__header h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1.32; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .93rem; color: var(--ink-soft); margin-bottom: 26px; }
.article__cover { border-radius: var(--radius-m); overflow: hidden; background: var(--water); margin: 0 0 36px; }
.article__cover figcaption { font-size: .88rem; color: var(--ink-soft); padding: 10px 4px 0; background: var(--paper); }
.prose { font-size: 1.1rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.1em; padding-top: .2em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--lotus); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lotus); color: var(--ink-soft); }
.prose img, .prose figure { margin: 1.6em 0; border-radius: var(--radius-s); }
.prose figure img { margin: 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.6; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--font-display); font-weight: 500; background: var(--mist); }
/* ตารางที่ใส่ class "table-stack" จะเรียงเป็นการ์ดบนมือถือ (คอลัมน์ 1 = ชื่อ, 2 = ราคา/ค่าเด่น, ที่เหลือ = รายละเอียด) */
@media (max-width: 600px) {
  .prose .table-stack { overflow: visible; border: 0; background: none; }
  .prose .table-stack table { min-width: 0; }
  .prose .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose .table-stack tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 10px; }
  .prose .table-stack td { display: block; border: 0; padding: 2px 0; }
  .prose .table-stack td:first-child { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; }
  .prose .table-stack td:nth-child(2) { color: var(--lotus); font-weight: 600; }
}
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lotus); border-radius: var(--radius-s); padding: 16px 20px; margin: 1.6em 0; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--map { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-left-color: var(--leaf); }
.callout--map p { margin: 0; flex: 1 1 18rem; }
.toc { background: var(--mist); border-radius: var(--radius-m); padding: 18px 22px; margin: 0 0 32px; font-size: 1rem; }
.toc h2 { font-size: 1.05rem; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.sources { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 1.2em; }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.article__footer { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound__art { width: 140px; margin: 0 auto 18px; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.notfound p { color: var(--ink-soft); max-width: 30rem; margin-inline: auto; }
.notfound .hero__actions { justify-content: center; margin-top: 24px; }

/* 12. Motion / Print ----------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .journey-map .route-draw { stroke-dasharray: 2 9; animation: route-in 1.6s .2s ease-out both; }
  .js .journey-map .pin-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: pin-in .5s 1.5s cubic-bezier(.3,1.6,.6,1) both; }
  .js .journey-map .label-pop { animation: fade-in .5s 1.8s ease-out both; }
  .journey-map .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.8s 2.2s ease-in-out infinite; }
}
@keyframes route-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: .55; clip-path: inset(0 0 0 0); } }
@keyframes pin-in { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(1.35); opacity: .05; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .filters, .hero__art, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
