/* ============================================================
   Vee Vee — shared styles for every page except the home page
   Load order: tokens.css -> main.css -> pages.css
   ============================================================ */

/* Inner pages have no full-bleed hero, so the fixed header would
   otherwise sit on top of the first heading. */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(170deg, var(--sage-wash) 0%, var(--ivory) 100%);
  /* เส้นกลิ่นถูกวางไว้ในนี้ ต้องมีจุดอ้างอิงตำแหน่งและตัดส่วนที่ล้นออก */
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* ---------- เส้นกลิ่นบนหัวหน้าอื่น ----------

   เดิมลายเส้นนี้อยู่แค่หน้าแรกหน้าเดียว ซึ่งเป็นการใช้สัญลักษณ์ประจำแบรนด์
   ไม่คุ้ม เว็บสิบหน้าที่ใช้ CSS ชุดเดียวกันยังไม่ทำให้รู้สึกเป็นเว็บเดียวกัน
   แต่ลายเส้นที่ปรากฏซ้ำทุกหน้าทำได้

   บนหน้ารองต้องเบากว่าหน้าแรกมาก เพราะที่นี่คือหน้าอ่านข้อมูล ไม่ใช่หน้าเปิดตัว
   ความทึบ 0.28 เทียบกับ 0.5 ของหน้าแรก และวางไว้มุมขวาซึ่งเป็นที่ว่าง
   สคริปต์เป็นคนใส่ให้ เพราะเป็นของตกแต่งล้วน ไม่ควรอยู่ใน HTML สิบไฟล์ */
.scent-ribbon-soft {
  position: absolute;
  right: clamp(-5rem, -3vw, -1rem);
  top: 50%;
  transform: translateY(-45%);
  z-index: -1;
  width: clamp(200px, 26vw, 420px);
  opacity: 0.28;
  pointer-events: none;
}
.scent-ribbon-soft path {
  fill: none;
  stroke: var(--verdant-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
}
.scent-ribbon-soft path:nth-child(2) { stroke: var(--citrus-deep); opacity: 0.7; }
.scent-ribbon-soft path:nth-child(3) { stroke: var(--sage); opacity: 0.6; }

/* กลิ่นลอยขึ้นตามการเลื่อนหน้า ไม่ใช่ลอยเองตามเวลา

   ผูกกับตำแหน่งการเลื่อนแทนนาฬิกา ทำให้ลายเส้นตอบสนองมือผู้ใช้
   แทนที่จะขยับอยู่ตลอดเวลาโดยไม่เกี่ยวกับใคร ซึ่งตรงกับคำว่า "เงียบ" มากกว่า
   และเบราว์เซอร์คำนวณให้เองบนเธรดของการ์ดจอ ไม่ใช้ JavaScript เลย

   ถ้าเบราว์เซอร์ไม่รองรับก็ไม่มีอะไรขยับ ซึ่งยังดูดีอยู่ เพราะลายเส้นนิ่ง ๆ
   ก็ทำหน้าที่เป็นลายประจำแบรนด์ได้ครบอยู่แล้ว */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scent-ribbon-soft path {
      animation: ribbon-rise linear;
      animation-timeline: scroll(root block);
    }
    @keyframes ribbon-rise { to { stroke-dashoffset: -260; } }
  }
}

.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 44rem; margin-top: var(--sp-5); }
.page-hero-warm { background: linear-gradient(170deg, var(--blush) 0%, var(--ivory) 100%); }
.page-hero-deep {
  background: linear-gradient(160deg, var(--verdant) 0%, var(--verdant-deep) 100%);
  color: var(--sage-light);
}
.page-hero-deep h1 { color: var(--white); }
.page-hero-deep .lead { color: var(--sage); }
.page-hero-deep .breadcrumb, .page-hero-deep .breadcrumb a { color: var(--sage); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-tiny);
  color: var(--text-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .breadcrumb a:hover { text-decoration: underline; }
}
.breadcrumb a:active { text-decoration: underline; text-decoration-thickness: 2px; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); opacity: 0.5; }
.breadcrumb ol, .breadcrumb { list-style: none; }
.breadcrumb li { display: inline-flex; gap: var(--sp-2); }

/* ---------- Long-form text ---------- */
.prose { max-width: 40rem; }
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: var(--sp-4); }
.prose ul { margin: var(--sp-4) 0; }
.prose ul li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--citrus);
}
.prose blockquote {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--citrus);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  color: var(--verdant-deep);
}

