@charset "UTF-8";
/* =============================================================
   ตู้ลำธาร — หน้าแรกสาธารณะ ฉบับ "ธรรมชาติใกล้เรา"
   กระดาษครีม · ป่า · ลำธาร · โลโก้ลายมือ · ใบไม้  (ตามภาพตัวอย่างของเจ้าของ 10 ก.ย. 2569)

   โหลดเฉพาะหน้าแรกผ่าน layout_start(['styles' => ['layout/home.css']])
   หน้านี้ตั้งใจเป็น "กระดาษ" โทนสว่างโทนเดียวทั้งสองโหมด (แบรนด์เดียวกันไม่ว่าเครื่องตั้งค่าอะไร)
   จึงเขียนทับตัวแปรของธีมกลางไว้บน body.lt-home — คอมโพเนนต์ร่วม (แถบบน ปุ่ม ป้าย ท้ายหน้า) จะเปลี่ยนตามเอง

   กติกาเดิมของ app-theme.css ยังใช้: mobile-first 360px · สีอ้างตัวแปร · contrast ≥ 4.5:1 · ทุกรูปมีทางถอย
   ตัวอักษรไทย: ไม่บีบ letter-spacing · line-height พาดหัว ≥ 1.3 · line-clamp มี padding กันตัดวรรณยุกต์
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Sriracha&display=swap");

body.lt-home {
  /* ── กระดาษและหมึก ── */
  --p-paper: #f5efe2;          /* กระดาษครีม */
  --p-paper-2: #ede4d0;        /* กระดาษเข้มขึ้นสำหรับสลับจังหวะ */
  --p-paper-3: #e3d8bf;
  --p-card: #fffcf5;
  --p-ink: #263528;            /* บนกระดาษ = 11.4:1 */
  --p-muted: #5b6a5b;          /* บนกระดาษ = 5.4:1 */
  --p-forest: #2f5c3b;         /* เขียวป่า — ตัวอักษร/ปุ่ม: ขาวบนปุ่ม = 7.3:1 */
  --p-forest-2: #3f7a4c;
  --p-deep: #1b3a2a;           /* แถบเขียวเข้ม */
  --p-deep-2: #142b20;
  --p-foam: #eef3e8;           /* ตัวอักษรบน deep = 12.6:1 */
  --p-foam-muted: #bfd3c1;     /* บน deep = 8.1:1 */
  --p-leaf: #7fa35a;           /* ใบไม้ — ตกแต่งเท่านั้น */
  --p-leaf-2: #a9c27f;
  --p-gold: #8b6a3e;           /* น้ำตาลทอง — ขาวบนปุ่ม = 4.9:1 */
  --p-gold-2: #a58553;
  --p-line: #d9cfb6;
  --p-shadow: 0 12px 34px rgba(58, 45, 22, .14), 0 2px 6px rgba(58, 45, 22, .08);
  --p-radius: 20px;

  /* ── เขียนทับตัวแปรธีมกลาง ให้แถบบน ปุ่ม ป้าย ท้ายหน้า เข้าโทนกระดาษ ── */
  --lt-bg: var(--p-paper);
  --lt-surface: var(--p-card);
  --lt-surface-2: var(--p-paper-2);
  --lt-ink: var(--p-ink);
  --lt-muted: var(--p-muted);
  --lt-primary: var(--p-forest);
  --lt-primary-soft: #dfe9d2;
  --lt-on-primary: #ffffff;
  --lt-accent: #3f7a4c;
  --lt-border: var(--p-line);
  --lt-border-strong: #c7bb9e;
  --lt-shadow: var(--p-shadow);
  --lt-ring: 0 0 0 3px rgba(63, 122, 76, .35);
  --bs-link-color: var(--p-forest);
  --bs-link-hover-color: var(--p-deep);
  color-scheme: light;

  background-color: var(--p-paper);
  /* เนื้อกระดาษ: noise บาง ๆ วาดด้วย SVG ในหน้า (img-src อนุญาต data:) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--p-ink);
}
/* ตัวอักษรบนวงแหวนโฟกัสของธีมยังใช้ได้บนกระดาษ */
body.lt-home :focus-visible { outline-color: var(--p-forest); }

