@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════
   ERAWAN RUBBER — ระบบดีไซน์
   แนวคิด "Talc & Carbon" : สีผงแป้งโรยยาง กับสีดำคาร์บอนของยางวัลคาไนซ์
   สีเน้น = ทองเหลืองจากตราช้างเอราวัณบนโบรชัวร์บริษัท
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. โทเคนสี ──────────────────────────────────────────────────────── */
:root {
  --bg: #edece7;
  --surface: #f7f6f2;
  --surface-2: #e3e1da;
  --surface-3: #d8d5cc;
  --ink: #15120f;
  --ink-2: #5c564c;
  --ink-3: #877f72;
  --rule: #d5d2c8;
  --rule-soft: #e2dfd7;

  --brass: #8a5e12;
  --brass-hi: #6e4a0c;
  --brass-soft: #ece0c8;
  --brass-line: #d8c39a;

  --grade-e-bg: #d3e4da;
  --grade-e-fg: #1c5a42;
  --grade-g-bg: #dfe7d1;
  --grade-g-fg: #486025;
  --grade-f-bg: #f0e2c3;
  --grade-f-fg: #765518;
  --grade-p-bg: #eed8d0;
  --grade-p-fg: #8a341e;

  /* แถบเข้ม — คงสีเดิมทั้งสองธีม เพราะคือสีของเนื้อยาง */
  --band: #131110;
  --band-2: #1e1b19;
  --band-ink: #f2efe8;
  --band-ink-2: #a49b8d;
  --band-rule: #302c28;
  --band-brass: #d9a54a;

  --focus: #8a5e12;
  --sel-bg: #e5d9bd;

  --r: 3px;
  --r-lg: 5px;
  --wrap: 1200px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 68px;

  --ff-display: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110;
  --surface: #1a1816;
  --surface-2: #232120;
  --surface-3: #2c2926;
  --ink: #edeae3;
  --ink-2: #9d968a;
  --ink-3: #766f64;
  --rule: #2e2b27;
  --rule-soft: #232120;

  --brass: #d9a54a;
  --brass-hi: #eabd69;
  --brass-soft: #2a2117;
  --brass-line: #4a3b22;

  --grade-e-bg: #16291f;
  --grade-e-fg: #79c7a2;
  --grade-g-bg: #212a16;
  --grade-g-fg: #a8c271;
  --grade-f-bg: #2c2415;
  --grade-f-fg: #d9b25e;
  --grade-p-bg: #2e1b15;
  --grade-p-fg: #de8b6e;

  --band: #0d0c0b;
  --band-2: #171514;
  --focus: #d9a54a;
  --sel-bg: #3d3220;
}

/* ── 2. พื้นฐาน ──────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

::selection { background: var(--sel-bg); color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  translate: -50% -200%;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1.1rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus { translate: -50% 0; color: var(--bg); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 0; }

/* ── 3. ตัวอักษรอเนกประสงค์ ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.h-display {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.h-1 { font-size: clamp(1.95rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.h-2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; }
.h-3 { font-size: 1.1875rem; font-weight: 600; }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-2); line-height: 1.72; }
.small { font-size: 0.875rem; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--ff-mono); font-size: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }

/* ── 4. ปุ่ม ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn svg { flex: none; transition: translate 0.18s; }
.btn:hover svg { translate: 3px 0; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brass-hi); color: #fff; }

.btn-outline { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }

.btn-band { background: var(--band-brass); color: #17140f; }
.btn-band:hover { background: #f0bd63; color: #17140f; }

.btn-ghost-band { border-color: rgba(242, 239, 232, 0.28); color: var(--band-ink); }
.btn-ghost-band:hover { border-color: var(--band-ink); color: var(--band-ink); background: rgba(242, 239, 232, 0.07); }

.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.link-arrow svg { transition: translate 0.18s; }
.link-arrow:hover svg { translate: 3px 0; }

/* ── 5. ส่วนหัว ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 30px; height: auto; }
:root[data-theme="dark"] .brand-mark,
.on-band .brand-mark { filter: invert(1) brightness(1.6); }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-en {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.brand-th { font-size: 0.6875rem; color: var(--ink-2); letter-spacing: 0.01em; }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.has-mega { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink-2);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s, background-color 0.16s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active { color: var(--ink); }
.nav-link svg { transition: rotate 0.2s; opacity: 0.65; }
.has-mega[data-open] .nav-link { color: var(--ink); background: var(--surface-2); }
.has-mega[data-open] .nav-link svg { rotate: 180deg; }

.mega {
  position: absolute;
  top: calc(100% + 9px);
  left: -0.5rem;
  min-width: 310px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  translate: 0 -6px;
  pointer-events: none;
  transition: opacity 0.16s, translate 0.16s;
}
.has-mega[data-open] .mega { opacity: 1; translate: 0; pointer-events: auto; }

/* สะพานล่องหนคลุมช่องว่างระหว่างปุ่มเมนูกับกล่องเมนูย่อย
   ถ้าไม่มี เมาส์จะหลุดออกจากพื้นที่ hover ตอนเลื่อนลงมา แล้วเมนูปิดก่อนกดได้ */
