/* ส่วนที่ทีม IT เพิ่มบนดีไซน์ของ Chanon — ใช้โทเคนสีและขนาดตัวอักษรชุดเดียวกับ site.css */

.info-subhead { margin: 40px 0 6px !important; }
.info-disclosure-body { padding: 0 0 22px; }
.info-disclosure-body > p { font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 760px; margin: 0 0 14px; }
.info-params { font-size: 13px !important; }

/* รายการลำดับขั้น */
.info-steps { list-style: none; counter-reset: info-step; padding: 0; margin: 8px 0 18px; }
.info-steps > li { counter-increment: info-step; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 13px 0; border-top: 1px solid #daddd0; font-size: 14px; line-height: 1.85; }
.info-steps > li::before { content: counter(info-step, decimal-leading-zero); font-size: 11px; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.info-steps--named > li { grid-template-columns: 36px minmax(120px, 190px) 1fr; }
.info-steps--named > li > strong { font-weight: 500; }

/* ภาพประกอบ */
.info-figure { margin: 26px 0; }
.info-figure img, .info-gallery img, .info-compare img { display: block; width: 100%; height: auto; border-radius: 6px; background: #e4e2d8; }
.info-figure figcaption { margin-top: 12px; }
.info-caption { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.info-legend { columns: 2; column-gap: 28px; padding-left: 22px; margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink); }
.info-legend li { break-inside: avoid; }

.info-gallery, .info-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.info-gallery figure, .info-compare figure { margin: 0; min-width: 0; }
.info-gallery figcaption, .info-compare figcaption { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.info-compare figcaption { font-size: 13px; color: var(--ink); }

/* ตารางข้อมูล */
.info-permit-table th:last-child, .info-permit-table td:last-child { width: 120px; }
button.info-doc-link { min-height: 0; padding: 0; cursor: pointer; }
.info-data-table { min-width: 520px; }
.info-data-table td:not(:first-child), .info-data-table th:not(:first-child) { text-align: right; width: auto; font-variant-numeric: tabular-nums; }
.info-doc-link, .info-inline-link { border-bottom: 1px solid #9ba38e; }

/* ตัวเลขสรุป */
.info-fund { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-fund .fee-metric strong { font-size: clamp(26px, 2.6vw, 38px); overflow-wrap: anywhere; }
.info-facts-extra { margin-top: 0; }
.info-monthly-detail { margin-top: 10px; }
.info-waste-extra { margin-top: 40px; }
.fee-summary > .information-note { margin-bottom: 20px; }

/* ติดต่อเจ้าของโครงการ */
.info-owner-contact { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.info-owner-contact > h3 { font-size: 16px; font-weight: 500; }
.info-owner-lead { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 8px; max-width: 560px; }
.info-owner-contact .office-grid { margin: 18px 0 0; }

@media (max-width: 800px) {
  .info-steps--named > li { grid-template-columns: 36px 1fr; }
  .info-steps--named > li > span { grid-column: 2; }
  .info-legend { columns: 1; }
  .info-gallery, .info-compare, .info-fund { grid-template-columns: 1fr; }
  .info-permit-table th:last-child, .info-permit-table td:last-child { width: auto; }
}

/* เอกสารใบอนุญาต: ดูได้อย่างเดียว ไม่มีเมนูบันทึกภาพ ลากออกไม่ได้ ไม่พิมพ์ */
.info-protected { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.info-protected img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
@media print { .info-doc-view, .info-protected { display: none !important; } }

/* ฟอร์มร้องเรียน */
.info-attach-hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 14px 0 0; }
.info-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink); cursor: pointer; }
.info-consent input { margin-top: 5px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--olive); }
.info-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.info-status-form { margin-top: 28px; }
.send:disabled { opacity: .6; cursor: progress; }

/* 07 กิจกรรมเพื่อสังคม (ข่าวจากหลังบ้าน) */
.info-csr-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.info-csr-card { display: grid; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.info-csr-card img, .info-csr-noimg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #e4e2d8; }
.info-csr-card small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.info-csr-card strong { font-size: 17px; font-weight: 500; line-height: 1.55; }
.info-csr-summary { font-size: 13px; line-height: 1.8; color: var(--muted); }
.info-csr-card:hover strong, .info-csr-card:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.info-csr-card:focus-visible { outline: 2px solid #87986b; outline-offset: 6px; border-radius: 6px; }
.info-csr-empty { display: block !important; }
.info-csr-title { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.45; letter-spacing: -.02em; }
.info-csr-gallery { margin-top: 30px; }
html[lang="en"] .info-lang-th, html:not([lang="en"]) .info-lang-en { display: none; }
@media (max-width: 640px) { .info-csr-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   v0.8.0 · ตัวอักษร ช่องไฟ และการเคลื่อนไหว (18/09/2569)
   - IBM Plex Sans Thai (OFL · เก็บในเครื่อง ไม่โหลดจากภายนอก) แทน Arial + Noto Sans Thai
     ไทยและอังกฤษเป็นตระกูลเดียวกัน อ่านเป็นทางการกว่า · Georgia ของหัวข้ออังกฤษตัวใหญ่คงไว้ตามดีไซน์
   - หัวข้อภาษาไทยเลิกบีบช่องไฟ (ดีไซน์ใช้ -0.045em ทำให้สระ/วรรณยุกต์ชนกัน)
   - การเคลื่อนไหวทำงานเฉพาะ .motion-on และผู้ใช้ไม่ได้ตั้ง "ลดการเคลื่อนไหว"
   ========================================================================== */

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

/* ---------- ตัวอักษร ---------- */
body {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font-family: inherit; }

/* หัวข้อภาษาไทย: ช่องไฟปกติ น้ำหนักชัดขึ้น (ภาษาอังกฤษยังใช้ช่องไฟแน่นตามดีไซน์) */
html[lang="th"] .thai-head,
html[lang="th"] #home .hero-title,
html[lang="th"] .contact-title,
html[lang="th"] .information-panel h3,
html[lang="th"] .info-csr-title,
html[lang="th"] .timeline-heading h3 { letter-spacing: -0.005em; }
.thai-head, .information-panel h3 { font-weight: 500; }
.information-panel h4, .info-subhead { font-weight: 600; letter-spacing: 0; }
.information-panel h3 { margin-bottom: 10px; }

/* เนื้อความ: บรรทัดโปร่งสำหรับภาษาไทย ความยาวบรรทัดไม่เกิน ~70 ตัวอักษร */
.lead, .information-description, .information-panel p, .reading-lead, .sustain-body, .meeting-row p { line-height: 1.85; }
.information-panel > p, .information-description, .reading-lead { max-width: 70ch; }

/* ตัวเลข: ความกว้างเท่ากันทุกหลัก เรียงตรงหลัก */
.metric-value, .record-highlights strong, .fee-metric strong, .report-metric strong,
.permit-table td, .info-data-table td, .timeline time, .adm-num {
  font-variant-numeric: tabular-nums lining-nums;
}
.metric-value, .record-highlights strong, .fee-metric strong { letter-spacing: -0.03em; }

/* ตาราง: หัวตารางแบบเอกสารราชการ */
.permit-table th { font-size: 12px; font-weight: 500; }
html[lang="en"] .permit-table th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.permit-table td { padding-top: 18px; padding-bottom: 18px; }
.permit-table td > span { font-weight: 500; }

/* ป้าย kicker/eyebrow: อังกฤษช่องไฟกว้าง · ไทยห้ามถ่างช่องไฟ (พยางค์แตก) */
.eyebrow, .kicker, .reading-kicker { font-weight: 500; }
html[lang="en"] .eyebrow, html[lang="en"] .kicker, html[lang="en"] .reading-kicker { letter-spacing: 0.16em; }

/* โฟกัส: เส้นเฉพาะตอนใช้คีย์บอร์ด (เดิมแผงข้อมูลขึ้นกรอบดำเมื่อเปิดจากลิงก์) */
.information-panel:focus { outline: none; }
.information-panel:focus-visible { outline: 2px solid #87986b; outline-offset: 10px; border-radius: 4px; }

/* ---------- การเคลื่อนไหว ---------- */
@keyframes msp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* เปิดแท็บข้อมูลสาธารณะ: เนื้อหาไล่ขึ้นทีละส่วน */
  .js.motion-on .information-panel:not([hidden]) > * { animation: msp-rise .55s var(--ease) both; }
  .js.motion-on .information-panel:not([hidden]) > :nth-child(2) { animation-delay: .05s; }
  .js.motion-on .information-panel:not([hidden]) > :nth-child(3) { animation-delay: .1s; }
  .js.motion-on .information-panel:not([hidden]) > :nth-child(4) { animation-delay: .15s; }
  .js.motion-on .information-panel:not([hidden]) > :nth-child(5) { animation-delay: .2s; }
  .js.motion-on .information-panel:not([hidden]) > :nth-child(n+6) { animation-delay: .25s; }
  .js.motion-on .information-panel:not([hidden]) .info-csr-list li { animation: msp-rise .6s var(--ease) both; animation-delay: calc(.15s + var(--msp-i, 0) * 70ms); }
  .js.motion-on .information-panel:not([hidden]) .permit-table tbody tr { animation: msp-rise .5s var(--ease) both; animation-delay: calc(.12s + var(--msp-i, 0) * 50ms); }

  /* เลื่อนหน้าแล้วค่อย ๆ ปรากฏ (ส่วนที่ดีไซน์ยังไม่มี data-reveal) */
  .js.motion-on .msp-reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--msp-i, 0) * 90ms); }
  .js.motion-on .msp-reveal:not(.msp-in) { opacity: 0; transform: translateY(22px); }
  /* เส้นใต้หัวข้อ eyebrow ลากออกเมื่อเลื่อนมาถึง */
  .js.motion-on .eyebrow.msp-reveal:after { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
  .js.motion-on .eyebrow.msp-in:after { transform: scaleX(1); }

  /* การ์ด/ลิงก์: ตอบสนองเมื่อชี้ */
  .js.motion-on .info-csr-card { transition: transform .45s var(--ease); }
  .js.motion-on .info-csr-card img { transition: box-shadow .45s var(--ease), filter .45s var(--ease); }
  .js.motion-on .info-csr-card:hover { transform: translateY(-4px); }
  .js.motion-on .info-csr-card:hover img { box-shadow: 0 14px 30px -18px rgba(37, 46, 37, .55); filter: saturate(1.08); }
  .js.motion-on .information-source span[aria-hidden], .js.motion-on .text-link .arrow, .js.motion-on .source-link span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
  .js.motion-on .information-source:hover span[aria-hidden], .js.motion-on .text-link:hover .arrow, .js.motion-on .source-link:hover span[aria-hidden] { transform: translate(3px, -2px); }
  .js.motion-on .information-tab { transition: background-color .3s var(--ease), color .3s var(--ease); }
  .js.motion-on .information-tab .tab-arrow { transition: transform .35s var(--ease); }
  .js.motion-on .information-tab:hover .tab-arrow { transform: translateX(4px); }
}

/* v0.9.0 · แท็บที่ยังไม่เผยแพร่ · ท้ายเว็บ · สรุปสิ่งแวดล้อม */
.information-tab[hidden] { display: none !important; }
.info-env-brief p { max-width: 70ch; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-brand .footer-company { display: block; font-size: 12px; opacity: .7; }
.footer-legal { margin-top: 14px; text-align: right; font-size: 12px; line-height: 1.8; color: rgba(241, 238, 229, .55); }
.footer-legal p { margin: 0; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241, 238, 229, .35); }
.footer-legal a:hover { color: var(--cream); }
@media (max-width: 800px) { .footer-legal { text-align: left; margin-top: 22px; } }
.report-metrics:has(> .report-metric:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }

/* v0.10.0 · 03 ชุมชน: ภาพเลื่อนข่าว CSR (คุณ Chanon 19/09) — ใช้ขนาดเดียวกับภาพประชุมเดิมของดีไซน์ */
.community-csr { margin-top: 30px; }
.community-csr-stage { display: grid; color: inherit; text-decoration: none; }
.community-csr-slide { grid-area: 1 / 1; margin: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 24px; align-items: start; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease, ease), visibility 0s linear .9s; }
.community-csr-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease, ease), visibility 0s; }
.community-csr-slide .meeting-photo { width: 100%; box-shadow: 0 12px 35px rgba(0, 0, 0, .18); }
.community-csr-slide figcaption { display: grid; gap: 8px; }
.community-csr-slide small { font-size: 12px; opacity: .8; }
.community-csr-slide strong { font-size: 17px; font-weight: 500; line-height: 1.6; }
.community-csr-stage:hover strong, .community-csr-stage:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.community-csr-dots { display: flex; gap: 8px; margin-top: 16px; }
.community-csr-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.community-csr-dots button::before { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; opacity: .35; transition: opacity .3s; }
.community-csr-dots button[aria-current="true"]::before { opacity: 1; }
@media (max-width: 1150px) { .community-csr-slide { grid-template-columns: 1fr; } .community-csr-slide .meeting-photo { max-width: 270px; } }
@media (max-width: 800px) { .community-csr-slide { grid-template-columns: 1fr 1fr; gap: 18px; } .community-csr-slide .meeting-photo { max-width: none; } }
@media (max-width: 420px) { .community-csr-slide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .community-csr-slide, .community-csr-slide.is-active { transition: none; } }

/* ติดตามสถานะเรื่อง: หน้าต่างป๊อปอัป + ปุ่มในส่วนติดต่อ */
.info-status-open { margin-top: 22px; font-size: 13px; }
.info-status-dialog { width: min(520px, calc(100% - 32px)); }
.info-status-dialog h2 { font-size: 26px; }
.info-status-dialog .field { display: block; margin-top: 16px; }
.info-status-dialog .form-bottom { margin-top: 22px; }
.official-form-links button.source-link { background: transparent; border: 0; padding: 0; font-family: inherit; color: inherit; cursor: pointer; text-align: left; }