/* ── ตัวพิมพ์เฉพาะหน้านี้ ── */
.ph-script { font-family: "Kaushan Script", "Sriracha", cursive; font-weight: 400; letter-spacing: .01em; }
.ph-hand   { font-family: "Sriracha", "Noto Sans Thai", cursive; font-weight: 400; line-height: 1.5; }

/* ── โครงหน้า ── */
body.lt-home .lt-main { padding: 0; overflow-x: hidden; overflow-x: clip; }
body.lt-home .lt-main--bare { padding-bottom: 0; }
body.lt-home .lt-wrap,
body.lt-home .lt-wrap--wide { max-width: none; }
body.lt-home .lt-flashes { max-width: 1140px; margin: 16px auto 0; padding-inline: 16px; }

.ph-in { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.ph-in--narrow { max-width: 880px; }

.ph-sec { position: relative; padding-block: 52px; }
.ph-sec--paper2 { background: var(--p-paper-2); }

/* หัวส่วน: ใบไม้ + ชื่อ + ลิงก์ "ดูทั้งหมด" */
.ph-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.ph-sec__text { max-width: 640px; }
.ph-sec__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
  font-weight: 700; line-height: 1.35; letter-spacing: 0;
}
.ph-sec__title svg { width: 30px; height: 30px; flex: none; color: var(--p-leaf); }
.ph-sec__lead { margin: 6px 0 0; color: var(--p-muted); max-width: 56ch; }
.ph-sec__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--p-forest); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ph-sec__link:hover { text-decoration: underline; color: var(--p-deep); }
.ph-sec__link svg { width: 18px; height: 18px; }