.mega::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.mega-inner { padding: 0.4rem; }
.mega-item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
}
.mega-item:hover { background: var(--surface-2); color: var(--ink); }
.mega-item-label { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.mega-item-desc { display: block; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.45; }

.header-tools { display: flex; align-items: center; gap: 0.4rem; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-on { padding: 0.34rem 0.42rem; background: var(--ink); color: var(--bg); }
.lang-off { padding: 0.34rem 0.42rem; color: var(--ink-2); }
.lang-toggle:hover .lang-off { color: var(--ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }

.i-moon, .i-close { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: inline-flex; }

.menu-btn { display: none; }
[data-menu-open] .i-menu { display: none; }
[data-menu-open] .i-close { display: inline-flex; }

/* ── 6. เมนูมือถือ ───────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  overflow-y: auto;
  border-top: 1px solid var(--rule);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner { padding-block: 1.5rem 3rem; display: flex; flex-direction: column; gap: 0.15rem; }
.m-group { padding-block: 0.7rem; border-top: 1px solid var(--rule-soft); }
.m-group:first-child { border-top: 0; }
.m-title {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.35rem;
}
.m-link {
  display: block;
  padding: 0.62rem 0;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.m-sub { font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); padding: 0.42rem 0; }
.m-cta { margin-top: 1.6rem; justify-content: center; }

/* ── 7. แถบเข้ม (hero / คั่นหน้า) ─────────────────────────────────────── */
.band {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  overflow: hidden;
}
.band a:not(.btn) { color: var(--band-brass); }
.band .eyebrow { color: var(--band-brass); }
.band .muted { color: var(--band-ink-2); }

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.2rem, 5vw, 3.2rem); }

/* ── สไลด์โชว์พื้นหลัง hero ──────────────────────────────────────────
   ภาพซ้อนกันทุกใบในตำแหน่งเดียว สลับด้วยการค่อยๆ จางเข้าออก
   พร้อมซูมช้าๆ (Ken Burns) ให้หน้าเว็บดูมีชีวิตโดยไม่รบกวนการอ่าน   */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.is-on { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08);
  transform-origin: 58% 50%;
}
.hero-slide.is-on img { animation: heroPan var(--hero-dur, 6500ms) linear both; }
@keyframes heroPan {
  from { transform: scale(1.015); }
  to { transform: scale(1.085); }
}

/* ── แถบควบคุมสไลด์ ───────────────────────────────────────────────── */
.hero-ticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--band-rule);
}
.hero-dots { display: flex; gap: 0.35rem; flex: none; }
.hero-dot {
  width: 32px;
  padding: 9px 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.hero-dot i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: rgba(242, 239, 232, 0.3);
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s;
}
.hero-dot:hover i { background: rgba(242, 239, 232, 0.4); }
.hero-dot.is-on i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band-brass);
  transform-origin: left center;
  animation: heroFill var(--hero-dur, 6500ms) linear both;
}
/* สถานะหยุดชั่วคราวติดไว้ที่ตัว section เพราะต้องคุมทั้งภาพและแถบควบคุม */
.hero.is-paused .hero-slide.is-on img,
.hero.is-paused .hero-dot.is-on i::after { animation-play-state: paused; }
@keyframes heroFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-cap {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--band-ink-2);
  transition: opacity 0.35s;
}
.hero-cap.is-fading { opacity: 0; }