/* ---------- Value / feature cards ---------- */
.value-card {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}
.value-icon {
  display: grid;
  place-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--sage-wash);
  font-size: 1.35rem;
}
/* Photo slot at the top of a value card, for cards describing a physical
   thing the reader is better off seeing than imagining. Sized like the
   award slot so a real <img> can replace the placeholder untouched. */
.value-media {
  margin-bottom: var(--sp-5);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.value-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.value-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.value-en {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-tiny);
  color: var(--verdant-soft);
  margin-bottom: var(--sp-3);
}
.value-card p { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Blog category cards ---------- */
/* Ties each content category back to the brand pillar it serves, so the
   editorial plan stays legible instead of looking like a random topic list. */
.cat-pillar {
  display: inline-block;
  margin-bottom: var(--sp-4);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--sage-wash);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--verdant);
}
.topic-tag {
  display: inline-block;
  margin-left: var(--sp-2);
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--citrus);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Team ---------- */
.person { text-align: center; }
.person-photo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-light);
  box-shadow: 0 0 0 4px var(--white), 0 6px 20px rgba(34, 39, 31, 0.12);
}
.person h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-1); }
.person-role {
  font-family: var(--font-accent);
  font-size: var(--fs-tiny);
  font-style: italic;
  color: var(--verdant-soft);
}

/* ---------- Awards ----------
   Column layout so each card can carry a photo of the award itself.
   A trophy in a photograph is evidence; an emoji is decoration. */
.award {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  height: 100%;
}
.award-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
/* Works for both the real photo and the placeholder standing in for it,
   so dropping an <img> in later needs no other change. */
.award-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.award-icon { font-size: 1.5rem; line-height: 1.2; }
.award h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.award-meta { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: var(--sp-2); }

/* ---------- Timeline (story chapters + news) ---------- */
.timeline { position: relative; padding-left: var(--sp-7); }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--citrus), var(--sage), transparent);
}
.timeline-item { position: relative; padding-bottom: var(--sp-8); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-7) * -1);
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--citrus);
}
.timeline-date {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--verdant-soft);
  margin-bottom: var(--sp-2);
}

/* ---------- Story chapters ---------- */
.chapter {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}
.chapter:last-of-type { border-bottom: 0; }
.chapter:nth-child(even) .chapter-media { order: -1; }
/* ภาพประกอบบทไม่ให้เป็นตัวกำหนดความสูงของบท
   ภาพแนวตั้งที่ความกว้างคอลัมน์จะสูง 660px ขณะที่ข้อความข้างๆ สูง 459px
   ทำให้แต่ละบทถูกดันสูงขึ้นเปล่าๆ ราว 200px และเมื่อมีหลายบทก็สะสมกันไปเรื่อยๆ */
@media (min-width: 900px) {
  .chapter-media img {
    width: 100%;
    max-height: 30rem;
    object-fit: cover;
  }
}
/* Chapters that carry no photograph run the full width instead of leaving
   an empty column beside the text. */
.chapter-full { grid-template-columns: 1fr; }
/* ---------- สารบัญบทความ ----------

   บทความจริงมีเก้าหัวข้อและยาวสองหมื่นกว่าตัวอักษร คนที่เลื่อนมาถึงกลางเรื่อง
   ไม่มีอะไรบอกว่าเหลืออีกเท่าไรหรือข้างหน้ามีอะไรรออยู่

   ความกว้างบรรทัดของเนื้อความห้ามเปลี่ยน — 46rem คือระยะที่ตาอ่านสบาย
   สารบัญจึงไปอยู่ในขอบว่างด้านซ้ายที่มีอยู่แล้ว ไม่ได้เบียดเนื้อหาให้แคบลง
   กริดสามคอลัมน์ ซ้ายกับขวากว้างเท่ากัน เนื้อหาจึงยังอยู่กลางหน้าพอดี */
.article-layout > .article-body { max-width: 46rem; margin-inline: auto; }