/* ── ปุ่มเม็ดยา ── */
.ph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ph-btn svg { width: 18px; height: 18px; flex: none; }
.ph-btn--forest { background: var(--p-forest); color: #fff; }
.ph-btn--forest:hover { background: var(--p-deep); color: #fff; }
.ph-btn--gold { background: var(--p-gold); color: #fff; }
.ph-btn--gold:hover { background: #75582f; color: #fff; }
.ph-btn--glass { background: rgba(18, 38, 28, .62); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.ph-btn--glass:hover { background: rgba(18, 38, 28, .85); color: #fff; }
.ph-btn--paper { background: var(--p-card); color: var(--p-forest); border-color: var(--p-line); }
.ph-btn--paper:hover { background: #fff; color: var(--p-deep); }
.ph-btn--sm { min-height: 40px; padding: 6px 16px; font-size: .9375rem; }

/* ── ขอบกระดาษฉีก (SVG วาดในหน้า สีเติมด้วย CSS) ── */
.ph-torn { position: absolute; left: 0; right: 0; height: 34px; pointer-events: none; z-index: 2; }
.ph-torn svg { display: block; width: 100%; height: 100%; }
.ph-torn--bottom { bottom: -1px; }
.ph-torn--top { top: -1px; transform: scaleY(-1); }
.ph-torn path { fill: var(--p-paper); }
.ph-torn--paper2 path { fill: var(--p-paper-2); }
.ph-torn--deep path { fill: var(--p-deep); }

/* ── ใบไม้ประดับ ── */
.ph-leaves { position: absolute; pointer-events: none; color: var(--p-leaf); opacity: .55; }
.ph-leaves svg { display: block; width: 100%; height: 100%; }
.ph-leaves--tl { left: -30px; top: -20px; width: 150px; height: 150px; transform: rotate(-20deg); }
.ph-leaves--br { right: -20px; bottom: -30px; width: 170px; height: 170px; transform: rotate(150deg); }
.ph-leaves--tr { right: -30px; top: -20px; width: 150px; height: 150px; transform: rotate(20deg) scaleX(-1); }
.ph-leaves--bl { left: -20px; bottom: -30px; width: 170px; height: 170px; transform: rotate(-150deg) scaleX(-1); }
.ph-leaves--foam { color: var(--p-leaf-2); opacity: .22; }
/* ช่อใบไม้เป็นรูป PNG จากชุดของเจ้าของ — วางตรงมุมโดยไม่หมุน (รูปตัดมาเข้ามุมอยู่แล้ว) */
.ph-leaves--img { opacity: .8; }
.ph-leaves--img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ph-leaves--img.ph-leaves--tl { left: -22px; top: -18px; width: 190px; height: 190px; transform: none; }
.ph-leaves--img.ph-leaves--br { right: -26px; bottom: -22px; width: 210px; height: 210px; transform: none; }
.ph-leaves--img.ph-leaves--tr { right: -22px; top: -18px; width: 190px; height: 190px; transform: scaleX(-1); }
.ph-leaves--img.ph-leaves--bl { left: -26px; bottom: -22px; width: 210px; height: 210px; transform: scaleX(-1); }
.ph-leaves--img.ph-leaves--foam { opacity: .28; }

/* ── แถบบน (เฉพาะหน้าแรก) ── */
body.lt-home .lt-topbar { background: rgba(245, 239, 226, .94); border-bottom-color: var(--p-line); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { body.lt-home .lt-topbar { background: var(--p-paper); } }
body.lt-home .lt-pubnav a { color: var(--p-ink); font-weight: 500; }
body.lt-home .lt-pubnav a:hover { background: var(--p-paper-2); color: var(--p-ink); }
body.lt-home .lt-pubnav a[aria-current="page"] { color: var(--p-forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--p-forest); border-radius: 0; }
body.lt-home .lt-pubnav a.lt-btn--primary,
body.lt-home .lt-menu__panel .lt-btn--primary { border-radius: 999px; background: var(--p-deep); color: #fff; padding-inline: 16px; }
body.lt-home .lt-pubnav a.lt-btn--primary:hover { background: var(--p-forest); color: #fff; }
body.lt-home .lt-lang { border-color: var(--lt-border-strong); color: var(--p-ink); }
body.lt-home .lt-menu__panel { background: var(--p-card); border-color: var(--p-line); }

/* โลโก้ลายมือ */
.lt-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--p-ink); text-decoration: none; }
.lt-brand svg { width: 30px; height: 30px; flex: none; color: var(--p-forest); }
.lt-brand__text { display: flex; flex-direction: column; line-height: 1; }
.lt-brand__script { font-size: 1.55rem; color: var(--p-forest); line-height: 1; }
.lt-brand__tag { margin-top: 3px; font-size: .5625rem; font-weight: 600; letter-spacing: .06em; color: var(--p-muted); white-space: nowrap; }
.lt-brand__logo { display: block; width: auto; height: 40px; }
@media (inverted-colors: inverted) {
  .lt-brand__logo, .ph-contact__logo { filter: invert(1) hue-rotate(180deg); }
}

/* ── แถบหัว ── */
.ph-hero { position: relative; overflow: hidden; color: #fff; background: var(--p-deep); }
.ph-hero__media { position: absolute; inset: 0; }
.ph-hero__media img, .ph-hero__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ม่านมืดฝั่งซ้ายให้ตัวอักษรอ่านออกบนรูปที่ผู้ใช้จะเอามาวางเอง */
.ph-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 16, .55) 0%, rgba(10, 24, 16, .15) 35%, rgba(10, 24, 16, .35) 75%, rgba(10, 24, 16, .8) 100%),
    linear-gradient(90deg, rgba(10, 24, 16, .78) 0%, rgba(10, 24, 16, .45) 45%, rgba(10, 24, 16, .05) 80%);
}
.ph-hero__grid { position: relative; z-index: 1; display: grid; gap: 22px; padding: 40px 0 70px; }
.ph-hero__note { margin: 0 0 6px; font-size: 1.125rem; color: #e8efdf; transform: rotate(-2deg); transform-origin: left; }
.ph-hero__script {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: clamp(3rem, 2rem + 6vw, 5.5rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .45);
}
.ph-hero__script svg { width: .55em; height: .55em; color: #cfe3b6; }
.ph-hero__title {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.375rem);
  font-weight: 700; line-height: 1.35; letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
  text-wrap: balance; max-width: 20ch;
}
.ph-hero__lead { margin: 0 0 22px; max-width: 48ch; font-size: 1.0625rem; line-height: 1.75; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-hero__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .875rem; color: #f2f6ec; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.ph-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.ph-hero__trust svg { width: 16px; height: 16px; color: #cfe3b6; }

.ph-hero__side { display: grid; gap: 14px; justify-items: end; }
.ph-hero__quote { margin: 0; max-width: 18ch; font-size: 1.25rem; text-align: right; color: #f4f7ee; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.ph-hero__quote svg { width: 22px; height: 22px; color: #cfe3b6; vertical-align: -4px; margin-inline-start: 4px; }
/* ป้ายหินคำขวัญ */
.ph-stone {
  display: inline-block; padding: 12px 20px 14px;
  border-radius: 48% 52% 46% 54% / 60% 45% 55% 40%;
  background: linear-gradient(145deg, #6d6a60, #3c3a33);
  color: #f4f0e4; font-size: 1rem; text-align: center; line-height: 1.45;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: rotate(-4deg);
}

/* การ์ดตัวอย่างงานในแถบหัว — ใช้คลาสการ์ดงานจริงของธีม ย่อลง */
.ph-demo { position: relative; width: 100%; max-width: 360px; }
.ph-demo .lt-card { padding: 14px; border-radius: 18px; color: var(--p-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .38); }
.ph-demo .lt-task__time { font-size: 1.375rem; }
.ph-demo .lt-task__actions { margin-top: 10px; }
.ph-demo__push {
  position: relative; z-index: 1;
  margin: 0 12px -14px auto; width: min(300px, 92%);
  padding: 9px 14px 11px; border-radius: 14px;
  background: rgba(255, 252, 245, .96); color: var(--p-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  font-size: .8125rem; line-height: 1.45;
}
.ph-demo__push-app { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--p-muted); font-size: .7rem; font-weight: 600; }
.ph-demo__push-app::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--p-forest), #0284c7); }
.ph-demo__push strong { display: block; font-weight: 700; }
.ph-demo__push-link { display: block; margin-top: 2px; color: var(--p-forest); font-weight: 600; font-size: .75rem; }
.ph-demo__week { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: .72rem; }
.ph-demo__days { display: flex; gap: 5px; }
.ph-demo__day { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--lt-border-strong); color: var(--p-muted); font-size: .65rem; font-weight: 600; }
.ph-demo__day--done { background: var(--p-forest); border-color: var(--p-forest); color: #fff; }
.ph-demo__day--today { border-color: var(--p-gold); color: var(--p-ink); box-shadow: 0 0 0 3px rgba(139, 106, 62, .22); }
.ph-demo__day svg { width: 13px; height: 13px; }

/* ── เรื่องราวของเรา ── */
.ph-story { position: relative; padding-top: 44px; }
.ph-story__grid { display: grid; gap: 26px; align-items: center; }
.ph-story__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--p-muted); font-size: .9375rem; font-weight: 600; }
.ph-story__kicker svg { width: 26px; height: 26px; color: var(--p-leaf); }
.ph-story__kicker .ph-script { font-size: 1.625rem; color: var(--p-forest); }
.ph-story__title { margin: 0 0 12px; font-size: clamp(1.375rem, 1.05rem + 1.6vw, 1.875rem); font-weight: 700; line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
.ph-story__body { margin: 0 0 18px; color: var(--p-ink); max-width: 58ch; line-height: 1.8; }
.ph-story__photo { position: relative; }
/* กรอบรูปขอบไม่เรียบเหมือนกระดาษฉีก */
.ph-story__photo img, .ph-story__photo svg {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;   /* height:auto ล้าง attribute height ของ <img> */
  clip-path: polygon(2% 6%, 12% 1%, 30% 4%, 48% 0%, 66% 3%, 84% 1%, 98% 6%, 100% 26%, 97% 46%, 100% 66%, 98% 86%, 90% 99%, 70% 96%, 52% 100%, 33% 97%, 14% 100%, 3% 94%, 0% 74%, 2% 52%, 0% 30%);
  filter: drop-shadow(0 14px 22px rgba(58, 45, 22, .22));
}
.ph-story__note { margin: 14px 0 0; text-align: right; font-size: 1.25rem; color: var(--p-forest); transform: rotate(-2deg); }
.ph-story__note svg { width: 22px; height: 22px; color: var(--p-leaf); vertical-align: -4px; }
.ph-story__note2 { position: absolute; left: 6px; top: -34px; margin: 0; font-size: 1.125rem; color: var(--p-gold); transform: rotate(-8deg); }
.ph-story__photo { padding-top: 24px; }

/* ── การ์ดจุดขาย (รูปบน ไอคอนวงกลมซ้อน) ── */
.ph-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.ph-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ph-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--p-paper-2); }
.ph-card__media img, .ph-card__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-card__icon {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin: -30px 0 0 18px;
  border-radius: 50%; border: 4px solid var(--p-card);
  background: var(--p-card); color: var(--p-forest);
  box-shadow: 0 6px 16px rgba(58, 45, 22, .18);
}
.ph-card__icon svg { width: 26px; height: 26px; }
.ph-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; padding: 8px 18px 20px; }
.ph-card__title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.ph-card__text { margin: 0; color: var(--p-muted); font-size: .9375rem; }
.ph-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.ph-card__foot .lt-pill { white-space: normal; }
.ph-go {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--p-gold); color: #fff; text-decoration: none;
}
.ph-go svg { width: 18px; height: 18px; }
.ph-go:hover { background: #75582f; color: #fff; }

/* ── แถบเขียวเข้ม: ชนิดปลา ── */
.ph-band { position: relative; padding: 72px 0 80px; color: var(--p-foam); background: radial-gradient(70% 60% at 20% 0%, rgba(127, 163, 90, .22) 0%, rgba(127, 163, 90, 0) 70%), var(--p-deep); overflow: hidden; }
.ph-band .ph-sec__title { color: var(--p-foam); }
.ph-band .ph-sec__title svg { color: var(--p-leaf-2); }
.ph-band .ph-sec__lead { color: var(--p-foam-muted); }
.ph-band .ph-sec__link { color: var(--p-foam); }
.ph-band__kicker { margin: 0 0 4px; font-size: 1.125rem; color: var(--p-leaf-2); }
.ph-band__count { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--p-foam); font-size: .875rem; font-weight: 600; }
.ph-band__count svg { width: 18px; height: 18px; color: var(--p-leaf-2); }

.ph-species { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); gap: 14px; margin-inline: -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.ph-species::-webkit-scrollbar { display: none; }
.ph-species:focus-visible { outline: 2px solid var(--p-leaf-2); outline-offset: -2px; border-radius: 12px; }
.ph-sp { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--p-card); color: var(--p-ink); border-radius: var(--p-radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.ph-sp__media { position: relative; aspect-ratio: 16 / 11; background: var(--p-deep-2); }
.ph-sp__media img, .ph-sp__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-sp__body { display: flex; flex-direction: column; gap: 6px; padding: 8px 16px 18px; }
.ph-sp__name { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.ph-sp__sci { margin: 0; color: var(--p-muted); font-size: .8125rem; font-style: italic; }
.ph-sp__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-sp__note { margin: 2px 0 0; color: var(--p-muted); font-size: .875rem; }

/* ── สามคอลัมน์: ขั้นตอน · ความรู้ · ไดอารี่ ── */
/* สไลด์ "ตู้ของเพื่อน ๆ" เหนือสามคอลัมน์ — ตัวสไลด์คือ .lt-slider ของ app-theme.css
   สีตามตัวแปร --lt-* ที่ body.lt-home เขียนทับไว้แล้ว ที่นี่ปรับแค่ระยะห่างและขนาดหัวข้อให้เท่า .ph-col__title */
.ph-gallery { margin-bottom: 36px; }
.ph-gallery .lt-slider { margin: 0; }
.ph-gallery .lt-slider__title { font-size: 1.25rem; }

.ph-strip { display: grid; gap: 30px; }
/* แถวคำถามล่าสุด (.ph-strip__wide) กินเต็มความกว้างใต้สามคอลัมน์ — การ์ดเรียงหนึ่ง/สอง/สามช่องตามความกว้างจอ */
.ph-strip__wide .ph-mini { grid-template-columns: 1fr; }
.ph-col__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ph-col__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.25rem; font-weight: 700; }
.ph-col__title svg { width: 24px; height: 24px; color: var(--p-forest); }
.ph-col__link { color: var(--p-forest); font-weight: 600; text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.ph-col__link:hover { text-decoration: underline; }

.ph-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ph-steps__item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 16px; }
.ph-steps__num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--p-forest); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-steps__title { margin: 6px 0 2px; font-size: 1rem; font-weight: 700; }
.ph-steps__text { margin: 0; color: var(--p-muted); font-size: .9rem; }

.ph-mini { display: grid; gap: 10px; }
.ph-post {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  padding: 10px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ph-post__media { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--p-forest), var(--p-deep)); }
.ph-post__media img, .ph-post__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-post__stamp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.ph-post__stamp-day { font-size: 1.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-post__stamp-month { font-size: .7rem; font-weight: 600; opacity: .9; }
.ph-post__glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.ph-post__glyph svg { width: 30px; height: 30px; opacity: .9; }
.ph-post__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-post__title { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-block: 2px; }
.ph-post__title a { color: inherit; text-decoration: none; }
.ph-post__title a::after { content: ""; position: absolute; inset: 0; }
.ph-post__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--p-muted); font-size: .78rem; }
.ph-post__meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 3px; }
.lt-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lt-primary-soft); color: var(--p-forest); font-size: .7rem; font-weight: 700; overflow: hidden; vertical-align: middle; margin-inline-end: 4px; }
.lt-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* กล่องเชิญเมื่อยังไม่มีเนื้อหา */
.ph-invite { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; background: var(--p-card); border: 1px dashed var(--lt-border-strong); border-radius: 16px; }
.ph-invite__title { margin: 0; font-size: 1rem; font-weight: 700; }
.ph-invite p { margin: 0; color: var(--p-muted); font-size: .9rem; }
.ph-invite__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-invite .lt-pill { white-space: normal; }