.hero-play {
  flex: none;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--band-rule);
  border-radius: var(--r);
  background: transparent;
  color: var(--band-ink-2);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}
.hero-play:hover { color: var(--band-ink); border-color: var(--band-ink-2); }
.hero-play .i-play { display: none; }
.hero.is-paused .hero-play .i-play { display: inline-flex; }
.hero.is-paused .hero-play .i-pause { display: none; }

@media (max-width: 560px) { .hero-cap { display: none; } }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, var(--band) 4%, rgba(19, 17, 16, 0.88) 30%, rgba(19, 17, 16, 0.5) 58%, rgba(19, 17, 16, 0.66) 100%),
    linear-gradient(180deg, rgba(13, 12, 11, 0.55) 0%, rgba(13, 12, 11, 0.12) 30%, rgba(13, 12, 11, 0.35) 72%, var(--band) 99%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--band-brass); }
.hero-lead { max-width: 46ch; color: var(--band-ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

.hero-oring {
  position: absolute;
  right: -60px;
  top: -40px;
  z-index: 1;
  color: var(--band-brass);
  opacity: 0.2;
  pointer-events: none;
}
@media (max-width: 820px) { .hero-oring { display: none; } }

.hero-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--band-rule);
  border-left: 1px solid var(--band-rule);
}
.hero-spec > div { padding: 1rem 1.1rem 1.15rem; border-right: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); }
.hero-spec b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-spec span { display: block; font-size: 0.8125rem; color: var(--band-ink-2); margin-top: 0.4rem; line-height: 1.45; }
.hero-spec u { display: block; font-family: var(--ff-mono); font-size: 0.625rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--band-brass); text-decoration: none; margin-bottom: 0.45rem; }

/* แถบวิ่งข้อความรับรอง */
.certbar { border-top: 1px solid var(--band-rule); background: var(--band-2); }
.certbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem clamp(1.2rem, 4vw, 2.6rem);
  padding-block: 0.95rem;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--band-ink-2);
}
.certbar-inner b { color: var(--band-ink); font-weight: 500; }

/* ── 8. เซกชัน ───────────────────────────────────────────────────────── */
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head-row { display: grid; gap: 1.2rem; align-items: end; }
@media (min-width: 860px) { .section-head-row { grid-template-columns: minmax(0, 1fr) auto; } }
.section-head p.lead { margin-top: 0.9rem; max-width: 62ch; }

/* ── 9. การ์ด ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background-color 0.2s, translate 0.2s;
}
a.card:hover { border-color: var(--ink-3); background: var(--surface-2); translate: 0 -3px; }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
a.card:hover .card-media img { scale: 1.045; }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { font-size: 1.125rem; }
.card-body p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.62; margin: 0; }
.card-foot { margin-top: auto; padding-top: 0.9rem; color: var(--brass); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.4rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 0.14rem 0.42rem;
  border: 1px solid var(--brass-line);
  border-radius: 2px;
  color: var(--brass);
  background: var(--brass-soft);
}

/* การ์ดตัวเลข */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.figure { padding: 1.35rem 1.4rem 1.5rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figure b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figure b i { font-style: normal; font-size: 0.45em; letter-spacing: 0; }
.figure em { display: block; font-style: normal; font-weight: 600; font-size: 0.9375rem; margin-top: 0.5rem; }
.figure span { display: block; font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.25rem; line-height: 1.5; }
.figure .figure-val { font-family: var(--ff-mono); font-size: 1rem; color: var(--ink); margin-top: 0.3rem; }

/* รายการมีลำดับเลข */
.steps { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.step { display: grid; gap: 0.4rem 1.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .step { grid-template-columns: 4.5rem minmax(0, 20rem) minmax(0, 1fr); align-items: start; } }
.step-n { font-family: var(--ff-mono); font-size: 0.8125rem; color: var(--brass); padding-top: 0.28rem; }
.step h3 { font-size: 1.1875rem; }
.step p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }

/* กล่องเนื้อหาแบบเอกสาร */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.panel + .panel { margin-top: 1.1rem; }
.panel h3 { margin-bottom: 0.7rem; }

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.list-check li { position: relative; padding-left: 1.75rem; color: var(--ink-2); }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
}
.list-check strong { color: var(--ink); font-weight: 600; }

