:root {
  --blue: #283891;      /* น้ำเงินธง จากโลโก้ */
  --blue-deep: #1B2667;
  --red: #ED1C24;       /* แดงธง จากโลโก้ */
  --paper: #F7F5F0;     /* ขาวนวล พื้นพรีเมียม */
  --card: #FFFFFF;
  --ink: #15171C;
  --muted: #5B6070;
  --line: #E4E0D6;
  --gold: #A9822A;      /* ใช้กับงานชั้นธงเท่านั้น */
  --ok: #23843A;        /* ข้อความ "ตรวจสอบแล้ว" */
  --warn: #A85F00;      /* ข้อความ "ควรตรวจสอบ" */
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Sarabun', 'Leelawadee UI', 'Noto Sans Thai', sans-serif;
  font-size: 17px; line-height: 1.65; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.demo-note { background: #2b2b2b; color: #ddd; font-size: 12.5px; text-align: center; padding: 4px 16px; }

/* ---------- header ---------- */
.top { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 8px; height: 62px; }
.brand img { height: 38px; display: block; width: auto; }
.top-date { margin-left: auto; color: var(--muted); font-size: 14px; display: none; }
.icon-btn { background: none; border: 0; padding: 8px; color: var(--ink); border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: #f0eee8; }
#btnSearch { margin-left: auto; }
.search-bar { padding: 10px 0; border-top: 1px solid var(--line); }
.search-bar input { width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.groups { background: var(--blue); }
.scroller { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.groups a { color: #fff; white-space: nowrap; padding: 9px 12px 7px; font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; opacity: .92; }
.groups a:hover { opacity: 1; }
.groups a.on { border-bottom-color: var(--red); opacity: 1; font-weight: 600; }
@media (min-width: 900px) {
  .top-row { height: 76px; }
  .brand img { height: 50px; }
  .top-date { display: block; }
  #btnSearch { margin-left: 12px; }
}

/* เครื่องหมายจบข่าว = นกอินทรีของตรา */
.endmark { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; }
.endmark::before, .endmark::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.endmark img { width: 44px; height: auto; display: block; }
body.mourning .endmark img { filter: grayscale(1); }

/* ---------- breaking ---------- */
.breaking { background: var(--red); color: #fff; }
.breaking .wrap { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.breaking .tag { background: #fff; color: var(--red); font-weight: 700; font-size: 13px; padding: 1px 8px; border-radius: 4px; flex: none; }
.breaking a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breaking time { font-size: 13px; opacity: .85; flex: none; margin-left: auto; }

/* ---------- บรรทัดจุดขายใต้หัวเว็บ ---------- */
.trust { display: block; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.trust .wrap { display: flex; align-items: center; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.trust img { width: 20px; height: 20px; }
.trust img + img { margin-left: -8px; margin-right: 4px; }
.trust b { color: var(--ok); font-weight: 600; }
.trust-more { margin-left: auto; color: var(--blue); font-weight: 600; white-space: nowrap; }
body.mourning .trust img { filter: grayscale(1); }

/* ---------- common bits ---------- */
.sec-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 36px 0 14px; }
.sec-h .more { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--blue); }
.eagle { height: 1.05em; width: auto; flex: none; display: inline-block; vertical-align: -0.15em; }
body.mourning .eagle { filter: grayscale(1); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ph { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b0d1a)); }
/* เลิกลายน้ำโลโก้มุมล่างขวา (ทับภาพ) — เหลือเฉพาะภาพย่อที่ไม่มีภาพข่าว ซึ่งไม่มีอะไรให้ทับ */
.li .ph:not(.has-photo)::after { content: ""; position: absolute; inset: 0; margin: auto; width: 48%; aspect-ratio: 1;
  background: url(img/mark-256.png) center/contain no-repeat; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
/* ชื่อสำนักเต็มที่มุมขวาบนของภาพข่าว */
.ph .ph-desk { position: absolute; top: 10px; right: 10px; max-width: calc(100% - 20px); background: rgba(255,255,255,.94); color: var(--c);
  font-weight: 700; font-size: 13px; line-height: 1.3; padding: 4px 10px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .ph .ph-desk, .article .ph .ph-desk { top: 14px; right: 14px; font-size: 15px; padding: 5px 12px; }
@media (max-width: 599px) { .hero .ph .ph-desk, .article .ph .ph-desk { top: 10px; right: 10px; font-size: 13px; padding: 4px 10px; } }
/* ภาพปกอัตโนมัติ */
.cover .cv-desk { position: absolute; left: 14px; top: 12px; right: 14px; color: #fff; font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.cover .cv-logo { background: #fff; border-radius: 6px; padding: 4px 8px; display: inline-block; line-height: 0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cover .cv-logo img { height: 24px; width: auto; display: block; }
.hero .cover .cv-logo img, .article .cover .cv-logo img { height: 40px; }
.hero .cover .cv-logo, .article .cover .cv-logo { padding: 6px 12px; border-radius: 8px; }
@media (max-width: 699px) { .hero .cover .cv-logo img, .article .cover .cv-logo img { height: 28px; } }
.cover .cv-text { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.hero .cover .cv-text, .article .cover .cv-text { font-size: clamp(18px, 2.6vw, 26px); right: 20px; left: 20px; bottom: 20px; }
.hero .cover .cv-desk, .article .cover .cv-desk { left: 20px; top: 16px; font-size: 14px; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.desk-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c); font-size: 13px; }
.desk-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cat { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 4px; border: 1px solid #c9c5bb; color: var(--ink); line-height: 20px; }
.cat.analysis { border-color: var(--blue); color: var(--blue); }
.tier-flag { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 4px; background: var(--gold); color: #fff; line-height: 20px; }
.tier-series { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 4px; border: 1px dashed var(--blue); color: var(--blue); line-height: 20px; }
.cred { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.cred img { width: 18px; height: 18px; }
.cred.ok { color: var(--ok); }
.cred.warn { color: var(--warn); }

.story-title { font-weight: 700; line-height: 1.4; margin: 6px 0; }
a:hover .story-title { color: var(--blue); }

/* ---------- home ---------- */
.home-top { display: grid; gap: 24px; margin-top: 20px; }
.hero .ph { aspect-ratio: 16/9; }
/* มือถือ: ภาพข่าวพิเศษเตี้ยลง พาดหัวเล็กลง ให้เห็นข่าวล่าสุดเร็วขึ้น */
@media (max-width: 959px) { .hero .ph { aspect-ratio: 2/1; } }
@media (max-width: 599px) {
  .hero .story-title { font-size: 21px !important; }
  .hero .dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .hero-body { padding: 12px 14px 14px !important; }
  .hero .cover .cv-text { font-size: 16px; right: 14px; left: 14px; bottom: 12px; -webkit-line-clamp: 2; }
  .hero .cover .cv-desk { left: 14px; top: 10px; font-size: 12.5px; }
  .home-top { gap: 16px; margin-top: 14px; }
}
.hero-body { padding: 16px 18px 20px; }
.hero .story-title { font-size: 26px; line-height: 1.35; }
.hero .dek { color: var(--muted); margin: 6px 0 10px; }
.latest { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; }
.latest h3 { margin: 12px 0 4px; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.li { display: grid; grid-template-columns: 1fr 88px; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.li:first-of-type { border-top: 0; }
.li .story-title { font-size: 15.5px; margin: 3px 0; }
.li .ph { aspect-ratio: 1; border-radius: 6px; }
.li .ph .ph-label { display: none; }
.grid3 { display: grid; gap: 16px; }
.tile .tile-body { padding: 12px 14px 16px; }
.tile .story-title { font-size: 17px; }
.tile .dek { color: var(--muted); font-size: 14.5px; margin: 0; }
.desk-grid { display: grid; gap: 16px; }
.desk-block { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 14px 16px 6px; }
.desk-block-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.desk-block-h img { height: 46px; width: auto; max-width: 100%; display: block; }
.dbh-name .dbh-mobile { display: none; font-weight: 700; font-size: 17px; }
/* มือถือ: โลโก้ที่อัปโหลดเล็กเกินจะอ่านไม่ออก → ใช้ชื่อสำนักเป็นตัวอักษร */
@media (max-width: 699px) { .dbh-name > img, .dbh-name > .wm-en { display: none; } .dbh-name .dbh-mobile { display: inline; } }
/* หัวสำนักแบบตัวอักษร: เหยี่ยว + ชื่อไทยตัวใหญ่ + ชื่ออังกฤษตัวเล็กข้างใต้ */
.wm { display: inline-flex; align-items: center; gap: 10px; }
.wm .eagle { width: auto; height: 1.9em; flex: none; display: block; }
.wm-txt { display: flex; flex-direction: column; line-height: 1.15; }
.wm-txt b { font-weight: 700; }
.wm-en { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.desk-block-h .wm { font-size: 18px; }
.desk-block-h .wm .eagle { height: 34px; }
.desk-head .wm { font-size: clamp(24px, 5vw, 36px); }
.desk-head .wm .eagle { width: auto; max-width: none; height: 1.7em; }
.desk-head .wm-en { font-size: 14px; margin-top: 4px; }
.desk-head img + .wm-en { margin-top: 6px; }
.desk-block-h .dbh-name > img + .wm-en { font-size: 11px; margin-top: 3px; }
.group-desks img + .wm-en { font-size: 11px; margin-top: 4px; }
.group-desks .wm { font-size: 18px; }
.group-desks .wm .eagle { height: 32px; }
/* ชื่ออังกฤษใต้โลโก้หัวเว็บ */
.brand { display: flex; flex-direction: column; align-items: flex-start; }
.brand-en { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; margin-top: 2px; }
.li .meta { margin-top: 2px; }
.tile .meta { margin: 2px 0 6px; }
.desk-block-h .more { margin-left: auto; font-size: 14px; color: var(--blue); white-space: nowrap; }
.desk-block .li { grid-template-columns: 1fr 76px; }
@media (min-width: 700px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .desk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .hero .story-title { font-size: 32px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- desk / group page ---------- */
.desk-head { background: #fff; border-top: 6px solid var(--c); border-bottom: 1px solid var(--line); }
.desk-head .wrap { padding-top: 22px; padding-bottom: 22px; }
.desk-head img { width: 100%; max-width: 440px; height: auto; display: block; }
.desk-head p { color: var(--muted); margin: 12px 0 0; max-width: 640px; }
.desk-head .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.cat-tabs a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink, #222); font-size: 15px; font-weight: 500; }
.cat-tabs a:hover { border-color: var(--blue); }
.cat-tabs a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.group-desks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.group-desks a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: block; }
.group-desks img { height: 48px; width: auto; display: block; }
.page-title { font-size: 28px; margin: 0; }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 22px 16px 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.article h1 { font-size: 27px; line-height: 1.38; margin: 12px 0 10px; }
.article .dek { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.cred-wrap { position: relative; display: inline-block; }
.cred-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: 14.5px; }
.cred-btn img { width: 30px; height: 30px; }
.cred-btn.ok { color: var(--ok); } .cred-btn.warn { color: var(--warn); }
.cred-pop { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(20,20,40,.14); font-size: 14.5px; }
.cred-pop a { color: var(--blue); font-weight: 600; }
.byline { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.byline .who { font-weight: 600; }
.byline .when { font-size: 13.5px; color: var(--muted); }
/* โปรไฟล์ บก. (Lek 2026-12-01) */
.avatar.av-img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.byline .who a, .byline .updated a, .desk-eds a { color: var(--blue); }
.byline .motto { font-size: 14px; font-style: italic; color: var(--muted); }
.desk-eds { margin-left: 4px; }
.ed-head { display: flex; gap: 18px; align-items: center; padding: 24px 0 8px; }
.ed-av { width: 112px; height: 112px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.ed-letter { display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 44px; font-weight: 700; border: 0; }
.ed-head .page-title { margin: 0 0 4px; }
.ed-head p { margin: 4px 0; }
.ed-motto { font-style: italic; font-size: 17px; }
@media (max-width: 520px) { .ed-head { flex-direction: column; text-align: center; } }
.article .ph { border-radius: 10px; }
.caption { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.sumbox { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 18px; margin: 22px 0; }
.sumbox h2 { font-size: 16px; margin: 0 0 6px; color: var(--blue); }
.sumbox ul { margin: 0; padding-left: 20px; }
.sumbox li { margin: 4px 0; }
.sumbox sup a { color: var(--blue); font-weight: 600; }
/* ส่วนเสริมของเรื่อง (แผน v12): ป้ายผู้สนับสนุน กล่องข้อมูล ตาราง A กับ B ตัวอย่างค่างวด */
.sponsor-tag { margin: 2px 0 8px; color: var(--muted); font-size: 12px; letter-spacing: .2px; }
.sponsor-tag a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.ct-policy { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.ct-policy a { color: var(--blue); }
.fix-note { font-size: 14px; color: var(--muted); }
.xbox { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 22px 0; }
.xbox h2 { font-size: 16px; margin: 0 0 10px; color: var(--blue); }
.xbox dl { margin: 0; }
.xbox dl > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.xbox dl > div:first-child { border-top: 0; }
.xbox dt { color: var(--muted); font-size: 14px; }
.xbox dd { margin: 0; font-weight: 600; }
.xnote { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.xscroll { overflow-x: auto; }
.xcmp { width: 100%; border-collapse: collapse; min-width: 320px; }
.xcmp th, .xcmp td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.xcmp thead th { border-top: 0; color: var(--blue); font-size: 15px; width: 36%; }
.xcmp thead th:first-child { width: 28%; }
.xcmp tbody th { color: var(--muted); font-weight: 400; font-size: 14px; }
.loan-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loan-in label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); position: relative; }
.loan-in input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; width: 100%; box-sizing: border-box; color: var(--ink, #1D1F26); }
.loan-in em { font-style: normal; font-size: 12px; margin-top: 2px; }
.loan-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.loan-out span { display: block; font-size: 13px; color: var(--muted); }
.loan-out b { font-size: 20px; color: var(--blue); }
@media (max-width: 560px) { .loan-out { grid-template-columns: 1fr; } .loan-out b { font-size: 18px; } }
.body p { font-size: 18px; line-height: 1.85; margin: 0 0 18px; }
.part-h { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin: 10px 0 10px; }
.part-h.facts { background: var(--blue); color: #fff; }
.part-h.view { border: 1.5px solid var(--red); color: var(--red); }
.part-h.counter { background: #e9e6de; color: var(--ink); }
.foot-info { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; font-size: 14.5px; }
.foot-info h3 { font-size: 15px; margin: 14px 0 6px; }
.foot-info ol { margin: 0; padding-left: 22px; }
.foot-info a { color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: #ece9e1; border-radius: 999px; padding: 2px 10px; font-size: 13.5px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.share button, .share a { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 14.5px; }
.share .line { background: #06C755; border-color: #06C755; color: #fff; }
.pref { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 14.5px; }
.pref b { display: block; }
.pref button { margin-left: auto; flex: none; border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 600; }
@media (min-width: 900px) { .article h1 { font-size: 36px; } }

/* ---------- standards ---------- */
.std { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.std-icons { display: grid; gap: 14px; }
.std-icon { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.std-icon img { width: 72px; height: 72px; flex: none; }
.std table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
/* ---------- ติดต่อสำนักข่าว ---------- */
.ct-form { display: grid; gap: 14px; margin-top: 18px; }
.ct-kinds { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ct-kinds legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ct-kind { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.ct-kind:has(input:checked) { border-color: var(--blue); background: #f3f5fc; }
.ct-kind input { margin-top: 5px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.ct-kind b { display: block; }
.ct-kind small { color: var(--muted); font-size: 14px; }
.ct-f { display: grid; gap: 6px; }
.ct-f > span { font-weight: 600; }
.ct-f small { font-weight: 400; color: var(--muted); }
.ct-f input:not([type=file]), .ct-f select, .ct-f textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfcabd; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.ct-f textarea { resize: vertical; line-height: 1.6; }
.ct-f[hidden] { display: none; }
.ct-pdpa { font-size: 13px; color: var(--muted); margin: 0; }
.ct-consent { display: flex; gap: 10px; align-items: flex-start; background: #f3f5fc; border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.ct-consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.ct-consent small { color: var(--muted); }
.ct-consent[hidden] { display: none; }
.ct-svc-privacy { background: #f3f5fc; border-radius: 10px; padding: 12px 14px; }
.ct-svc-privacy p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.ct-f small { display: block; }
.ct-warn { background: #fff6e0; border-left: 4px solid #d99a00; padding: 10px 14px; border-radius: 6px; margin: 0; font-size: 14px; }
.ct-desks { font-size: 15px; }
.ct-ids { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ct-ids legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ct-ids label { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.ct-ids label:has(input:checked) { border-color: var(--blue); background: #f3f5fc; }
.ct-ids input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.ct-ids small { display: block; color: var(--muted); font-size: 14px; }
.ct-ids [hidden], .ct-warn[hidden] { display: none; }
.ct-anon-note { font-size: 13px; color: var(--muted); margin: 0; }
.ct-desks a { color: var(--blue); }
/* แผนภาพหน้าเกี่ยวกับเรา (ตามเอกสาร About Us v2 ของพี่เล็ก) */
.ab-map { --ab-navy: #22384e; --ab-light: #edf2f6; --ab-line: #8a9baa; margin: 28px 0; display: grid; gap: 0; text-align: center; color: var(--ab-navy); }
.ab-map b { display: block; }
.ab-map small { display: block; font-size: 15px; }
.ab-dark { background: var(--ab-navy); color: #fff; border-radius: 12px; padding: 14px 16px; }
.ab-dark small { opacity: .8; }
.ab-dark b { font-size: clamp(20px, 4vw, 28px); line-height: 1.35; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ab-box { background: var(--ab-light); border: 1.5px solid var(--ab-line); border-radius: 12px; padding: 14px 12px; }
.ab-box b { font-size: clamp(18px, 3.4vw, 24px); }
.ab-split, .ab-join { position: relative; height: 28px; }
.ab-split::before, .ab-join::before { content: ''; position: absolute; left: 25%; right: 25%; border: 2px solid var(--ab-line); }
.ab-split::before { top: 12px; height: 16px; border-bottom: 0; }
.ab-split::after { content: ''; position: absolute; left: 50%; top: 0; height: 12px; border-left: 2px solid var(--ab-line); }
.ab-join::before { top: 0; height: 14px; border-top: 0; }
.ab-join::after { content: ''; position: absolute; left: 50%; top: 14px; bottom: 0; border-left: 2px solid var(--ab-line); }
.ab-value { background: var(--ab-light); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.ab-value b { font-size: clamp(20px, 3.8vw, 26px); margin-bottom: 4px; }
.ab-value span { display: block; font-size: 17px; }
.ab-core { font-weight: 700; font-size: 20px; margin: 14px 0 0; }
@media (max-width: 520px) {
  .ab-two { grid-template-columns: 1fr; gap: 12px; }
  .ab-split::before, .ab-join::before { display: none; }
  .ab-split::after, .ab-join::after { top: 0; bottom: 0; height: auto; }
  .ab-split, .ab-join { height: 18px; }
}
/* สำนักข่าวรับฟังคุณ (Media Listening v2) */
.listen-home { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.listen-home h2, .listen-desk h2 { margin: 0 0 4px; font-size: 21px; }
.listen-home p, .listen-desk p { margin: 0 0 12px; color: var(--muted); }
.listen-desks { display: flex; flex-wrap: wrap; gap: 8px; }
.listen-desks a { border: 1.5px solid var(--c, var(--blue)); color: var(--c, var(--blue)); border-radius: 999px; padding: 6px 14px; font-weight: 600; text-decoration: none; }
.listen-desk { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--blue)); border-radius: 12px; padding: 18px 20px; margin: 28px 0; scroll-margin-top: 130px; }
.listen-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.listen-kinds a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; }
.listen-kinds a:hover { border-color: var(--c, var(--blue)); }
.listen-kinds b { display: block; color: var(--c, var(--blue)); }
.listen-kinds small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
p.listen-note { font-size: 13px; margin: 12px 0 0; }
.ct-msg { color: #b3261e; font-weight: 600; margin: 0; }
.ct-send { font: inherit; font-weight: 700; font-size: 17px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer; }
.ct-send:disabled { opacity: .6; cursor: default; }
.ct-done { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-top: 18px; }
.ct-done h2 { margin-top: 0; color: var(--ok, #1d7a46); }
.ct-done a, .std a:not(.btn-line) { color: var(--blue); }
.report-err { margin-top: 14px; font-size: 14px; }
.report-err a { color: var(--muted); text-decoration: underline; }
.topv-lead { color: var(--muted, #555); font-size: 15px; }
.topv { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.topv li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.topv li:nth-child(-n+3) { border-color: #d4a017; }
.topv-rank { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue, #1d3d8f); color: #fff; display: grid; place-items: center; font-weight: 700; }
.topv li div { flex: 1; min-width: 0; }
.topv-meta { display: block; font-size: 13px; opacity: .75; }
.topv-n { font-weight: 700; font-size: 18px; text-align: right; }
.topv-n small { display: block; font-weight: 400; font-size: 12px; opacity: .7; }
.topv-foot { font-size: 14px; }
.std td, .std th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
@media (min-width: 700px) { .std-icons { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--blue-deep); color: #e8eaf4; margin-top: 56px; padding-top: 34px; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
/* โลโก้เดียวของสำนักข่าว (แนวนอน มีเหยี่ยวด้านหน้า) บนแผ่นขาว เพราะตัวอักษรเป็นสีดำ */
.foot-brand img { width: auto; height: 38px; max-width: 100%; background: #fff; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
.foot-brand p { margin: 0; font-size: 15px; }
.foot h4 { margin: 0 0 8px; color: #fff; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.foot li { margin: 5px 0; }
.foot a:hover { text-decoration: underline; }
.btn-line { display: inline-block; background: #06C755; color: #fff; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 14px; padding-bottom: 80px; font-size: 13px; color: #b9bdd4; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; flex-direction: column; align-items: flex-start; } }

/* ---------- drawer, cookie, demo ---------- */
.drawer { position: fixed; inset: 0; background: rgba(10,12,30,.45); z-index: 50; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto; padding: 16px 18px 40px; }
.drawer-close { margin-left: auto; font-size: 18px; }
.drawer h4 { margin: 18px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.drawer a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 16px; }
.drawer a .desk-chip { font-size: 16px; color: var(--ink); }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns button { border: 1px solid var(--blue); background: #fff; color: var(--blue); border-radius: 8px; padding: 5px 14px; font-weight: 600; min-width: 128px; }
.demo-panel { position: fixed; left: 12px; bottom: 70px; z-index: 45; font-size: 14px; }
.demo-panel > button { background: #2b2b2b; color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.demo-body { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); width: 220px; }
.demo-panel { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.demo-body p { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.demo-body label { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #222; color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 60; font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- mourning mode ---------- */
body.mourning { --blue: #1d1d1f; --blue-deep: #0d0d0e; --red: #8E7A45; }
body.mourning [style*="--c"] { --c: #4a4a4a !important; }
body.mourning .top img, body.mourning .foot img, body.mourning .cred img, body.mourning .cred-btn img, body.mourning .desk-head img, body.mourning .group-desks img, body.mourning .desk-block-h img { filter: grayscale(1); }
body.mourning .top::before { content: ""; display: block; height: 4px; background: #000; }
body.mourning .tier-flag { background: #555; }

/* ---- เว็บจริง: ภาพถ่ายจริง คลิปฝัง ปุ่มสมัครสื่อฯ อาสา ---- */
.ph img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-photo::before { display: none; }
.clip-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.clip-links > span { font-weight: 600; color: var(--muted); margin-right: 4px; }
.pf { display: inline-block; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: #fff; }
.pf:hover { opacity: .9; text-decoration: none; }
.pf-yt { background: #c4302b; } .pf-fb { background: #1877f2; } .pf-tt { background: #111; }
/* แบนเนอร์: ภาพกว้างเต็มคอลัมน์ · แถบโลโก้ท้ายเว็บ (ไม่มีป้ายกำกับ ไม่เลื่อนเอง) */
.bn { margin: 24px 0; }
.bn img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.bn a:hover img { opacity: .94; }
.bn-logos { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; margin-top: 32px; }
.bn-logos .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 36px; }
.bn-logos img { display: block; height: 44px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(.2); }
.bn-logos a:hover img { filter: none; }
body.mourning .bn img, body.mourning .bn-logos img { filter: grayscale(1); }
.follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.body h2 { font-size: 20px; margin: 26px 0 8px; }
.body blockquote { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--blue); color: #333; font-style: italic; }
.updated { font-size: 13px; color: var(--muted); }
.unpub { max-width: 640px; margin: 60px auto; padding: 0 16px; }
.vol-promo { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-left: 5px solid #b8892b; border-radius: 12px; padding: 14px 18px; margin: 28px 0; }
.vol-promo img { width: 96px; height: auto; }
.vol-promo b { display: block; font-size: 17px; }
.vol-promo span { color: var(--muted); font-size: 14px; }
.vol-promo a.go { background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; white-space: nowrap; text-decoration: none; }
@media (max-width: 600px) { .vol-promo { grid-template-columns: 64px 1fr; } .vol-promo img { width: 64px; } .vol-promo a.go { grid-column: 1 / -1; text-align: center; } }
.top-vol { font-size: 14px; font-weight: 600; color: #8a6414; text-decoration: none; border: 1px solid #e6d3a6; background: #fbf5e6; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .top-vol { display: none; } }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.social-links a { font-size: 13px; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; opacity: .85; text-decoration: none; }

/* ---------- ตรวจบัตรสื่อฯ อาสา ---------- */
.v-wrap { max-width: 460px; padding-top: 28px; padding-bottom: 48px; }
.v-lead { color: var(--muted); }
.v-card { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--ok); border-radius: 18px; padding: 22px 20px 16px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.v-card.bad { border-top-color: var(--red); }
.v-card.muted { border-top-color: #9a9aa3; }
.v-status { display: inline-block; font-weight: 700; font-size: 1.25rem; padding: 4px 18px; border-radius: 999px; background: #e6f3ea; color: var(--ok); margin-bottom: 16px; }
.v-status.bad { background: #fde8e8; color: #b3121a; }
.v-status.muted { background: #eeeef1; color: #55555c; }
.v-photo { display: block; width: 200px; height: 250px; object-fit: cover; margin: 0 auto 14px; border-radius: 14px; border: 4px solid #b8922f; background: #e9edf5; }
.v-nophoto { background: #e9edf5; }
.v-name { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.v-level { color: var(--blue); font-weight: 600; margin-top: 2px; }
.v-code { font-weight: 600; letter-spacing: .12em; color: var(--muted); margin-top: 10px; }
.v-hint { margin: 12px 0 0; font-size: .95rem; padding: 6px 10px; border-radius: 8px; background: #eef3fb; color: var(--blue); }
.v-time { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.v-form { margin-top: 26px; }
.v-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.v-row { display: flex; gap: 8px; }
.v-row input, .v-report textarea, .v-report input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.v-row button, .v-report button { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; cursor: pointer; }
.v-report { margin-top: 18px; }
.v-report summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.v-report form { display: grid; gap: 8px; margin-top: 10px; }
.v-report textarea, .v-report input { width: 100%; box-sizing: border-box; }
.v-msg { margin: 0; font-size: .92rem; }
.v-msg.ok { color: var(--ok); } .v-msg.bad { color: #b3121a; }

/* รางวัล The Best (M8-14) */
.awd-list, .awd-win { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.awd-list a, .awd-win li > a, .awd-win li:not(:has(a)) { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.awd-list span, .awd-win span { color: var(--muted); font-size: 14px; }
.awd-win .awd-score { margin-left: auto; font-weight: 600; color: var(--ink); }
.awd-cat { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.awd-cat h2, .awd-h { font-size: 19px; margin: 0 0 6px; }
.awd-en { font-weight: 400; color: var(--muted); font-size: 15px; }
.awd-note { color: var(--muted); font-size: 14px; margin: 4px 0; }
.awd-crumb { font-size: 14px; margin: 0 0 4px; } .awd-crumb a { color: var(--muted); }
.awd-how { margin: 10px 0 16px; } .awd-how summary { cursor: pointer; font-weight: 600; }
.awd-tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.awd-tbl th, .awd-tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.awd-tbl td:nth-child(2) { white-space: nowrap; font-weight: 600; }