@media (min-width: 1180px) {
  .article-layout {
    display: grid;
    grid-template-columns: 1fr min(46rem, 100%) 1fr;
    column-gap: var(--sp-6);
    align-items: start;
  }
  .article-layout > .article-body { grid-column: 2; margin-inline: 0; }
  .article-toc {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    position: sticky;
    /* เว้นจากเฮดเดอร์ที่ลอยอยู่ ไม่งั้นหัวข้อแรกจะถูกบัง */
    top: calc(var(--header-h) + var(--sp-5));
    width: min(15rem, 100%);
    max-height: calc(100vh - var(--header-h) - var(--sp-8));
    overflow-y: auto;
    font-size: var(--fs-tiny);
    border-right: 1px solid var(--border);
    padding-right: var(--sp-5);
  }
}

.article-toc-title {
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--verdant);
  margin-bottom: var(--sp-3);
}
.article-toc-list { list-style: none; margin: 0; padding: 0; }
.article-toc-list li { margin-bottom: var(--sp-2); }
.article-toc-list a {
  display: block;
  padding: var(--sp-1) 0;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  /* เส้นบอกตำแหน่งอยู่ทางซ้ายของตัวอักษร ใช้ขอบแทนการขยับตัวอักษร
     เพื่อไม่ให้รายการกระตุกตอนเลื่อนผ่านหัวข้อ */
  border-left: 2px solid transparent;
  padding-left: var(--sp-3);
  margin-left: calc(var(--sp-3) * -1);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
@media (hover: hover) {
  .article-toc-list a:hover { color: var(--verdant); border-color: var(--sage); }
}
.article-toc-list a:active { color: var(--verdant); transition-duration: var(--dur-instant); }
/* หัวข้อที่กำลังอ่านอยู่ ตั้งโดยสคริปต์ */
.article-toc-list a[aria-current="true"] {
  color: var(--verdant);
  font-weight: 600;
  border-color: var(--citrus-deep);
}

/* บนจอแคบ สารบัญกลายเป็นกล่องพับเก็บอยู่หัวบทความ ไม่ใช่แถบลอย
   เพราะจอแคบไม่มีขอบว่างให้วาง และแถบลอยจะไปทับเนื้อหาที่กำลังอ่าน */
@media (max-width: 1179px) {
  .article-toc {
    display: block;
    margin-bottom: var(--sp-7);
    padding: var(--sp-5);
    background: var(--sage-wash);
    border-radius: var(--radius);
    font-size: var(--fs-small);
  }
  .article-toc-list { columns: 2; column-gap: var(--sp-5); }
}
@media (max-width: 560px) {
  .article-toc-list { columns: 1; }
}

/* หัวข้อในบทความต้องไม่ถูกเฮดเดอร์บังตอนกดจากสารบัญ
   scroll-margin-top บอกเบราว์เซอร์ให้หยุดก่อนถึงหัวข้อเท่าความสูงเฮดเดอร์ */
.article-body h2 { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

/* ---------- แถบบอกบทที่กำลังอ่าน หน้าเรื่องราว ----------

   หน้าเรื่องราวมีเจ็ดบทและยาวเก้าจอ ป้าย "บทที่ 3" อยู่ที่หัวบทเท่านั้น
   พอเลื่อนผ่านไปแล้วก็ไม่เหลืออะไรบอกว่ากำลังอ่านบทไหนอยู่

   ติดอยู่ใต้เฮดเดอร์ ไม่ใช่ลอยทับเนื้อหา และแสดงเฉพาะช่วงที่อยู่ในบทความจริง
   ออกนอกส่วนนั้นเมื่อไรก็หายไป เพราะแถบที่ค้างอยู่ตลอดคือการกินพื้นที่จอฟรี ๆ */
.chapter-marker {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 90;
  padding: var(--sp-2) 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-tiny);
  color: var(--verdant);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              visibility 0s linear var(--dur-fast);
  visibility: hidden;
}
.chapter-marker.is-shown { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.chapter-marker .container { display: flex; align-items: baseline; gap: var(--sp-3); }
.chapter-marker-num { font-weight: 600; white-space: nowrap; }
.chapter-marker-title {
  color: var(--text-muted);
  /* ชื่อบทบางบทยาว ตัดด้วยจุดไข่ปลาแทนการดันแถบให้สูงสองบรรทัด */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- ปุ่มคัดลอกข้างช่องทางติดต่อ ----------

   บนมือถือการลากเลือกอีเมลให้ครบพอดีเป็นเรื่องยาก คนจำนวนหนึ่งเลิกกลางทาง
   ปุ่มนี้อยู่นอกแท็ก a ในโครงสร้าง เพราะปุ่มซ้อนในลิงก์เป็น HTML ที่ไม่ถูกต้อง
   และโปรแกรมอ่านหน้าจอจะสับสนว่าตกลงกดแล้วได้อะไร
   สคริปต์จึงห่อการ์ดไว้อีกชั้นแล้ววางปุ่มทับมุมขวาบน */
/* ค่าตั้งต้นคือปุ่มอยู่ใต้การ์ด ซึ่งไม่มีทางทับอะไรไม่ว่าการ์ดจะแคบแค่ไหน
   แล้วค่อยยกขึ้นไปมุมขวาเมื่อการ์ดกว้างพอเท่านั้น
   ทางที่ปลอดภัยคือทางตั้งต้น ไม่ใช่ทางที่ต้องมีเงื่อนไขมาช่วย */
.channel-wrap {
  position: relative;
  display: block;
  container-type: inline-size;
}
.channel-copy {
  margin-top: var(--sp-2);
  min-width: 44px; min-height: 44px;   /* เกณฑ์พื้นที่แตะ */
  display: grid;
  place-content: center;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--verdant);
  font-size: var(--fs-tiny);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
@media (hover: hover) {
  .channel-copy:hover { border-color: var(--sage); background: var(--sage-wash); }
}
.channel-copy:active { background: var(--sage-light); transition-duration: var(--dur-instant); }
.channel-copy[data-copied] { border-color: var(--verdant); color: var(--verdant); }

/* ตัวที่กำหนดว่าปุ่มจะทับอีเมลหรือไม่ คือความกว้างของ "การ์ด" ไม่ใช่ของ "จอ"
   การ์ดใบเดียวกันกว้าง 352px บนจอ 1440 แต่เหลือ 295px บนจอ 700
   เพราะกริดเปลี่ยนจำนวนคอลัมน์ตามที่ว่าง การใช้ @media จึงเดาผิดเสมอ
   สักจุดหนึ่ง — ลองมาแล้วที่ 620px และยังทับที่ 700px

   @container ถามความกว้างของการ์ดเองตรง ๆ จึงตอบถูกทุกกรณีโดยไม่ต้องเดา
   ยกปุ่มขึ้นมุมขวาเมื่อการ์ดกว้างเกิน 400px ซึ่งวัดแล้วว่าอีเมลยังอยู่ครบ */
@supports (container-type: inline-size) {
  @container (min-width: 400px) {
    .channel-copy {
      position: absolute;
      top: var(--sp-3);
      right: var(--sp-3);
      z-index: 1;
      margin-top: 0;
    }
  }
}

/* ---------- ปุ่มแชร์บทความ ---------- */
.article-share {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--verdant);
  font-size: var(--fs-tiny);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
@media (hover: hover) {
  .article-share:hover { border-color: var(--sage); background: var(--sage-wash); }
}
.article-share:active { background: var(--sage-light); transition-duration: var(--dur-instant); }

/* ป้ายบอกบท "บทที่ 1" ถึง "บทที่ 7"
   เคยใช้ --citrus-deep ซึ่งวัดได้ 3.02:1 บนพื้นไอวอรี่ ต่ำกว่าเกณฑ์ 4.5
   ป้ายพวกนี้คือสิ่งที่บอกคนอ่านว่ากำลังอยู่ตอนไหนของเรื่อง
   ถ้าอ่านไม่ออกก็เท่ากับไม่มี */
.chapter-num {
  font-family: var(--font-accent);
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--citrus-text);
  display: block;
  margin-bottom: var(--sp-3);
}
.chapter h2 { margin-bottom: var(--sp-4); }

/* ---------- Retailer cards ---------- */
.retailer {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .retailer:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); color: var(--text); }
}
/* การ์ดร้านค้าและลิงก์ดาวน์โหลด กดแล้วยุบลงเหมือนกดปุ่มจริง
   ทั้งใบเป็นลิงก์ จึงต้องรู้สึกได้ว่าทั้งใบคือสิ่งที่กดได้ */