.list-num { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 0.85rem; }
.list-num li { counter-increment: n; position: relative; padding-left: 2.4rem; color: var(--ink-2); }
.list-num li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--brass);
}

/* ── 10. ตาราง ───────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
caption { caption-side: top; text-align: left; padding: 0.9rem 1.1rem; font-size: 0.8125rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
th {
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td { padding: 0.72rem 1.1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--ff-mono); }

/* ── 11. ตารางเปรียบเทียบยาง ─────────────────────────────────────────── */
.mat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
  padding: 0 0 1.1rem;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.filter-label {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 0.25rem;
}
.filter-btn {
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.mat-table { min-width: 1080px; font-size: 0.8125rem; }
.mat-table th, .mat-table td { padding: 0.5rem 0.6rem; text-align: center; white-space: nowrap; }
.mat-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--rule); }
.mat-table th.rowhead, .mat-table td.rowhead {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
  white-space: normal;
  min-width: 200px;
  border-right: 1px solid var(--rule);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 500;
}
.mat-table thead th.rowhead { z-index: 3; }
.mat-table tbody tr:hover td { background: var(--surface-2); }
.mat-table tbody tr:hover td.rowhead { background: var(--surface-2); }
.mat-unit { display: block; font-family: var(--ff-mono); font-size: 0.6875rem; color: var(--ink-3); font-weight: 400; }

.mat-code { font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); display: block; }
.mat-code-sub { display: block; font-family: var(--ff-body); font-size: 0.625rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 0.1rem; }
.mat-table th.starred .mat-code { color: var(--brass); }

.g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
}
.g-E { background: var(--grade-e-bg); color: var(--grade-e-fg); }
.g-G { background: var(--grade-g-bg); color: var(--grade-g-fg); }
.g-F { background: var(--grade-f-bg); color: var(--grade-f-fg); }
.g-P { background: var(--grade-p-bg); color: var(--grade-p-fg); }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.9rem; font-size: 0.8125rem; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.scroll-hint {
  display: none;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}
@media (max-width: 1100px) { .scroll-hint { display: block; } }