/* ── คำถามพบบ่อย (การ์ดกระดาษ) ── */
.ph-faq { display: grid; gap: 14px; }
.ph-faq__item { position: relative; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 18px; box-shadow: var(--p-shadow); }
.ph-faq__q { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 16px 18px; list-style: none; cursor: pointer; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
.ph-faq__q::-webkit-details-marker { display: none; }
.ph-faq__q::marker { content: ""; }
.ph-faq__q svg { width: 22px; height: 22px; flex: none; color: var(--p-gold); margin-top: 2px; }
.ph-faq__q::after {
  content: ""; flex: none; width: 26px; height: 26px; margin-inline-start: auto; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--lt-border-strong);
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .2s ease;
}
.ph-faq__item[open] .ph-faq__q::after { transform: rotate(45deg); }
.ph-faq__a { margin: 0; padding: 0 18px 18px 52px; color: var(--p-muted); line-height: 1.75; }
.ph-faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ph-faq__note { margin: 0; font-size: 1.25rem; color: var(--p-gold); transform: rotate(-3deg); max-width: 20ch; }
.ph-faq__note svg { width: 22px; height: 22px; color: var(--p-leaf); vertical-align: -4px; }

/* ── แถบติดต่อ/สมัคร ท้ายหน้า ── */
.ph-contact { position: relative; padding: 76px 0 48px; color: var(--p-foam); background: var(--p-deep-2); overflow: hidden; }
.ph-contact__grid { position: relative; display: grid; gap: 30px; }
.ph-contact__brand .ph-script { display: block; font-size: 2.75rem; line-height: 1; color: #fff; }
.ph-contact__brand small { display: block; margin-top: 8px; font-size: .75rem; letter-spacing: .06em; color: var(--p-foam-muted); }
.ph-contact__brand svg { width: 44px; height: 44px; color: var(--p-leaf-2); margin-bottom: 8px; }
.ph-contact__logo { display: block; width: auto; height: 72px; max-width: 100%; }
.ph-contact__title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; }
.ph-contact__lead { margin: 0 0 14px; color: var(--p-foam-muted); max-width: 40ch; }
.ph-contact__rows { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ph-contact__rows li { display: flex; align-items: center; gap: 10px; }
.ph-contact__rows svg { width: 20px; height: 20px; color: var(--p-leaf-2); flex: none; }
.ph-contact__rows a { color: var(--p-foam); }
.ph-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-contact__quote { margin: 0; font-size: 1.375rem; color: var(--p-foam); transform: rotate(-3deg); max-width: 18ch; }
.ph-contact__quote svg { width: 24px; height: 24px; color: var(--p-leaf-2); vertical-align: -5px; }
.ph-contact .ph-leaves { opacity: .16; color: var(--p-leaf-2); }
.ph-contact .ph-leaves--tl { width: 260px; height: 260px; left: -60px; top: -40px; }
.ph-contact .ph-leaves--br { width: 300px; height: 300px; right: -70px; bottom: -80px; }
.ph-contact .ph-leaves--img { opacity: .2; }
.ph-contact .ph-leaves--img.ph-leaves--tl { left: -30px; top: -10px; }
.ph-contact .ph-leaves--img.ph-leaves--br { right: -30px; bottom: -30px; }

/* ท้ายหน้าของ layout — กลายเป็นแถบล่างสีเขียวเข้ม */
body.lt-home .lt-footer { background: var(--p-deep-2); border-top: 1px solid rgba(255, 255, 255, .1); color: var(--p-foam-muted); }
body.lt-home .lt-footer a { color: var(--p-foam-muted); }
body.lt-home .lt-footer a:hover { color: #fff; }

/* =============================================================
   จอใหญ่ขึ้น
   ============================================================= */
@media (min-width: 640px) {
  .ph-cards { grid-template-columns: repeat(2, 1fr); }
  .ph-faq { grid-template-columns: repeat(2, 1fr); }
  .ph-contact__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .ph-leaves--img.ph-leaves--tl, .ph-leaves--img.ph-leaves--tr,
  .ph-leaves--img.ph-leaves--br, .ph-leaves--img.ph-leaves--bl { width: 130px; height: 130px; }
  .ph-story__photo { margin-top: 10px; padding-top: 38px; }
  .ph-story__note2 { top: 2px; }
}

@media (min-width: 768px) {
  .ph-in { padding-inline: 24px; }
  .ph-sec { padding-block: 72px; }
  .ph-torn { height: 44px; }
  .ph-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; padding: 70px 0 96px; min-height: 620px; }
  .ph-hero__side { align-self: end; }
  .ph-story__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .ph-species { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; gap: 18px; margin-inline: 0; padding: 0; overflow: visible; }
  .ph-strip { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ph-strip > * + * { padding-inline-start: 28px; border-inline-start: 1px solid var(--p-line); }
  .ph-strip > .ph-strip__wide { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; padding-top: 28px; border-top: 1px solid var(--p-line); }
  .ph-strip__wide .ph-mini { grid-template-columns: repeat(2, 1fr); }
  .lt-brand__script { font-size: 1.75rem; }
  .lt-brand__logo { height: 44px; }
}

@media (min-width: 1000px) {
  .ph-cards { grid-template-columns: repeat(4, 1fr); }
  .ph-species { grid-template-columns: repeat(4, 1fr); }
  .ph-faq { grid-template-columns: 1fr 1fr 260px; }
  .ph-faq__aside { grid-column: 3; grid-row: 1 / span 2; padding-inline-start: 12px; }
  .ph-contact__grid { grid-template-columns: 1.1fr 1.2fr .9fr; align-items: center; }
  .ph-strip__wide .ph-mini { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .ph-in { padding-inline: 32px; }
  .ph-hero__grid { min-height: 680px; }
}

@media (hover: hover) and (pointer: fine) {
  .ph-card:hover, .ph-post:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(58, 45, 22, .18); }
  .ph-btn:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .ph-card, .ph-post, .ph-btn { transition: none; }
}

@media print {
  .ph-hero, .ph-band, .ph-contact { background: none; color: var(--p-ink); }
  .ph-hero__shade, .ph-torn, .ph-leaves, .ph-demo { display: none; }
  .ph-hero__script, .ph-hero__title, .ph-hero__lead, .ph-hero__trust, .ph-hero__quote, .ph-band .ph-sec__title, .ph-contact__quote { color: var(--p-ink); text-shadow: none; }
  .ph-btn--glass { color: var(--p-ink); background: none; border-color: #999; }
}
