/**
 * ขนาดตัวอักษร 3 ระดับของทั้งเว็บ (ผู้ใช้สั่ง 2026-11-03 "ปรับแบบนี้ทุกหน้าทั้งหมด")
 *
 *   16px  — ข้อความเนื้อหาปกติทุกอย่างที่ไม่ใช่หัวข้อ (ย่อหน้า คำอธิบาย รายการ ชื่อการ์ด วันที่ ปุ่ม ช่องกรอก/ค้นหา
 *           ตัวเลือก dropdown เมนูย่อย ลิงก์/ข้อความท้ายเว็บ แถบบนสุด)
 *   14px  — breadcrumb และข้อความในชิป/แท็ก/ป้าย
 *   18px  — เมนูหัว (เมนูหลักด้านบน ทุกขนาดจอ)
 *
 * ไม่แตะ: หัวข้อ (h1–h6 และ .pg-head__title ฯลฯ) · ป้ายนำหัวข้อตัวพิมพ์ใหญ่ (.pg-head__label ฯลฯ) · ไอคอน · ตัวเลขตกแต่งขนาดใหญ่
 *
 * ไฟล์นี้โหลดท้ายสุดทุกหน้า และใช้ selector "html:root …" ให้ชนะกฎเดิมของแต่ละไฟล์ (น้ำหนักสูงสุดของกฎเดิมคือ 2 class)
 * โดยไม่ใช้ !important — จะเปลี่ยนขนาดให้แก้ที่ตัวแปร 3 ตัวด้านล่างจุดเดียว
 * หน่วย rem เพื่อให้ระบบขยายตัวอักษร html[data-cds-font] ยังทำงาน (1rem = 16px ที่ค่าปกติ)
 *
 * @package Cyber_Deep_Space
 */

:root {
	--cds-fs-body: 1rem;      /* 16px */
	--cds-fs-small: 0.875rem; /* 14px */
	--cds-fs-nav: 1.125rem;   /* 18px */
}

/* ==========================================================================
   18px — เมนูหัว
   ========================================================================== */

html:root .main-navigation .menu-link,
html:root .main-navigation .menu-parent {
	font-size: var(--cds-fs-nav);
}

/* ==========================================================================
   14px — breadcrumb และข้อความในชิป/แท็ก/ป้าย
   ========================================================================== */

html:root .pg-crumbs,
html:root .kb-crumbs,
html:root .pg-crumbs a,
html:root .kb-crumbs a,
html:root .pg-crumbs [aria-current="page"],
html:root .kb-crumbs [aria-current="page"],
html:root .pg-crumbs > [aria-hidden="true"],
html:root .kb-crumbs > [aria-hidden="true"],
html:root .kbd__chip,
html:root .kb-tag,
html:root .ar-card__badge,
html:root .ar-card__pdf,
html:root .kb-card__pdf {
	font-size: var(--cds-fs-small);
}

/* ==========================================================================
   16px — ข้อความเนื้อหาปกติที่ไม่ใช่หัวข้อ
   ========================================================================== */

/* แถบบนสุด · ท้ายเว็บ · เมนูย่อย */
html:root .site-topbar__org,
html:root .footer-org__name,
html:root .footer-org__contact,
html:root .footer-copyright,
html:root .footer-col__title,
html:root .footer-col ul a,
html:root .footer-legal a,
html:root .footer-social a,
html:root .mega__link {
	font-size: var(--cds-fs-body);
}

/* หน้าแรก */
html:root .hx-band__sub,
html:root .hx-stat__label,
html:root .sx-search__btn,
html:root .sx-search input.sx-search__field,
html:root .hx .section__more {
	font-size: var(--cds-fs-body);
}

/* บริการ · ข่าว · ดาวน์โหลด · รายงานประจำปี */
html:root .services-card__title,
html:root .services-card__desc,
html:root .news-card__title,
html:root .news-card__date,
html:root .dl-count,
html:root .dl-files__name,
html:root .dl-row__meta,
html:root .ar-card__title,
html:root .ar-count {
	font-size: var(--cds-fs-body);
}

/* แนะนำ STKC · ติดต่อเรา */
html:root .about-card__desc,
html:root .about-card__list,
html:root .about-card__link,
html:root .about-next__text,
html:root .about-tl__when,
html:root .ct-card__text,
html:root .ct-card__org,
html:root .ct-card__link,
html:root .ct-card__value,
html:root .ct-social__name,
html:root .ct-social__handle,
html:root .ct-survey__text {
	font-size: var(--cds-fs-body);
}

/* หมวดองค์ความรู้ · ตัวกรอง · การ์ด */
html:root .kb-card__title,
html:root .kb-card__date,
html:root .kb-row__title,
html:root .kb-row__meta,
html:root .kb--day .kb-row__num,
html:root .kb-field__label,
html:root .kb-sel__btn,
html:root .kb-sel__value,
html:root .kb-sel__option,
html:root .kb-select,
html:root .kb-search input[type="search"],
html:root .kb-pager__btn,
html:root .kb-tags__hint {
	font-size: var(--cds-fs-body);
}

/* หน้ารายละเอียดรายการ (?item=) */
html:root .kbd__prose,
html:root .kbd__date,
html:root .kbd__btn,
html:root .kbd__ref {
	font-size: var(--cds-fs-body);
}

/* เข้าสู่ระบบ */
html:root .login-card__subtitle,
html:root .login-card__error,
html:root .login-card__success,
html:root .login-divider,
html:root .login-field__label,
html:root .login-field__input,
html:root .login-forgot,
html:root .login-meta,
html:root .login-remember {
	font-size: var(--cds-fs-body);
}

/* ปุ่ม · ฟอร์ม · คำอธิบายภาพ ทั่วไป */
html:root .btn,
html:root .btn--sm,
html:root label,
html:root figcaption,
html:root select,
html:root textarea,
html:root input[type="date"],
html:root input[type="email"],
html:root input[type="number"],
html:root input[type="password"],
html:root input[type="search"],
html:root input[type="tel"],
html:root input[type="text"],
html:root input[type="url"] {
	font-size: var(--cds-fs-body);
}