/* บัตรยางแต่ละชนิด */
.mat-cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.mat-card { background: var(--surface); padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mat-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.mat-card h3 { font-family: var(--ff-mono); font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; }
.mat-card .astm { font-family: var(--ff-mono); font-size: 0.6875rem; color: var(--ink-3); }
.mat-card .name { font-weight: 600; font-size: 0.9375rem; }
.mat-card .use { font-size: 0.8438rem; color: var(--ink-2); line-height: 1.6; }
.mat-card .badge {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  border-radius: 2px;
  padding: 0.12rem 0.4rem;
}

/* ── 12. รูปแบบสองคอลัมน์ภาพ+ข้อความ ─────────────────────────────────── */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.split-center { align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-media { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.split-media img { width: 100%; }
.split-wide { }
@media (min-width: 880px) { .split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

figure { margin: 0; }
figcaption { font-size: 0.8125rem; color: var(--ink-3); padding: 0.7rem 0.9rem; border-top: 1px solid var(--rule); background: var(--surface); }

/* ── 13. ฟอร์ม ───────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; gap: 1.05rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 0.35rem; align-content: start; }
.field > label { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.8125rem; color: var(--ink-3); }
.req { color: var(--brass); }

input[type="text"], input[type="email"], input[type="tel"], input[type="file"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.16s;
}
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
::placeholder { color: var(--ink-3); opacity: 1; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 1rem center, right 0.7rem center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.checkline { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); }
.checkline input { width: 1rem; height: 1rem; margin-top: 0.34rem; accent-color: var(--brass); flex: none; }

.form-note {
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  font-size: 0.8438rem;
  color: var(--ink-2);
}

/* ── 14. เบ็ดเตล็ด ───────────────────────────────────────────────────── */
.pagehead { padding-block: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 3vw, 2.2rem); border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
.crumbs span { opacity: 0.5; }

.cta-band { padding-block: clamp(2.8rem, 6vw, 4.2rem); }
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 880px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-inner p { color: var(--band-ink-2); max-width: 52ch; margin-top: 0.7rem; }

.doc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.doc { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: border-color 0.2s, translate 0.2s; }
.doc:hover { border-color: var(--ink-3); translate: 0 -3px; }
.doc img { width: 100%; border-bottom: 1px solid var(--rule); }
.doc-body { padding: 0.9rem 1rem 1.05rem; font-size: 0.8438rem; color: var(--ink-2); line-height: 1.55; }
.doc-body b { display: block; color: var(--ink); font-size: 0.875rem; margin-bottom: 0.2rem; }

.job { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); padding: clamp(1.3rem, 3vw, 1.9rem); }
.job + .job { margin-top: 1.1rem; }
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; margin-bottom: 0.9rem; }
.job-dept { font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }

.note-verify {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border-left: 2px solid var(--brass);
  background: var(--brass-soft);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.8438rem;
  color: var(--ink-2);
}

.map-embed { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(0.25); }

.oring { display: block; }

/* ── 15. ส่วนท้าย ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding-block: clamp(2.6rem, 5vw, 3.8rem) 1.6rem; margin-top: 0; }
.f-top { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .f-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.f-mark { width: 40px; margin-bottom: 0.9rem; }
.f-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.0625rem; margin: 0; }
.f-name-alt { font-size: 0.8125rem; color: var(--ink-3); margin: 0.1rem 0 1rem; }
.f-address { font-style: normal; font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 1.1rem; }
.f-contact { display: grid; gap: 0.4rem; margin: 0; font-size: 0.875rem; }
.f-contact > div { display: flex; gap: 0.6rem; }
.f-contact dt { font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); min-width: 5.4rem; padding-top: 0.28em; flex: none; }
.f-contact dd { margin: 0; color: var(--ink-2); }
.f-contact a { color: var(--ink-2); text-decoration: none; }
.f-contact a:hover { color: var(--brass); }

.f-nav { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.f-title { font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.75rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.42rem; }
.f-col a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.f-col a:hover { color: var(--brass); }

.f-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.f-bottom p { margin: 0; }
.f-bottom a { color: var(--ink-3); text-decoration: none; }
.f-bottom a:hover { color: var(--brass); }

/* ── 16. จอเล็ก ──────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 520px) {
  :root { --header-h: 60px; }
  .brand-th { display: none; }
  .hero-spec { grid-template-columns: 1fr 1fr; }
}

/* ── 16b. ป้ายกำกับภาษาไทย ───────────────────────────────────────────
   IBM Plex Mono ไม่มีอักษรไทย เมื่อใช้กับข้อความไทยจึงตกไปฟอนต์สำรอง
   พร้อมระยะห่างตัวอักษรที่กว้างเกินไป — หน้าไทยจึงใช้ฟอนต์เนื้อความแทน */
html[lang="th"] .eyebrow,
html[lang="th"] .filter-label,
html[lang="th"] .f-title,
html[lang="th"] .m-title,
html[lang="th"] .crumbs,
html[lang="th"] .job-dept,
html[lang="th"] .hero-spec u,
html[lang="th"] .certbar-inner,
html[lang="th"] .mat-unit,
html[lang="th"] .scroll-hint,
html[lang="th"] .brand-th,
html[lang="th"] caption,
html[lang="th"] .figure em {
  font-family: var(--ff-body);
  letter-spacing: 0.045em;
}
html[lang="th"] .eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: none; }
html[lang="th"] .certbar-inner { font-size: 0.75rem; text-transform: none; }
html[lang="th"] .certbar-inner b { font-family: var(--ff-mono); letter-spacing: 0.1em; }
html[lang="th"] .crumbs,
html[lang="th"] .m-title,
html[lang="th"] .f-title,
html[lang="th"] .filter-label,
html[lang="th"] .job-dept,
html[lang="th"] .hero-spec u,
html[lang="th"] .scroll-hint { font-size: 0.75rem; text-transform: none; }
html[lang="th"] .figure em { letter-spacing: 0; }
html[lang="th"] .g-word,
html[lang="th"] .mat-card .badge { font-family: var(--ff-body); letter-spacing: 0.02em; text-transform: none; font-size: 0.75rem; }

/* ── 17. เคลื่อนไหว ──────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.23s; }

.reveal { opacity: 0; translate: 0 18px; transition: opacity 0.65s ease, translate 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-on img { animation: none !important; transform: none; }
  .hero-dot.is-on i::after { animation: none !important; transform: scaleX(1); }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; translate: none; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .hero-oring { display: none !important; }
  body { background: #fff; color: #000; }
}