.retailer:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--verdant-soft);
  transition-duration: var(--dur-instant);
}
.retailer-logo {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-content: center;
  border-radius: var(--radius-sm);
  background: var(--sage-wash);
  font-size: 1.35rem;
}
.retailer-logo svg { display: block; }

/* สีประจำแต่ละร้าน ช่วยให้คนกวาดตาหาแอปที่ตัวเองใช้อยู่เจอเร็วกว่าสีเดียวกันหมด
   ไอคอนวาดด้วย currentColor จึงคุมสีจากตรงนี้ที่เดียว */
.brand-shopee { color: #EE4D2D; background: #FDECE8; }
.retailer-name { font-weight: 600; color: var(--verdant-deep); }
.retailer-meta { font-size: var(--fs-tiny); color: var(--text-muted); }
.retailer[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  border-style: dashed;
}

/* ---------- Forms ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--verdant-deep);
}
/* ดอกจันบอกช่องที่ต้องกรอก เคยได้ 2.83:1 ซึ่งอ่านแทบไม่ออก
   เป็นสัญลักษณ์เดียวที่บอกว่าช่องไหนบังคับ ถ้ามองไม่เห็นคนจะกดส่งแล้วเจอ error */
.field .req { color: var(--citrus-text); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.7; }
@media (hover: hover) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
}
.field-hint { margin-top: var(--sp-2); font-size: var(--fs-tiny); color: var(--text-muted); }
.field-consent {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4);
  background: var(--sage-wash);
  border-radius: var(--radius-sm);
}
.field-consent input {
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 3px;
  flex: 0 0 20px;
  accent-color: var(--verdant);
}
.field-consent label { font-weight: 400; font-size: var(--fs-small); color: var(--text); margin: 0; }

