/* ------------------------------------------------------------------
   iDoi · ข้อเสนอแผนการตลาด 30 วัน
   The Ingress — กันยายน 2026

   แกนดีไซน์: เด็คนี้เถียงเรื่อง "แห้ง vs หอม" คู่แข่งขายกลิ่นซึ่ง
   มองไม่เห็น iDoi ขายความแห้งซึ่งมองเห็น หน้าเว็บจึงต้องดูแห้ง —
   ด้าน ชอล์ก ไม่มี gloss ไม่มี gradient ผงคือพระเอกที่เดียว
   ------------------------------------------------------------------ */

:root {
  --humid:  #16243A;   /* น้ำเงินสเลตเข้ม — พื้นสไลด์คั่นส่วน */
  --humid2: #1E3049;   /* ชั้นรองบนพื้นเข้ม */
  --can:    #3F4F70;   /* สีตัวกระป๋อง — หมึกหลัก */
  --steel:  #7184AF;   /* ไฮไลต์กระป๋อง — ตัวรอง */
  --powder: #EDEBE4;   /* ชอล์กเย็น — พื้นสไลด์เนื้อหา */
  --chalk:  #FAF9F5;   /* ขาวผง — เก็บไว้ให้ค่าที่สูงสุดเท่านั้น */
  --flag:   #C4554E;   /* เฉพาะตัวเลขติดลบและเงื่อนไขหยุด */
  --go:     #1F6E8C;   /* เฉพาะตัวเลขบวกและสัญญาณให้สเกล
                          เลือกฟ้าอมเขียวแทนเขียว เพราะคู่เขียว/แดงตกเช็ค
                          ตาบอดสี protan (ΔE 4.0) คู่นี้ผ่านที่ ΔE 9.9 */

  --rule:   rgba(63, 79, 112, .22);
  --rule-d: rgba(237, 235, 228, .16);

  --stage-w: 1280px;
  --stage-h: 720px;
  --pad: 76px;
  --gut: 96px;   /* รางซ้ายที่เก็บเลขสไลด์ */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0C1523;
  color: var(--can);
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ไม่มี JS ก็ยังอ่านได้ — สไลด์เรียงลงมาให้เลื่อนดู */
html.no-js body { overflow: auto; }
html.no-js .deck { position: static; }
html.no-js .slide {
  position: relative; left: auto; top: auto; transform: none;
  display: block !important; margin: 0 auto 28px;
  zoom: min(1, calc((100vw - 24px) / 1280));   /* ย่อให้พอดีจอโดยไม่ต้องใช้ JS */
}
html.no-js .chrome { display: none; }

/* ---------- เวที ---------- */

.deck {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.slide {
  position: absolute;
  width: var(--stage-w);
  height: var(--stage-h);
  background: var(--powder);
  color: var(--can);
  display: none;
  overflow: hidden;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: center center;
}

.slide.is-current { display: block; }

.slide-body {
  position: absolute;
  inset: var(--pad) var(--pad) 58px var(--gut);
  display: flex;
  flex-direction: column;
}

/* ---------- ขอบบน/ล่างของสไลด์ ---------- */

.masthead {
  position: absolute;
  top: 30px;
  left: var(--gut);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(63, 79, 112, .5);
}
.masthead b { font-weight: 600; color: rgba(63, 79, 112, .72); }

.folio {
  position: absolute;
  left: 34px;
  top: var(--pad);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(63, 79, 112, .42);
}

.source {
  position: absolute;
  left: var(--gut);
  right: var(--pad);
  bottom: 26px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(63, 79, 112, .52);
}

/* บรรทัดตีความ — อยู่ท้ายสไลด์เสมอ คั่นด้วยเส้นสั้น
   นี่คือกติกาของเล่ม: ข้อเท็จจริงข้างบน ความเห็นของเราข้างล่าง */
.read {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  line-height: 1.55;
  max-width: 82ch;
  color: rgba(63, 79, 112, .88);
}
.read strong { font-weight: 600; color: var(--can); }

/* ---------- หัวข้อ ---------- */

h1, h2, h3 { margin: 0; font-weight: 600; }

.slide h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -.012em;
  max-width: 24ch;
  margin-bottom: 30px;
}
.slide h2.wide { max-width: 34ch; }
.slide h2.tight { margin-bottom: 20px; }

.kicker {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(63, 79, 112, .78);
  max-width: 74ch;
  margin: -14px 0 28px;
}

p { margin: 0 0 14px; line-height: 1.6; font-size: 18px; }
p:last-child { margin-bottom: 0; }

/* ---------- สไลด์พื้นเข้ม ---------- */

.slide.dark {
  background: var(--humid);
  color: var(--powder);
}
.slide.dark .masthead { color: rgba(237, 235, 228, .42); }
.slide.dark .masthead b { color: rgba(237, 235, 228, .7); }
.slide.dark .folio { color: rgba(237, 235, 228, .35); }
.slide.dark .source { color: rgba(237, 235, 228, .45); }
.slide.dark .kicker { color: rgba(237, 235, 228, .72); }
.slide.dark .read { border-top-color: var(--rule-d); color: rgba(237, 235, 228, .82); }
.slide.dark .read strong { color: var(--chalk); }

/* ---------- สไลด์คั่นส่วน ---------- */

.divider .slide-body { justify-content: center; }
.part {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--steel);
  margin-bottom: 18px;
}
.divider h2 {
  font-size: 56px;
  line-height: 1.08;
  max-width: 21ch;
  margin-bottom: 0;
}
.divider .rule {
  width: 132px;
  height: 3px;
  background: var(--steel);
  margin-top: 34px;
}

