/* =====================================================================
   มวลชน — หน้าบ้าน (ไม่มี framework / jQuery)
   โทนสี: เหลืองเข้ม + ดำ — เปลี่ยนทั้งเว็บได้ที่ตัวแปร :root ด้านล่าง
   ===================================================================== */
/* ฟอนต์: WOFF2 subset เฉพาะไทย+อังกฤษ+เครื่องหมาย (~16–21KB/ไฟล์ จาก TTF ~110–175KB) — สร้างใหม่ด้วย fontTools.subset
   ถ้าเพิ่มตัวอักษร/ภาษา ให้ subset ใหม่จากไฟล์ .ttf ต้นฉบับ (ดู CLAUDE.md) · .ttf เป็นสำรองสำหรับเบราว์เซอร์เก่ามาก */
@font-face { font-family: 'Kanit'; font-weight: 500; src: url('../fonts/Kanit-Medium.woff2') format('woff2'), url('../fonts/Kanit-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Kanit'; font-weight: 600; src: url('../fonts/Kanit-SemiBold.woff2') format('woff2'), url('../fonts/Kanit-SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Kanit'; font-weight: 800; src: url('../fonts/Kanit-ExtraBold.woff2') format('woff2'), url('../fonts/Kanit-ExtraBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plex Thai'; font-weight: 400; src: url('../fonts/IBMPlexSansThai-Regular.woff2') format('woff2'), url('../fonts/IBMPlexSansThai-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plex Thai'; font-weight: 600; src: url('../fonts/IBMPlexSansThai-SemiBold.woff2') format('woff2'), url('../fonts/IBMPlexSansThai-SemiBold.ttf') format('truetype'); font-display: swap; }

:root {
  --brand: #F5B700;       /* เหลืองเข้ม — พื้น/แถบ/เส้นเน้น */
  --brand-ink: #111111;   /* ตัวอักษรบนพื้น brand */
  --brand-text: #8A5A00;  /* สี brand สำหรับตัวอักษรบนพื้นขาว (คอนทราสต์ผ่าน AA) */
  --band: #111111;        /* แถบเข้ม: topbar / เสียงมวลชน / footer */
  --band-ink: #F5B700;
  --ink: #161616;
  --muted: #6B6B6B;
  --line: #E6E2DA;
  --paper: #FFFFFF;
  --bg: #F7F5F0;
  --head: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Plex Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.35; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- ชิ้นส่วนพื้นฐาน ----- */
.t { font-family: var(--head); font-weight: 600; line-height: 1.35; margin: 0; transition: color .15s; }
a:hover .t, a.t:hover { color: var(--brand-text); }
.meta { color: var(--muted); font-size: 13px; }
.cat { display: inline-block; font-family: var(--head); font-weight: 500; font-size: 13px; color: var(--brand-text); }
.thumb { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--line); border-radius: var(--radius); }
.btn { display: inline-block; font-family: var(--head); font-weight: 600; background: var(--brand); color: var(--brand-ink); padding: 8px 18px; border-radius: var(--radius); white-space: nowrap; border: 0; cursor: pointer; font-size: 15px; }
.btn:hover { filter: brightness(.95); }

/* ----- Header ----- */
.topbar { background: var(--band); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; gap: 12px; align-items: center; height: 36px; overflow: hidden; }
.badge-live { background: var(--brand); color: var(--brand-ink); font-family: var(--head); font-weight: 600; padding: 1px 10px; border-radius: 3px; white-space: nowrap; }
/* แถบข่าวล่าสุดวิ่ง: track = 2 ชุดเหมือนกัน เลื่อนไป -50% แล้ววนใหม่ = ต่อเนื่องไร้รอยต่อ */
.ticker { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker a { opacity: .9; }
.ticker a:hover, .ticker a:focus-visible { color: var(--band-ink); opacity: 1; }
.ticker a::after { content: '•'; margin: 0 14px; opacity: .45; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topbar .date { margin-left: auto; white-space: nowrap; opacity: .7; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { display: block; height: 36px; width: auto; }   /* โลโก้ SVG (สัดส่วน 5.95:1) — พื้นขาวใช้ logo.svg, พื้นเข้มใช้ logo-white.svg */
.logo span { font-size: 12px; color: var(--muted); line-height: 1.3; padding-left: 14px; border-left: 1px solid var(--line); }
.search-form { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 0 6px 0 14px; background: var(--paper); }
.search-form input { border: 0; outline: 0; font: inherit; font-size: 14px; padding: 7px 0; width: 200px; background: transparent; }
.search-form button { border: 0; background: transparent; cursor: pointer; padding: 6px; color: var(--muted); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 26px; cursor: pointer; padding: 4px 8px; }

/* เมนูหลัก: หมวดหลัก + dropdown หมวดย่อย */
.site-nav { background: var(--paper); border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 20; }
.site-nav .wrap { display: flex; gap: 2px; }
.nav-link { display: block; font-family: var(--head); font-weight: 500; padding: 12px 16px; white-space: nowrap; font-size: 16px; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-item .nav-link { padding-right: 4px; }
.sub-toggle { border: 0; background: transparent; cursor: pointer; padding: 0 12px 0 4px; font-size: 13px; color: var(--muted); font-family: var(--head); }
.site-nav .nav-link.on, .nav-item.on, .nav-item:hover, .nav-item:focus-within, .nav-item.open, .site-nav > .wrap > .nav-link:hover { background: var(--brand); color: var(--brand-ink); }
.nav-item:hover .sub-toggle, .nav-item.on .sub-toggle, .nav-item.open .sub-toggle, .nav-item:focus-within .sub-toggle { color: var(--brand-ink); }
.nav-item.voice > .nav-link { color: var(--brand-text); font-weight: 600; }
.nav-item.voice:hover > .nav-link, .nav-item.voice.on > .nav-link, .nav-item.voice.open > .nav-link, .nav-item.voice:focus-within > .nav-link { color: var(--brand-ink); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 8px; margin-top: 3px; }
.dropdown.cols2 { display: none; grid-template-columns: repeat(2, minmax(170px, 1fr)); min-width: 380px; column-gap: 4px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown { display: block; }
.nav-item:hover .dropdown.cols2, .nav-item:focus-within .dropdown.cols2, .nav-item.open .dropdown.cols2 { display: grid; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 4px; font-family: var(--head); font-weight: 500; font-size: 15px; white-space: nowrap; }
.dropdown a:hover, .dropdown a.on { background: var(--bg); color: var(--brand-text); }
.dropdown a.all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; color: var(--muted); font-size: 14px; }
/* hover bridge — เมาส์เลื่อนจากเมนูลง dropdown แล้วไม่หลุด (มีเส้นขอบ 3px คั่น) */
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }

/* เมนูมือถือเต็มจอ (เปิดจากปุ่ม ☰) — แถบหัวสีแบรนด์ + แถวละหมวด กด + กางหมวดย่อย */
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 100; background: #F4F4F2; overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
.drawer-bar { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 60px; background: var(--brand); color: var(--brand-ink); }
.drawer-bar button { border: 0; background: transparent; color: inherit; cursor: pointer; height: 60px; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.drawer-logo { justify-self: center; display: flex; }
.drawer-logo img { display: block; height: 26px; width: auto; }
.drawer-search { display: flex; gap: 8px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-search[hidden] { display: none; }
.drawer-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); outline-color: var(--brand); }
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu > li { border-bottom: 1px solid #DCDCD8; }
.drawer-link, .drawer-menu summary { display: flex; align-items: center; gap: 8px; padding: 17px 24px; font-family: var(--head); font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.drawer-menu summary::-webkit-details-marker { display: none; }
.drawer-menu summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 500; line-height: 1; }
.drawer-menu details[open] > summary { background: var(--paper); }
.drawer-menu details[open] > summary::after { content: '−'; }
.drawer-menu summary.voice { color: var(--brand-text); }
.drawer-menu .hot { font-size: 18px; }
.drawer-sub { background: var(--paper); padding: 0 0 8px; }
.drawer-sub a { display: block; padding: 11px 24px 11px 40px; font-size: 16px; border-top: 1px solid #EFEFEC; }
.drawer-sub a:first-child { font-weight: 600; color: var(--brand-text); }
.drawer-sub a.on { background: var(--bg); box-shadow: inset 4px 0 0 var(--brand); }
.drawer-link:active, .drawer-menu summary:active, .drawer-sub a:active { background: #EAEAE6; }

/* หน้ารวมข่าวจังหวัด */
.regions { display: grid; gap: 18px; }
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.province-grid a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.province-grid a:hover { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.province-grid small { color: var(--muted); font-size: 12px; }
.province-grid a:hover small { color: inherit; }

/* ----- โครงหน้า ----- */
main { min-height: 50vh; }
section.block { margin: 28px 0; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-head h2, .sec-head h1 { font-size: 22px; margin: 0; padding-left: 12px; border-left: 6px solid var(--brand); line-height: 1.25; }
.sec-head .more { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sec-head .more:hover { color: var(--brand-text); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 64px; }

/* ----- สไลด์ข่าวเด่น (ส่วนแรกหน้าแรก) ----- */
/* จอคอม: สไลด์ซ้อนกันใน cell เดียว (สูงคงที่ ไม่กระตุก) + รายการหัวข้อขวา มีแถบนับเวลาใต้ข่าวที่กำลังแสดง */
.featured { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.feat-stage { display: grid; }
.feat-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.feat-slide.on { opacity: 1; visibility: visible; }
.feat-slide .cat { margin-top: 12px; }
.feat-slide .t { font-size: 28px; margin: 6px 0; }
.feat-slide .excerpt { color: #444; margin: 0 0 6px; -webkit-line-clamp: 2; }
/* รายการขวา: 5 แถวสูงเท่ากัน ยืดเต็มความสูงสไลด์ซ้าย · รูปสูงพอๆ กับหัวข้อ 3 บรรทัด · ข้อความกึ่งกลางแนวตั้ง */
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 6px; align-self: stretch; }
.feat-list li { position: relative; display: flex; align-items: center; padding: 8px 10px; border-radius: 8px; transition: background .2s; }
.feat-list li.on { background: var(--paper); box-shadow: inset 4px 0 0 var(--brand); }
.feat-list li.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; background: var(--brand); transform-origin: left; animation: feat-progress 6s linear forwards; }
.featured.paused .feat-list li.on::after { animation-play-state: paused; }
.feat-list .row { width: 100%; grid-template-columns: 40% minmax(0, 1fr); align-items: center; gap: 14px; }
.feat-list .row .thumb { border-radius: 6px; }
.feat-list .cat { font-size: 12.5px; }
.feat-list .t { font-size: 15.5px; line-height: 1.4; margin-top: 2px; }
/* จอโน้ตบุ๊กเล็ก: คอลัมน์ขวาแคบ หัวข้อ 3 บรรทัดจะดันรายการยาวเกินรูปใหญ่ → เหลือ 2 บรรทัด */
@media (min-width: 961px) and (max-width: 1240px) {
  .feat-list { gap: 4px; }
  .feat-list li { padding: 6px 8px; }
  .feat-list .row .t { font-size: 15px; -webkit-line-clamp: 2; }
}
.feat-dots { display: none; }
.feat-slide { position: relative; }
.feat-count { display: none; }
@keyframes feat-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .feat-slide { transition: none; }
}
.row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; }
.row .t { font-size: 15.5px; }
/* หัวข้อในแถวข่าวไม่เกิน 3 บรรทัด — ความสูงข้อความไม่ทิ้งห่างรูป */
.row .t, .list .item .t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card .cat { margin-top: 8px; }
.card .t { font-size: 16px; margin: 2px 0 4px; }

.box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.rank li { counter-increment: n; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li::before { content: counter(n); font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--brand); line-height: 1; -webkit-text-stroke: 1px var(--brand-ink); }
.rank .t { font-size: 15px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .tags a { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 14px; }
.tag-cloud a:hover, .tags a:hover { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }

/* โฆษณา (showAds) — ให้กลางและไม่ล้นจอ */
.ads-box { text-align: center; overflow: hidden; }
.ads-box img { display: inline-block; }

/* ----- เสียงมวลชน: แถบเข้มเต็มความกว้าง ----- */
.voice-band { background: var(--band); color: #fff; padding: 28px 0 32px; margin: 32px 0; }
.voice-band .sec-head h2 { color: var(--band-ink); border-color: var(--band-ink); font-size: 26px; }
.voice-band .sec-head p { margin: 2px 0 0; opacity: .75; font-size: 14px; }
.voice-band .more { color: var(--band-ink); }
.voice-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.voice-tabs a { border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 4px 14px; font-size: 14px; font-family: var(--head); }
.voice-tabs a:hover { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.voice-band .cat { color: var(--band-ink); }
.voice-band .meta { color: rgba(255,255,255,.6); }
.voice-band a:hover .t { color: var(--band-ink); }
.voice-cta { margin-top: 20px; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 14px 18px; }
.voice-cta b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.voice-cta .btn { background: var(--band-ink); color: var(--band); margin-left: auto; }
.voice-empty { opacity: .7; padding: 12px 0; }

/* ----- ความคิดเห็น ----- */
.op { display: block; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 18px; }
.op .t { font-size: 18px; margin-top: 4px; }
.op .meta { margin-top: 8px; }

/* ----- หน้ารายการ (หมวด/แท็ก/ค้นหา) ----- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0 18px; }
.page-head h1 { font-size: 30px; margin: 4px 0; }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--brand-text); }
.crumb a:hover { text-decoration: underline; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.subnav a { border: 1px solid var(--line); border-radius: 20px; padding: 3px 14px; font-size: 14px; font-family: var(--head); background: var(--paper); }
.subnav a:hover, .subnav a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.list { display: grid; gap: 18px; }
.list .item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.list .item .t { font-size: 19px; margin: 2px 0 6px; }
.list .item .meta .cat { font-size: 13px; }
.list .item p { margin: 0 0 6px; color: #555; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* คำโปรย (intro หรือ meta description) */
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 40px 16px; text-align: center; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; padding: 0; list-style: none; }
.pager a, .pager span { display: inline-block; min-width: 40px; text-align: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-family: var(--head); }
.pager a:hover { border-color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.pager .off { color: #BBB; }

/* ----- หน้าข่าว ----- */
.article { padding-top: 18px; }
.article h1 { font-size: 34px; margin: 10px 0 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.byline b { color: var(--ink); font-weight: 600; }
.share { margin-left: auto; display: flex; gap: 6px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; border: 0; cursor: pointer; font-family: var(--head); }
.share .fb { background: #1877F2; } .share .line { background: #06C755; } .share .x { background: #000; } .share .copy { background: #777; }
.fontsize { display: inline-flex; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fontsize button { border: 0; background: var(--paper); padding: 4px 10px; cursor: pointer; font-family: var(--head); }
.fontsize button + button { border-left: 1px solid var(--line); }
.cover { margin: 0 0 20px; }
.cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 1200 / 630; object-fit: cover; background: var(--line); }
.lead { font-size: 20px; font-weight: 600; border-left: 4px solid var(--brand); padding-left: 14px; margin: 0 0 18px; }

.body { --fs: 18.5px; font-size: var(--fs); line-height: 1.85; overflow-wrap: anywhere; }
.body p { margin: 0 0 18px; }
.body h2, .body h3 { margin: 28px 0 12px; }
.body img { display: block; margin: 6px auto; border-radius: var(--radius); height: auto; }
.body figure { margin: 18px 0; }
.body figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 4px; }
.body blockquote { margin: 20px 0; padding: 10px 18px; border-left: 4px solid var(--brand); background: var(--paper); font-style: normal; }
.body a { color: var(--brand-text); text-decoration: underline; }
.body iframe, .body video, .body embed { max-width: 100%; }
.body iframe[src*="youtube"], .body iframe[src*="youtu.be"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .9em; }
.body td, .body th { border: 1px solid var(--line); padding: 6px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; align-items: center; }
.tags b { font-family: var(--head); margin-right: 4px; }
.related-list { margin: 0; padding-left: 20px; }
.related-list li { margin: 6px 0; }
.related-list a:hover { color: var(--brand-text); }

.preview-bar { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); background: #FFF4CC; border: 1px dashed var(--brand-text); font-size: 14px; }
.preview-bar b { font-family: var(--head); margin-right: 6px; }

/* ----- หน้าเพจ (นโยบาย/ติดต่อ) ----- */
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; line-height: 1.8; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { margin: 22px 0 10px; }
.prose a { color: var(--brand-text); text-decoration: underline; }

/* ----- คอลัมนิสต์ ----- */
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--line); border: 3px solid var(--brand); flex: none; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head h1 { margin-top: 0; }
.columnist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.columnist-card { display: grid; justify-items: center; text-align: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 14px; }
.columnist-card:hover { border-color: var(--brand); }
.columnist-card .t { font-size: 17px; }
.columnist-card p { margin: 0; font-size: 14px; color: #555; }
.author-box { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 16px; margin: 24px 0; }
.author-box .avatar { width: 64px; height: 64px; border-width: 2px; }
.author-box b { font-family: var(--head); font-size: 17px; }
.author-box p { margin: 2px 0 0; font-size: 14px; color: #555; }

/* ----- ฟอร์มส่งเรื่อง (ร้องทุกข์/ส่งข่าว) ----- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 22px 24px; }
.form-tip { margin: 0 0 18px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); font-size: 15px; color: #444; }
.alert-ok { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius); background: #E8F6EC; border: 1px solid #9BD3AB; color: #14532D; font-weight: 600; }
.alert-err { margin: 0 0 18px; padding: 10px 16px; border-radius: var(--radius); background: #FDECEC; border: 1px solid #F3B4B4; color: #8A1C1C; font-size: 14px; }
.alert-err ul { margin: 0; padding-left: 18px; }
.sub-form { display: grid; gap: 16px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f { display: grid; gap: 6px; }
.f > span { font-family: var(--head); font-weight: 500; font-size: 15px; }
.f b { color: #C0392B; font-weight: 600; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #D6D2C8; border-radius: var(--radius); background: #fff; color: var(--ink); }
.f textarea { resize: vertical; min-height: 140px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.f [aria-invalid="true"] { border-color: #C0392B; background: #FFF8F8; }
.f-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.f-note a, .link { color: var(--brand-text); text-decoration: underline; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.upload { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 18px 12px; border: 2px dashed #D6D2C8; border-radius: 8px; cursor: pointer; position: relative; color: #555; }
.upload:hover { border-color: var(--brand); background: #FFFBEB; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload small { color: var(--muted); font-size: 12.5px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; }
.file-list span { background: #FFF4CC; border-radius: 14px; padding: 2px 10px; font-size: 13px; }
.captcha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha img { display: block; border-radius: var(--radius); height: 44px; width: auto; }
.captcha button { width: 44px; height: 44px; border: 1px solid #D6D2C8; border-radius: var(--radius); background: #fff; font-size: 20px; cursor: pointer; }
.captcha input { width: 130px; }
.btn-submit { justify-self: start; font-size: 17px; padding: 12px 36px; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.steps a { color: var(--brand-text); text-decoration: underline; }

/* ----- แบนเนอร์คุกกี้ (PDPA) ----- */
.mcc { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 12px 16px;
  padding: 12px 16px; background: var(--band); color: #fff; border-radius: 10px; border-top: 3px solid var(--brand); box-shadow: 0 6px 28px rgba(0,0,0,.28); font-size: 14px; line-height: 1.55; }
.mcc[hidden], .mcc-modal[hidden] { display: none; }
.mcc p { margin: 0; flex: 1; }
.mcc a { color: var(--band-ink); text-decoration: underline; }
.mcc-btns { display: flex; gap: 8px; flex: none; }
.mcc-btn { border: 0; border-radius: var(--radius); padding: 8px 18px; font-family: var(--head); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; background: var(--brand); color: var(--brand-ink); }
.mcc-ghost { background: rgba(255,255,255,.12); color: #fff; }
.mcc-modal { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mcc-box { background: var(--paper); color: var(--ink); border-radius: 10px; border-top: 4px solid var(--brand); max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px 22px; font-size: 14.5px; line-height: 1.6; }
.mcc-box h2 { font-size: 20px; margin: 0 0 6px; }
.mcc-box p { margin: 0 0 6px; color: #555; }
.mcc-row { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 12px 0; cursor: pointer; }
.mcc-row span { flex: 1; }
.mcc-row strong { display: block; font-family: var(--head); font-weight: 600; font-size: 15.5px; }
.mcc-row small { color: var(--muted); font-size: 13px; }
.mcc-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: #8A5A00; }
.mcc-box .mcc-ghost { background: var(--bg); color: var(--ink); }
.mcc-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }

/* ----- Footer ----- */
.site-footer { background: var(--band); color: rgba(255,255,255,.75); padding: 36px 0 20px; margin-top: 48px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a:hover { color: var(--band-ink); }
.site-footer .logo img { height: 30px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-size: 13px; opacity: .7; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  /* สไลด์ข่าวเด่น: ปัดซ้ายขวา (scroll-snap ไม่ต้องใช้ JS) + จุดบอกตำแหน่ง แทนรายการหัวข้อ */
  .featured { display: block; }
  .feat-stage { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .feat-stage::-webkit-scrollbar { display: none; }
  .feat-slide { flex: 0 0 72%; scroll-snap-align: start; opacity: 1; visibility: visible; transition: none; }
  .feat-slide .t { font-size: 22px; }
  .feat-list { display: none; }
  .feat-dots { display: flex; justify-content: center; margin-top: 6px; }
  .feat-dots button { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .feat-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #CFCAC0; transition: width .2s, background .2s; }
  .feat-dots button.on::before { width: 22px; background: var(--brand); }
  .sidebar { position: static; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-header .search-form { display: none; }
  .menu-toggle { display: block; }
  /* มือถือ/แท็บเล็ต: แถบหมวดหลักเลื่อนซ้ายขวา — หมวดย่อยอยู่ในเมนู ☰ */
  .site-nav .wrap { overflow-x: auto; scrollbar-width: none; }
  .site-nav .wrap::-webkit-scrollbar { display: none; }
  .sub-toggle, .site-nav .dropdown { display: none !important; }
  .nav-item .nav-link { padding-right: 16px; }
  .nav-link { font-size: 15px; padding: 11px 14px; }
}
@media (max-width: 600px) {
  .site-header .wrap { height: 62px; }
  /* แถบหมวดหลักให้พอดีจอโทรศัพท์ — "หน้าแรก" ซ่อน (กดโลโก้แทน) */
  .site-nav .wrap { padding: 0 6px; justify-content: space-between; }
  .site-nav .wrap > .nav-link:first-child, .site-nav .nav-lotto { display: none; }   /* หน้าแรก/ตรวจหวย อยู่ในเมนู ☰ */
  .nav-link, .nav-item .nav-link { padding: 11px 10px; }
  .logo img { height: 28px; }
  .logo span { display: none; }
  .topbar .date { display: none; }
  /* มือถือ: สไลด์เต็มขอบจอ ทีละข่าว — รูปชนขอบ ข้อความเว้นขอบ 16px · ป้าย 1/5 บอกว่าปัดต่อได้ */
  section.featured { margin-top: 0; }
  .feat-stage { gap: 0; padding: 0; scroll-padding: 0; }
  .feat-slide { flex-basis: 100%; }
  .feat-slide .thumb { border-radius: 0; }
  .feat-slide > :not(.thumb):not(.feat-count) { margin-left: 16px; margin-right: 16px; }
  .feat-slide .meta { display: block; }
  .feat-slide .t { font-size: 20px; }
  .feat-slide .excerpt { display: none; }
  .feat-count { display: block; position: absolute; top: 10px; right: 10px; background: rgba(17,17,17,.72); color: #fff; font-family: var(--head); font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 12px; }
  /* --- สัดส่วนรูปบนมือถือ: รูปในแถวกว้าง 45% (คงสัดส่วน 1200:630) สูงพอๆ กับหัวข้อ 3 บรรทัด --- */
  .row { grid-template-columns: 45% minmax(0, 1fr); gap: 12px; }
  .row .t { font-size: 15px; }
  /* บล็อกการ์ด: ใบแรกรูปใหญ่ ใบที่เหลือเป็นแถว (ไม่ให้หน้ายาวเพราะรูปใหญ่ทุกใบ) */
  .grid4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid4 > .card:not(:first-child) { display: grid; grid-template-columns: 45% minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; }
  .grid4 > .card:not(:first-child) .thumb { grid-row: 1 / span 2; }
  .grid4 > .card:not(:first-child) .cat { margin-top: 0; }
  .grid4 > .card:not(:first-child) .t { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .grid4 > .card:not(:first-child) .meta { display: none; }
  .grid4 > .card:first-child .t { font-size: 18px; }
  .list { gap: 12px; }
  .list .item { grid-template-columns: 45% minmax(0, 1fr); padding: 10px; gap: 12px; align-items: start; }
  .list .item .t { font-size: 15px; margin: 0 0 4px; }
  .list .item p { display: none; }
  .list .item .meta { font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .list .item .meta .cat { font-size: 12px; }
  /* ข่าวแรกของหน้า: รูปใหญ่เต็มกว้าง */
  .list .item:first-child { grid-template-columns: minmax(0, 1fr); }
  .list .item:first-child .t { font-size: 18px; -webkit-line-clamp: 4; margin-top: 2px; }
  /* หัวหน้าหมวด: คำอธิบาย 3 บรรทัด + ปุ่มหมวดย่อยเลื่อนซ้ายขวาแถวเดียว */
  .page-head { padding: 16px 0 14px; }
  .page-head p { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { white-space: nowrap; flex: none; }
  .article h1 { font-size: 26px; }
  .body { --fs: 17.5px; }
  .page-head h1 { font-size: 24px; }
  .voice-cta { flex-direction: column; align-items: flex-start; }
  .voice-cta .btn { margin-left: 0; }
  .share { margin-left: 0; }
  .prose { padding: 18px 16px; }
  .profile-head { gap: 12px; }
  .profile-head .avatar { width: 64px; height: 64px; }
  .form-card { padding: 16px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-submit { justify-self: stretch; }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .mcc { flex-wrap: wrap; left: 8px; right: 8px; bottom: 8px; padding: 12px; font-size: 13px; }
  .mcc-btns { width: 100%; }
  .mcc-btns .mcc-btn { flex: 1; }
}

/* ===== ตรวจหวย (/lottery) — ตัวเลขใช้ Kanit + tabular-nums ให้หลักตรงกัน ===== */
.lt-check { background: var(--band); color: #fff; border-radius: 10px; padding: 20px; border-top: 5px solid var(--brand); }
.lt-check-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.lt-check h2 { margin: 0; font-size: 22px; color: var(--band-ink); }
.lt-draw { margin-left: auto; }
.lt-draw select { font: inherit; font-size: 15px; padding: 7px 10px; border-radius: var(--radius); border: 0; background: #fff; color: var(--ink); max-width: 100%; }
.lt-tickets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lt-ticket { display: flex; gap: 8px; }
.lt-ticket input { flex: 1; min-width: 0; width: 100%; font-family: var(--head); font-weight: 600; font-size: 26px; letter-spacing: .35em; text-align: center; padding: 8px 10px; border-radius: var(--radius); border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.lt-ticket input::placeholder { font-size: 16px; letter-spacing: 0; font-weight: 400; color: #999; }
.lt-ticket input:focus { outline: 0; border-color: var(--brand); }
.lt-ticket input[aria-invalid="true"] { border-color: #E5484D; }
.lt-del { border: 0; background: #2A2A2A; color: #fff; border-radius: var(--radius); width: 44px; cursor: pointer; font-size: 16px; }
.lt-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.lt-add { border: 1px dashed #777; background: transparent; color: #ddd; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.lt-add:hover { border-color: var(--brand); color: var(--brand); }
.lt-add[hidden] { display: none; }
.lt-go { font-size: 18px; padding: 10px 34px; margin-left: auto; }
.lt-result { display: grid; gap: 8px; margin-top: 14px; }
.lt-result[hidden] { display: none; }
.lt-result .r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-radius: var(--radius); padding: 10px 14px; background: #2A2A2A; }
.lt-result .r b { font-family: var(--head); font-size: 22px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lt-result .win { background: var(--brand); color: var(--brand-ink); }
.lt-result .win span { font-weight: 600; }
.lt-result .win em { font-style: normal; font-family: var(--head); margin-left: auto; }
.lt-result .lose span { color: #bbb; }
.lt-result .bad span { color: #FF9B9B; }
.lt-pending { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; background: #FFF6D6; border: 1px solid #F1D98A; border-radius: var(--radius); font-size: 15px; }
.lt-pending .dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: lt-blink 1.2s infinite; flex-shrink: 0; }
@keyframes lt-blink { 50% { opacity: .2; } }
.lt-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lt-main > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lt-main .lbl { font-family: var(--head); font-weight: 600; font-size: 16px; }
.lt-main .amt { font-size: 13px; color: var(--muted); }
.lt-main .num, .lt-grid .num { font-family: var(--head); font-variant-numeric: tabular-nums; border-radius: 6px; transition: background .2s; }
.lt-main .nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.lt-main .lt-sub .num { font-size: 30px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; padding: 0 4px; }
.lt-main .num.wait { font-size: 20px; color: var(--muted); font-weight: 600; }
.lt-main .lt-first { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); }
.lt-first .num { font-size: clamp(44px, 9vw, 68px); font-weight: 800; letter-spacing: .1em; line-height: 1.15; padding: 0 8px; }
.lt-first .amt { color: var(--brand-ink); opacity: .75; }
.lt-main .lt-back2 { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lt-prize { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; }
.lt-prize-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.lt-prize-head h2 { margin: 0; font-size: 19px; padding-left: 10px; border-left: 5px solid var(--brand); line-height: 1.25; }
.lt-prize-head span { font-size: 14px; color: var(--muted); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.lt-grid.two { grid-template-columns: repeat(2, minmax(0, 160px)); }
.lt-grid .num { text-align: center; font-size: 19px; font-weight: 600; letter-spacing: .06em; padding: 5px 0; background: var(--bg); }
.lt-main .num.hit, .lt-grid .num.hit { background: #18A058; color: #fff; box-shadow: 0 0 0 3px rgba(24, 160, 88, .25); }
.lt-wait { margin: 0; color: var(--muted); }
.lt-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-family: var(--head); }
.lt-pn a { color: var(--brand-text); }
.lt-pn a:hover { text-decoration: underline; }
.lt-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.lt-links { display: grid; gap: 8px; }
.lt-links .sec-head { margin-bottom: 6px; }
.lt-links a { color: var(--brand-text); }
.lt-links a:hover { text-decoration: underline; }
/* ตรวจหวยย้อนหลัง */
.lt-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lt-card { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.lt-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.lt-card .d { font-family: var(--head); font-weight: 600; font-size: 17px; }
.lt-card small { display: block; font-size: 12px; color: var(--muted); font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.lt-card .first { font-family: var(--head); font-weight: 800; font-size: 34px; letter-spacing: .08em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lt-card .row3 { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--head); font-size: 17px; font-variant-numeric: tabular-nums; }
.lt-card .row3 b { background: var(--brand); padding: 0 6px; border-radius: 4px; }
.lt-card .go { font-size: 14px; color: var(--brand-text); }
/* สถิติหวย */
.lt-stats { display: grid; gap: 20px; align-content: start; }
.lt-stats-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lt-hint { margin: -6px 0 10px; font-size: 13px; color: var(--muted); }
.lt-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lt-bars li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px; align-items: center; gap: 10px; }
.lt-bars.wide li { grid-template-columns: 96px minmax(0, 1fr) 72px; }
.lt-bars b { font-family: var(--head); font-size: 19px; font-variant-numeric: tabular-nums; }
.lt-bars.wide b { font-size: 15px; font-weight: 600; }
.lt-bars .bar { background: var(--bg); border-radius: 4px; height: 14px; overflow: hidden; }
.lt-bars .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.lt-bars em { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.lt-repeat { display: grid; gap: 8px; }
.lt-repeat > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lt-repeat > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lt-repeat b { font-family: var(--head); font-size: 22px; background: var(--brand); text-align: center; border-radius: 4px; }
.lt-repeat span { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lt-repeat a { font-family: var(--head); font-variant-numeric: tabular-nums; }
.lt-repeat a:hover { color: var(--brand-text); }
.lt-repeat small { color: var(--muted); font-family: var(--body); font-size: 12px; }
@media (max-width: 760px) {
  .lt-check { padding: 16px; border-radius: 0; margin: 0 -16px; }
  .lt-draw { margin-left: 0; width: 100%; }
  .lt-draw select { width: 100%; }
  .lt-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-main .lt-back2 { grid-column: 1 / -1; }
  .lt-main .lt-sub .num { font-size: 26px; }
  .lt-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .lt-grid .num { font-size: 17px; }
  .lt-archive, .lt-stats-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lt-pending .dot { animation: none; } }