/* ช่องล่อบอท ต้องมองไม่เห็นแต่ยังอยู่ในหน้า
   ใช้ position แทน display:none เพราะบอทบางตัวข้ามช่องที่ถูก display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* หน้าจอยืนยันหลังส่งข้อความสำเร็จ แทนที่ฟอร์มทั้งก้อน */
.form-done {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: var(--sage-wash);
}
.form-done-icon {
  display: grid;
  place-content: center;
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--verdant);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
}
.form-done h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.form-done p { color: var(--text-muted); margin-bottom: var(--sp-5); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-weight: 600;
  color: var(--verdant-deep);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--citrus-deep);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-bottom: var(--sp-5); color: var(--text-muted); max-width: 46rem; }

/* ---------- Empty state ---------- */
.empty-state {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  padding: clamp(3rem, 8vw, 5rem) var(--sp-5);
  text-align: center;
  border: 1px dashed var(--sage);
  border-radius: var(--radius-lg);
  background: var(--sage-wash);
}
.empty-state-icon { font-size: 2.25rem; }
.empty-state p { max-width: 34rem; color: var(--text-muted); }

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--fs-small);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .chip:hover { border-color: var(--sage); background: var(--sage-wash); color: var(--text); }
}
/* ตัวกรองต้องเข้มขึ้นทันทีที่แตะ ไม่ต้องรอให้รายการกรองเสร็จ
   ระหว่างที่รอคือช่วงที่คนสงสัยว่ากดติดไหม แล้วมักจะกดซ้ำ */
.chip:active {
  border-color: var(--verdant-soft);
  background: var(--sage-light);
  color: var(--text);
  transition-duration: var(--dur-instant);
}
.chip[aria-current="true"] { background: var(--verdant); border-color: var(--verdant); color: var(--white); }
/* A chip that filters is a button, and a button brings its own font and
   sizing that would otherwise break the row. */
button.chip {
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.5;
  min-height: 44px;
  cursor: pointer;
}

/* Press kit: a thumbnail of the file the link hands over */
.press-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--sage-wash);
  padding: var(--sp-2);
}
.press-asset { align-items: center; }

/* วิดีโอกิจกรรม ให้กว้างเต็มคอลัมน์และไม่ล้นบนจอแคบ */
/* ภาพนิ่งกับวิดีโอในส่วนความรับผิดชอบต่อสังคม วางเคียงกันบนจอกว้าง

   เดิมวางซ้อนลงมา ความสูงจึงเป็นผลบวกของทั้งสอง คือ 1,384px
   ขณะที่คอลัมน์ข้อความข้างๆ สูงเพียง 422px เกิดที่ว่างค้าง 962px
   ซึ่งเป็นช่องว่างที่ใหญ่ที่สุดที่วัดเจอในเว็บ
   พอวางเคียงกัน ความสูงเหลือเท่าอันที่สูงกว่า สองคอลัมน์จึงจบใกล้กัน

   ภาพนิ่งกินสองแถวและยืดเต็มความสูง เพื่อให้ขอบล่างตรงกับคำบรรยายใต้วิดีโอ
   บนมือถือไม่ใช้กฎนี้ ทุกอย่างเรียงลงมาและได้ความกว้างเต็มซึ่งดูดีกว่า */