/* ---------- ตัวเลขใหญ่ ---------- */

.figures {
  display: flex;
  gap: 58px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.fig { min-width: 0; }
.fig .n {
  font-size: 66px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.028em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.fig .l {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(63, 79, 112, .7);
  max-width: 16ch;
}
.slide.dark .fig .l { color: rgba(237, 235, 228, .66); }
.fig.minor .n { font-size: 44px; }
.figures.big { gap: 72px; }
.figures.big .fig .n { font-size: 94px; letter-spacing: -.035em; }
.figures.big .fig .l { font-size: 16px; margin-top: 14px; }
.fig .n.neg { color: var(--flag); }
.fig .n.pos { color: var(--go); }

.hero-figure .unit {
  font-size: .3em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: .55em;
  margin-left: .12em;
}
.hero-figure {
  font-size: 150px;
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}

/* ---------- ตาราง ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
  font-variant-numeric: tabular-nums;
}
thead th:first-child, tbody td:first-child { padding-left: 11px; }
thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 14px 9px 0;
  color: rgba(63, 79, 112, .62);
  border-bottom: 1.5px solid var(--rule);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.4;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.num:last-child, th.num:last-child { padding-right: 0; }
td.num { font-variant-numeric: tabular-nums; }
td.lead { font-weight: 600; white-space: nowrap; }
td.dim { color: rgba(63, 79, 112, .68); }
.neg { color: var(--flag); }
.pos { color: var(--go); }
table.tight tbody td { padding-top: 7px; padding-bottom: 7px; }
tbody tr.hi td { background: rgba(63, 79, 112, .085); }
.slide.dark tbody tr.hi td { background: rgba(237, 235, 228, .07); }
tbody tr.hi td:first-child { box-shadow: inset 3px 0 0 var(--steel); }

.slide.dark thead th { color: rgba(237, 235, 228, .6); border-bottom-color: var(--rule-d); }
.slide.dark tbody td { border-bottom-color: var(--rule-d); }
.slide.dark td.dim { color: rgba(237, 235, 228, .66); }
.slide.dark .neg { color: #E08279; }
.slide.dark .pos { color: #6FB3CC; }

/* ---------- คอลัมน์ ---------- */

.split { display: grid; gap: 52px; }
.split.two { grid-template-columns: 1fr 1fr; }
.split.two-uneven { grid-template-columns: 1.15fr 1fr; }
.split.three { grid-template-columns: repeat(3, 1fr); gap: 40px; }

.col-head {
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 9px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--rule);
}
.slide.dark .col-head { border-bottom-color: var(--rule-d); }
.col-head.flag { color: var(--flag); border-bottom-color: rgba(196, 85, 78, .38); }
.col-head.go   { color: var(--go);   border-bottom-color: rgba(31, 110, 140, .38); }

ul.plain { margin: 0; padding: 0; list-style: none; }
ul.plain li {
  font-size: 17px;
  line-height: 1.45;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
ul.plain li:last-child { border-bottom: 0; }
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 1.5px;
  background: var(--steel);
}
.slide.dark ul.plain li { border-bottom-color: var(--rule-d); }
ul.plain li b { font-weight: 600; display: block; }
ul.plain li span { color: rgba(63, 79, 112, .68); font-size: 15.5px; }
.slide.dark ul.plain li span { color: rgba(237, 235, 228, .66); }

/* ---------- กราฟแท่ง ---------- */

.bars {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  height: 260px;
  margin-bottom: 62px;                      /* เว้นที่ให้ชื่อแท่งที่หลุดออกจาก flow */
  border-bottom: 1.5px solid var(--rule);   /* เส้นฐาน ไม่ให้แท่งลอย */
  position: relative;
}
.slide.dark .bars { border-bottom-color: var(--rule-d); }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bar .v {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 7px;
  text-align: center;
}
.bar .stem { background: var(--steel); width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.accent .stem { background: var(--can); }
/* ช่องว่างระหว่าง 2 กลุ่ม — สไลด์นี้เถียงว่าเงินกระจุก 2 จุด ต้องเห็นว่ามันแยกกัน */
.bar.group-break { margin-left: 44px; }
/* เหลือ 2 ระดับเท่านั้น — จางกว่านี้ตกเช็คคอนทราสต์ 3:1 กับพื้นชอล์ก
   ต่างกันด้วยน้ำหนักสี ไม่ใช่ความจาง และทุกแท่งมีตัวเลขกำกับอยู่แล้ว */
.bar.ghost .stem { background: var(--steel); }
/* ชื่อแท่งอยู่ใต้เส้นฐาน ไม่ใช่ในกล่องกราฟ เส้นฐานจะได้อยู่ใต้แท่งจริง ๆ */
.bar .cap {
  position: absolute;
  top: calc(100% + 11px);
  left: 0;
  right: 0;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.bar .cap b { font-weight: 600; display: block; }
.bar .cap span { color: rgba(63, 79, 112, .6); font-size: 13px; }
.slide.dark .bar .cap span { color: rgba(237, 235, 228, .6); }

.zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}
.zones div b { font-weight: 600; }

/* ---------- ตารางตำแหน่ง 2×2 ---------- */

.matrix {
  display: grid;
  grid-template-columns: 148px 1fr 1fr;
  grid-template-rows: 44px 1fr 1fr;
  height: 360px;
  font-size: 16px;
}
.matrix .axis-x, .matrix .axis-y {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(63, 79, 112, .72);
}
.matrix .axis-y { writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix .cell {
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  padding: 20px 22px;
  line-height: 1.55;
}
.matrix .cell.open {
  background: var(--humid);
  color: var(--chalk);
}
.matrix .cell.open .tag {
  font-size: 30px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.matrix .cell.open .sub { color: var(--steel); font-size: 15px; }

/* ---------- วงจรไก่กับไข่ ---------- */

.cycle { display: flex; align-items: stretch; gap: 0; margin-bottom: 30px; }
.cycle .node {
  flex: 1;
  border: 1px solid var(--rule-d);
  border-right: 0;
  padding: 22px 20px;
  background: rgba(237, 235, 228, .05);
}
.cycle .node:last-child { border-right: 1px solid var(--rule-d); }
.cycle .node b { display: block; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.cycle .node span { font-size: 15px; line-height: 1.45; color: rgba(237, 235, 228, .7); }
.cycle .node i {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--steel);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- สไลด์ 18: ผง ---------- */

.powder-slide { background: var(--humid); }
.powder-slide .slide-body { justify-content: center; }
.powder-slide h2 {
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: -.024em;
  max-width: 22ch;
  color: var(--chalk);
  margin-bottom: 30px;
  position: relative;
}
.powder-slide .read {
  margin-top: 0;
  max-width: 52ch;
  font-size: 19px;
  color: rgba(237, 235, 228, .92);
  border-top-color: rgba(237, 235, 228, .32);
}
.powder-slide .source { color: rgba(237, 235, 228, .62); }

/* ผง Micro Silica — จุดเดียวในเล่มที่ texture ขึ้นเต็มพื้น
   เบาพอที่จะอ่านตัวหนังสือทับได้ แต่เห็นว่าผิวไม่เรียบ */
.powder-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
}

/* ---------- หน้าปก ---------- */

.cover { background: var(--humid); color: var(--powder); }
.cover .slide-body { inset: var(--pad); justify-content: center; }
.cover .eyebrow {
  font-size: 15px;
  color: var(--steel);
  margin-bottom: 26px;
}
.cover h1 {
  font-size: 78px;
  line-height: .98;
  letter-spacing: -.028em;
  color: var(--chalk);
  max-width: 13ch;
}
.cover .sub {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(237, 235, 228, .8);
}
.cover .credit {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  font-size: 14px;
  color: rgba(237, 235, 228, .55);
  line-height: 1.6;
}
/* ครึ่งขวาเป็นแผงสว่างวางตัวสินค้า ตัดกับครึ่งซ้ายที่เป็นข้อโต้แย้ง
   ไม่ใช้ blend/mask เพราะภาพต้นฉบับมีพื้นสว่างอยู่แล้ว ปล่อยให้เป็นแผงจริง */
.cover .can {
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 100%;
  object-fit: contain;
  background: #E7E8E3;   /* เท่ากับพื้นหลังในรูปถ่าย ไม่ให้เห็นรอยต่อ */
  padding: 22px 0;
}
.cover .slide-body { inset: var(--pad) 46% var(--pad) var(--pad); }
.cover h1 { max-width: 15ch; font-size: 68px; }
.cover .sub { max-width: 30ch; font-size: 19px; }
.wordmark {
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 13px;
}

/* ---------- การ์ดสรุป (ใช้เฉพาะสไลด์ 2 และ 31) ---------- */

.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.pairs > div {
  padding: 22px 30px 22px 0;
  border-bottom: 1px solid var(--rule);
}
.pairs > div:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 40px; }
.pairs > div:nth-child(even) { padding-left: 40px; }
.pairs dt { font-size: 14.5px; font-weight: 600; color: rgba(63, 79, 112, .6); margin-bottom: 7px; }
.pairs dd { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 400; }
.pairs dd b { font-weight: 600; }

.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.decisions > div { padding: 0 34px; border-left: 1px solid var(--rule-d); }
.decisions > div:first-child { padding-left: 0; border-left: 0; }
.decisions .no {
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.decisions h3 { font-size: 26px; line-height: 1.25; margin-bottom: 12px; color: var(--chalk); }
.decisions p { font-size: 16px; color: rgba(237, 235, 228, .72); }

/* ---------- ไทม์ไลน์ ---------- */

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--rule); }
.timeline > div { padding: 20px 26px 0 0; position: relative; }
.timeline > div::before {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--steel);
}
.timeline > div:last-child::before { background: var(--can); }
.timeline .when { font-size: 14.5px; font-weight: 600; color: rgba(63, 79, 112, .62); margin-bottom: 10px; }
.timeline .what { font-size: 16.5px; line-height: 1.5; }
.timeline > div:last-child .what { font-weight: 600; }

/* ---------- ตารางหน้าสินค้า 12 ช่อง ---------- */

.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.shots > div { background: var(--powder); padding: 15px 14px 17px; min-height: 104px; }
.shots > div.key { background: var(--humid); color: var(--chalk); }
.shots .n { font-size: 13px; font-weight: 600; color: rgba(63, 79, 112, .5); font-variant-numeric: tabular-nums; margin-bottom: 9px; }
.shots > div.key .n { color: var(--steel); }
.shots .t { font-size: 14.5px; line-height: 1.38; }

/* ---------- รายการคลิป ---------- */

.clips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.clips > div { padding: 0 24px; border-left: 1px solid var(--rule); }
.clips > div:first-child { padding-left: 0; border-left: 0; }
.clips .type { font-size: 13px; font-weight: 600; color: var(--steel); margin-bottom: 12px; line-height: 1.35; }
.clips > div.key .type { color: var(--flag); }
.clips .line { font-size: 17px; line-height: 1.45; }

/* ---------- แถบผลลัพธ์ 3 กรณี ---------- */

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 4px; }
.cases > div { padding: 18px 28px; border-left: 3px solid var(--rule); }
.cases > div:first-child { border-left-color: var(--flag); }
.cases > div:nth-child(2) { border-left-color: var(--steel); }
.cases > div:last-child { border-left-color: var(--go); }
.cases .case-h { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.cases .case-n { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 7px; }
.cases .case-t { font-size: 15px; line-height: 1.45; color: rgba(63, 79, 112, .72); }
.slide.dark .cases .case-t { color: rgba(237, 235, 228, .7); }

/* ---------- แถบเครื่องมือของผู้อ่าน ---------- */

.chrome {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  color: rgba(237, 235, 228, .62);
  font-size: 12.5px;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  background: linear-gradient(0deg, rgba(12, 21, 35, .92), transparent);
  z-index: 40;
}
.chrome button {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid rgba(237, 235, 228, .28);
  padding: 4px 11px;
  cursor: pointer;
}
.chrome button:hover { border-color: rgba(237, 235, 228, .6); color: var(--chalk); }
.chrome button:focus-visible, .grid-item:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.chrome .count { font-variant-numeric: tabular-nums; margin-left: auto; }
.chrome .hint { opacity: .7; }

.progress {
  position: fixed;
  left: 0; bottom: 0;
  height: 2px;
  background: var(--steel);
  z-index: 41;
  transition: width .18s ease;
}

/* ---------- ตารางภาพรวม ---------- */

.grid-view {
  position: fixed;
  inset: 0;
  background: #0C1523;
  overflow-y: auto;
  padding: 26px 26px 60px;
  display: none;
  z-index: 50;
}
.grid-view.open { display: block; }
.grid-view h2 {
  color: var(--powder);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 20px;
}
.grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.grid-item {
  background: var(--powder);
  border: 1px solid transparent;
  aspect-ratio: 16 / 9;
  padding: 11px 12px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: var(--can);
  display: flex;
  flex-direction: column;
}
.grid-item.dark { background: var(--humid); color: var(--powder); }
.grid-item:hover { border-color: var(--steel); }
.grid-item .gi-n {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  opacity: .55;
  margin-bottom: 6px;
}
.grid-item .gi-t {
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 600;
}

/* ---------- จังหวะเคลื่อนไหวเดียวของทั้งเล่ม ----------
   ผงตกลงบนผิวหนึ่งครั้งตอนเข้าสไลด์ 18 นอกนั้นตัดภาพทันที */

.powder-slide.is-current .powder-field { animation: settle .9s ease-out both; }
.powder-slide.is-current h2 { animation: surface .7s ease-out both; }
@keyframes settle {
  from { opacity: 0; transform: translateY(-14px) scale(1.04); }
  to   { opacity: .16; transform: none; }
}
@keyframes surface {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- จอแคบ ---------- */

.rotate-hint {
  display: none;
  position: fixed;
  inset: auto 0 52px;
  text-align: center;
  color: rgba(237, 235, 228, .6);
  font-size: 13px;
  z-index: 45;
}
@media (max-width: 560px) and (orientation: portrait) {
  .rotate-hint { display: block; }
}

@media print {
  html, body { overflow: visible; background: #fff; }
  .chrome, .progress, .grid-view, .rotate-hint { display: none !important; }
  .deck { position: static; }
  .slide { position: relative; left: auto; top: auto; display: block !important; transform: none; page-break-after: always; margin: 0; }
}


/* ---------- การ์ดคลิป TikTok (สไลด์ 13–17, 19) ----------
   ภาพปกจริงอัตราส่วน 9:16 ตัวเลขยอดขายเป็นพระเอก ภาพเป็นหลักฐาน */

.clips-row { display: grid; gap: 18px; }
.clips-row.four { grid-template-columns: repeat(4, 1fr); }
.clips-row.five { grid-template-columns: repeat(5, 1fr); }

.clip { min-width: 0; display: flex; flex-direction: column; }
.clip .rank {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.clip .amount {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
/* ภาพปกเป็น 9:16 ทั้งหมด — ล็อกความสูงแล้วให้ความกว้างไหลตาม
   จะได้ไม่ต้องครอปภาพหลักฐานทิ้ง และการ์ดพอดีเวทีเสมอ */
.clip .cover {
  height: var(--cover-h, 252px);
  width: calc(var(--cover-h, 252px) * 9 / 16);
  max-width: 100%;
  object-fit: cover;
  display: block;
  background: rgba(113, 132, 175, .18);
}
.clips-row.five { --cover-h: 244px; }
.clips-row.four { --cover-h: 292px; }
.versus .pair   { --cover-h: 236px; }
.clip .meta {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: rgba(63, 79, 112, .66);
}
.slide.dark .clip .meta { color: rgba(237, 235, 228, .6); }
.clip .who { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.clip .what { font-size: 13px; line-height: 1.35; margin-top: 3px; color: rgba(63, 79, 112, .8); }
.slide.dark .clip .what { color: rgba(237, 235, 228, .78); }

/* คลิปที่เจ้าของปิดไปแล้ว — ไม่มีภาพปก บอกตรง ๆ ว่าเปิดดูไม่ได้ */
.clip.gone .cover {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(237, 235, 228, .58);
  background: rgba(237, 235, 228, .05);
  border: 1px dashed rgba(237, 235, 228, .28);
}

/* ---------- ครีมปะทะสเปรย์ (สไลด์ 19) ---------- */

.versus { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 34px; align-items: start; }
.versus .rule-v { background: var(--rule-d); align-self: stretch; }
.versus .side-head {
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 9px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--rule-d);
}
.versus .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- ตาราง 2 ฝั่ง (สไลด์ 8) ---------- */

.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.dual .note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(63, 79, 112, .7); }

/* ---------- แถบเงิน 299 บาท (สไลด์ 27) ----------
   ไล่เฉดเดียว เข้ม = จ่ายออกแน่นอน จางขึ้น = ยิ่งเป็นของเรา
   ก้อนค่าโฆษณาเป็นลายเส้น เพราะวันนี้ยังไม่ได้จ่ายจริง */

.money-bar { display: flex; gap: 2px; height: 64px; margin-bottom: 20px; }
.money-bar > div { position: relative; }
.money-bar .seg-fee    { background: #5A6E96; }
.money-bar .seg-cost   { background: #AEBDDB; }
.money-bar .seg-profit { background: #F2F0EA; }
.money-bar .seg-ads {
  background: repeating-linear-gradient(
    135deg,
    rgba(174, 189, 219, .30) 0 4px,
    transparent 4px 9px
  );
  box-shadow: inset 0 0 0 1px rgba(174, 189, 219, .6);
}
/* ใช้สัดส่วนเดียวกับแถบ ป้ายจะได้อยู่ใต้ก้อนของตัวเอง ไม่เลื่อน */
.money-legend { display: flex; gap: 2px; margin-bottom: 30px; }
.money-legend > div { padding-right: 16px; }
.money-legend .pct {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 5px;
}
.money-legend .what { font-size: 13.5px; line-height: 1.4; color: rgba(237, 235, 228, .7); }
.money-legend .seg-ads-label { color: rgba(237, 235, 228, .55); }

/* ---------- ถาม–ตอบ (สไลด์ 20) ---------- */

.qa { border-left: 2px solid var(--steel); padding-left: 22px; margin: 22px 0 0; }
.qa .q { font-size: 17px; font-weight: 600; color: var(--steel); margin-bottom: 10px; }
.qa .a { font-size: 18px; line-height: 1.55; color: rgba(237, 235, 228, .92); }
.qa ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.qa li { font-size: 16.5px; line-height: 1.4; padding-left: 18px; position: relative; color: rgba(237, 235, 228, .85); }
.qa li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1.5px; background: var(--steel); }

/* ==================================================================
   โหมดอ่าน — สำหรับมือถือแนวตั้ง
   เด็ค 16:9 ย่อลงจอ 390px แล้วตัวหนังสือเล็กจนอ่านไม่ออก โหมดนี้เลย
   เลิกใช้เวทีขนาดคงที่ แล้วให้ทุกอย่างไหลตามความกว้างจริงแทน
   เปิดอัตโนมัติเมื่อจอแคบกว่า 760px หรือกดปุ่มสลับเอง
   ================================================================== */

html.read-mode, html.read-mode body { overflow: auto; height: auto; background: var(--powder); }
html.read-mode .deck { position: static; display: block; }
html.read-mode .rotate-hint { display: none !important; }

html.read-mode .slide {
  position: relative;
  left: auto; top: auto;
  transform: none;
  display: block !important;
  width: 100%;
  height: auto;
  padding: 24px 20px 28px;
  border-bottom: 1px solid var(--rule);
}
html.read-mode .slide.dark, html.read-mode .powder-slide { border-bottom-color: var(--rule-d); }
html.read-mode .slide:last-child { border-bottom: 0; }

html.read-mode .slide-body { position: static; inset: auto; display: block; }
html.read-mode .masthead {
  position: static; left: auto; right: auto; top: auto;
  font-size: 11.5px; margin-bottom: 10px;
}
html.read-mode .folio { position: static; left: auto; top: auto; font-size: 11.5px; margin-bottom: 4px; }
html.read-mode .source {
  position: static; left: auto; right: auto; bottom: auto;
  font-size: 11.5px; margin-top: 16px;
}
html.read-mode .read { margin-top: 20px; padding-top: 14px; font-size: 16px; max-width: none; }

/* ---- ขนาดตัวอักษร ---- */
html.read-mode .slide h2 { font-size: clamp(23px, 6.2vw, 33px); max-width: none; margin-bottom: 16px; }
html.read-mode .divider h2 { font-size: clamp(26px, 7vw, 38px); max-width: none; }
html.read-mode .kicker { font-size: 15.5px; max-width: none; margin: -4px 0 18px; }
html.read-mode p { font-size: 15.5px; }
html.read-mode .part { font-size: 13px; margin-bottom: 10px; }

html.read-mode .figures { gap: 20px 32px; margin-bottom: 20px; }
html.read-mode .fig .n { font-size: clamp(36px, 10.5vw, 52px) !important; }
html.read-mode .figures.big .fig .n { font-size: clamp(40px, 12vw, 58px) !important; }
html.read-mode .fig .l { font-size: 13.5px; max-width: 22ch; }
html.read-mode .fig.minor .n { font-size: clamp(28px, 8vw, 38px) !important; }
html.read-mode .hero-figure { font-size: clamp(52px, 15vw, 82px); }

/* ---- ยุบทุกอย่างเหลือคอลัมน์เดียว ---- */
html.read-mode .split.two,
html.read-mode .split.three,
html.read-mode .split.two-uneven { grid-template-columns: 1fr; gap: 24px; }
html.read-mode .zones { grid-template-columns: 1fr; gap: 16px; font-size: 15px; }

html.read-mode .pairs { grid-template-columns: 1fr; }
html.read-mode .pairs > div { border-right: 0 !important; padding: 16px 0 !important; }
html.read-mode .pairs dd { font-size: 16.5px; }

html.read-mode .timeline { grid-template-columns: 1fr; border-top: 0; }
html.read-mode .timeline > div { padding: 0 0 18px 18px; border-left: 2px solid var(--rule); }
html.read-mode .timeline > div:last-child { padding-bottom: 0; }
html.read-mode .timeline > div::before { top: 3px; left: -5.5px; }

html.read-mode .decisions { grid-template-columns: 1fr; }
html.read-mode .decisions > div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--rule-d); }
html.read-mode .decisions > div:first-child { border-top: 0; padding-top: 0; }
html.read-mode .decisions h3 { font-size: 21px; }

html.read-mode .clips { grid-template-columns: 1fr; }
html.read-mode .clips > div { padding: 13px 0; border-left: 0; border-top: 1px solid var(--rule); }
html.read-mode .clips > div:first-child { border-top: 0; padding-top: 0; }
html.read-mode .clips .line { font-size: 15.5px; }

html.read-mode .cases { grid-template-columns: 1fr; gap: 10px; }
html.read-mode .cases > div { padding: 12px 16px; }

html.read-mode .shots { grid-template-columns: repeat(2, 1fr); }
html.read-mode .shots > div { min-height: 0; padding: 12px 11px 13px; }
html.read-mode .shots .t { font-size: 13px; }

html.read-mode .cycle { display: grid; grid-template-columns: 1fr; }
html.read-mode .cycle .node { border: 1px solid var(--rule-d); border-bottom: 0; padding: 15px 16px; }
html.read-mode .cycle .node:last-child { border-bottom: 1px solid var(--rule-d); }
html.read-mode .cycle .node b { font-size: 17px; }

/* ตารางตำแหน่งยังต้องเป็นตาราง ไม่งั้นความหมายหาย แค่ย่อลง */
html.read-mode .matrix {
  grid-template-columns: 28px 1fr 1fr;
  grid-template-rows: auto auto auto;
  height: auto;
  font-size: 13px;
}
html.read-mode .matrix .axis-x { font-size: 11px; }
html.read-mode .matrix .axis-y { font-size: 10px; line-height: 1.2; }
html.read-mode .matrix .cell { padding: 12px 10px; }
html.read-mode .matrix .cell.open .tag { font-size: 21px; }
html.read-mode .matrix .cell.open .sub { font-size: 12px; }

html.read-mode ul.plain li { font-size: 15px; padding: 8px 0 8px 18px; }
html.read-mode ul.plain li span { font-size: 14px; }
html.read-mode .col-head { font-size: 13.5px; }

/* ---- ตาราง ---- */
html.read-mode table { font-size: 12.5px; }
html.read-mode thead th { font-size: 11px; white-space: normal; padding-right: 8px; }
html.read-mode tbody td { padding: 8px 8px 8px 0; }
html.read-mode thead th:first-child, html.read-mode tbody td:first-child { padding-left: 8px; }
html.read-mode td.lead { white-space: normal; }

/* ---- กราฟแท่ง ---- */
html.read-mode .bars { height: 150px; gap: 7px; margin-bottom: 86px; }
html.read-mode .bar .v { font-size: 12.5px; margin-bottom: 5px; }
html.read-mode .bar .cap { font-size: 11px; top: calc(100% + 8px); }
html.read-mode .bar .cap span { font-size: 10px; }
html.read-mode .bar.group-break { margin-left: 14px; }

/* ---- หน้าปก ---- */
html.read-mode .cover { padding: 0; }
html.read-mode .cover .can {
  position: static;
  width: 100%; height: 238px;
  object-fit: contain;          /* ให้เห็นกระป๋องทั้งใบ ไม่ตัดหัวตัดท้าย */
  background: #E7E8E3;
  padding: 16px 0;
}
html.read-mode .cover .slide-body { padding: 24px 20px 0; }
html.read-mode .cover h1 { font-size: clamp(29px, 8.2vw, 42px); max-width: none; }
html.read-mode .cover .sub { font-size: 16px; max-width: none; margin-top: 18px; }
html.read-mode .cover .credit { position: static; padding: 22px 20px 26px; }

html.read-mode .powder-slide h2 { font-size: clamp(27px, 7.4vw, 40px); max-width: none; }
html.read-mode .powder-slide .read { max-width: none; }

/* ---- แถบเครื่องมือ ---- */
html.read-mode .chrome {
  background: linear-gradient(0deg, rgba(22, 36, 58, .96), rgba(22, 36, 58, .82));
}
html.read-mode #prev, html.read-mode #next, html.read-mode #grid-open,
html.read-mode .chrome .hint { display: none; }
html.read-mode .chrome .count { font-variant-numeric: normal; }

/* ---- โหมดอ่าน: คอมโพเนนต์ใหม่ ---- */

html.read-mode .clips-row.four,
html.read-mode .clips-row.five { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
html.read-mode .clip .amount { font-size: 20px; margin-bottom: 8px; }
html.read-mode .clip .rank { font-size: 11px; }
html.read-mode .clip .meta { font-size: 11px; margin-top: 7px; }
html.read-mode .clip .who { font-size: 11.5px; }
html.read-mode .clip .what { font-size: 12px; }
html.read-mode .clip.gone .cover { font-size: 11.5px; }

html.read-mode .versus { grid-template-columns: 1fr; gap: 26px; }
html.read-mode .versus .rule-v { display: none; }
html.read-mode .versus .side-head { font-size: 13.5px; }

html.read-mode .dual { grid-template-columns: 1fr; gap: 28px; }
html.read-mode .dual .note { font-size: 13px; }

html.read-mode .money-bar { height: 42px; margin-bottom: 16px; }
html.read-mode .money-legend { grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-bottom: 24px; }
html.read-mode .money-legend .pct { font-size: 18px; }
html.read-mode .money-legend .what { font-size: 12.5px; }

html.read-mode .qa { padding-left: 16px; margin-top: 18px; }
html.read-mode .qa .q { font-size: 15px; }
html.read-mode .qa .a { font-size: 16px; }
html.read-mode .qa li { font-size: 15px; }