@media (min-width: 900px) {
  .csr-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-4);
  }
  .csr-media > img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .csr-media > .csr-video {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
  }
  .csr-media > .field-hint {
    grid-column: 2;
    grid-row: 2;
    margin-top: var(--sp-2) !important;  /* ทับ margin ที่ตั้งมาในแอตทริบิวต์ style */
  }
}

/* วิดีโอถ่ายด้วยมือถือ สัดส่วน 9:16 แนวตั้ง
   max-width กันไม่ให้สูงจนล้นจอ ถ้าปล่อยเต็มคอลัมน์จะสูงเกิน 900px
   aspect-ratio ยังต้องมี แม้ตอนนี้ poster จะเป็นเฟรมจากวิดีโอที่สัดส่วน 9:16
   ตรงกันอยู่แล้ว เพราะช่วงก่อนที่ poster จะโหลดเสร็จ เบราว์เซอร์ยังไม่รู้สัดส่วน
   ของอะไรเลยและจะใช้ค่าปริยาย 2:1 ทำให้กล่องขยับตอนภาพมาถึง
   ล็อกไว้ตั้งแต่แรกกล่องจึงมีขนาดเดียวตลอด และถ้าวันหลังมีคนเปลี่ยน poster
   เป็นภาพสัดส่วนอื่น เลย์เอาต์ก็ยังไม่พัง */
.csr-video {
  display: block;
  /* ข้อความสำรองที่อยู่ข้างในแท็ก video จะแสดงเมื่อเบราว์เซอร์เล่นวิดีโอไม่ได้
     พื้นของกล่องเป็นเขียวเข้ม ถ้าไม่ตั้งสีตัวอักษรจะได้สีเข้มบนเข้ม = 1.09:1 */
  color: var(--sage-light);
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  margin: var(--sp-5) auto 0;
  border-radius: var(--radius-lg);
  background: var(--verdant-deep);
}
/* Categories that exist as a plan but have no page yet. Rendered as plain
   text rather than links so the site never points at a 404. */
.chip-soon {
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

/* ---------- Product page ---------- */
.product-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
}
.gallery { display: grid; gap: var(--sp-3); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.product-sticky { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }

.step-list { counter-reset: step; }
.step-list li {
  position: relative;
  counter-increment: step;
  padding-left: 3.25rem;
  padding-bottom: var(--sp-5);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--citrus);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-small);
}
.step-title { font-weight: 600; color: var(--verdant-deep); display: block; }
.step-text { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Safety notice ---------- */
.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--blush);
  border: 1px solid rgba(201, 143, 46, 0.25);
}
.notice-icon { flex: 0 0 auto; font-size: 1.25rem; }
.notice h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.notice p, .notice li { font-size: var(--fs-small); }

/* ---------- Contact channel cards ---------- */
.channel {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .channel:hover { border-color: var(--verdant); transform: translateY(-3px); color: var(--text); }
}
.channel:active {
  border-color: var(--verdant);
  transform: translateY(1px);
  color: var(--text);
  transition-duration: var(--dur-instant);
}
.channel-icon {
  flex: 0 0 44px; height: 44px;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--sage-wash);
  font-size: 1.2rem;
}
/* สีประจำแบรนด์ของแต่ละแอป ทำให้คนกวาดตาหาไอคอนที่คุ้นเคยเจอเร็วกว่าสีเดียวกันหมด
   ไอคอนวาดด้วย currentColor จึงคุมสีจากตรงนี้ที่เดียว */
.channel-icon svg { display: block; }
.brand-ig     { color: #E4405F; background: #FDEEF1; }
.brand-fb     { color: #1877F2; background: #E8F1FE; }
.brand-line   { color: #06C755; background: #E6F9EE; }
.brand-tiktok { color: #010101; background: var(--mist); }

.channel-label { font-size: var(--fs-tiny); color: var(--text-muted); }
.channel-value { font-weight: 600; color: var(--verdant-deep); word-break: break-word; }
