/* ============================================================================
 * Anunaki Custom Tweaks (Phase AA-3 FINAL — 2026-04-26 + Phase BK 2026-04-28)
 * --------------------------------------------------------------------------
 * 🌟 PERMANENT FIX — โครงสร้างถาวร, ไม่ต้องแก้ซ้ำ
 *
 * ส่วน HTML (ถาวรใน theme):
 *   • header.php มี `[gtranslate]` shortcode ใน .header-actions__lang
 *   • theme.js มี mobile submenu tap toggle (`.is-expanded` class)
 *   • GTranslate plugin floating disabled (option: floating_language_selector="")
 *
 * ส่วน CSS file นี้:
 *   1. Hide ดูสินค้า + hamburger (cleanup)
 *   2. GTranslate dropdown styling (inline ใน .header-actions)
 *   3. Mobile layout = CSS Grid (Logo+Actions row 1 / Menu row 2)
 *   4. Submenu hover (desktop) + tap (mobile via .is-expanded) [z-index 9999 — Phase BK fix]
 *   5. Hero sacred geometry 3D rotation (Phase AB)
 *   6. Mobile touch-target a11y (Phase BC, 2026-04-28) — WCAG 2.5.5 compliance
 *   8. CLS optimization (Phase BG, 2026-04-28) — only <img> aspect-ratio (minimal)
 *   9. Knowledge article utility classes (Phase BZ, 2026-04-29) — KSES-safe styling
 *  10. Portrait/photo decoration classes (Phase CA, 2026-04-30) — inventor photos
 *
 * วิธีแก้:
 *   wp-admin → Appearance → Theme File Editor → assets/css/anunaki-tweaks.css
 *   หลังแก้: cache flush + bump ANUNAKI_VERSION
 * ============================================================================ */


/* ============================================================================
 * 1. CLEANUP — ซ่อน element ที่ไม่ใช้
 * ============================================================================ */

/* ปุ่ม "ดูสินค้า" — hidden เพื่อให้ dropdown มีพื้นที่ */
.site-header .header-cta {
	display: none !important;
}

/* Hamburger menu — hidden ทุก viewport (เปลี่ยนเป็น inline menu) */
.site-header .nav-toggle {
	display: none !important;
}


/* ============================================================================
 * 2. GTranslate Dropdown (inline ใน .header-actions__lang)
 * ============================================================================ */

.site-header .header-actions__lang {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 4px !important;
}

.site-header .header-actions__lang .gtranslate_wrapper,
.site-header .header-actions__lang .gt_switcher_wrapper {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	width: auto !important;
	z-index: 10 !important;
}

.site-header .header-actions__lang .gt_switcher {
	width: 110px !important;
	max-width: 110px !important;
	min-width: 0 !important;
	display: block !important;
	border-radius: 5px !important;
	border: 1px solid rgba(201, 168, 76, 0.35) !important;
	background: rgba(20, 20, 20, 0.6) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
	overflow: hidden !important;
	transition: border-color 0.2s ease, background 0.2s ease !important;
}

.site-header .header-actions__lang .gt_switcher:hover {
	border-color: rgba(201, 168, 76, 0.7) !important;
	background: rgba(20, 20, 20, 0.95) !important;
}

.site-header .header-actions__lang .gt_selected {
	width: 100% !important;
	height: 28px !important;
}

.site-header .header-actions__lang .gt_selected a {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	padding: 0 20px 0 8px !important;
	font-size: 11px !important;
	height: 28px !important;
	line-height: 28px !important;
	white-space: nowrap !important;
	letter-spacing: 0.3px !important;
	color: #e8e0d0 !important;
	font-family: "Cinzel", sans-serif !important;
	text-transform: uppercase !important;
	background: transparent !important;
	width: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.site-header .header-actions__lang .gt_selected a:after {
	right: 7px !important;
	top: 12px !important;
	border-width: 4px 4px 0 4px !important;
	border-color: #c9a84c transparent transparent transparent !important;
}

.site-header .header-actions__lang .gt_switcher img {
	width: 16px !important;
	height: 11px !important;
	margin: 0 !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	border-radius: 2px !important;
}

.site-header .header-actions__lang .gt_options {
	background: #141414 !important;
	border: 1px solid rgba(201, 168, 76, 0.3) !important;
	border-top: 0 !important;
	border-radius: 0 0 5px 5px !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
	width: 110px !important;
	max-width: 110px !important;
}

.site-header .header-actions__lang .gt_options a {
	padding: 6px 8px !important;
	font-size: 10.5px !important;
	line-height: 16px !important;
	color: #cfc5ae !important;
	border-bottom: 1px solid rgba(201, 168, 76, 0.08) !important;
	letter-spacing: 0.3px !important;
	text-transform: uppercase !important;
	font-family: "Cinzel", sans-serif !important;
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.site-header .header-actions__lang .gt_options a:hover {
	background: #1f1a10 !important;
	color: #c9a84c !important;
}

.site-header .header-actions__lang .gt_options img {
	width: 16px !important;
	height: 11px !important;
	margin: 0 !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	border-radius: 2px !important;
}

/* Defense-in-depth — ซ่อน floating widget เก่าถ้ายังโผล่ */
body > .gtranslate_wrapper,
body > .gt_switcher_wrapper {
	display: none !important;
}


/* ============================================================================
 * 3. Header Layout — Desktop: ทุกอย่าง row เดียว / Mobile: 2 rows
 * ============================================================================ */

.site-header .main-nav {
	display: block !important;
	flex: 1 1 auto !important;
	height: auto !important;
	max-height: none !important;
	position: static !important;
	background: transparent !important;
	width: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}

html body .site-header .main-nav > ul,
html body .site-header #primary-nav > div > ul,
html body .site-header #primary-nav > ul,
html body .site-header .main-nav > div > ul,
html body .site-header nav#primary-nav ul.menu {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0 18px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: auto !important;
	overflow-y: visible !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
}

html body .site-header .main-nav > ul::-webkit-scrollbar,
html body .site-header #primary-nav ul.menu::-webkit-scrollbar {
	display: none !important;
}

html body .site-header .main-nav > ul > li,
html body .site-header #primary-nav ul.menu > li {
	flex: 0 0 auto !important;
	white-space: nowrap !important;
	display: block !important;
	list-style: none !important;
}

html body .site-header .main-nav ul.sub-menu,
html body .site-header .main-nav .mega-panel,
html body .site-header .main-nav li ul,
html body .site-header #primary-nav li ul {
	display: none !important;
}

@media (hover: hover) and (min-width: 821px) {
	html body .site-header .main-nav > ul > li:hover > ul.sub-menu,
	html body .site-header .main-nav > ul > li:hover > .mega-panel {
		display: block !important;
		position: absolute !important;
		top: 100% !important;
		background: #141414 !important;
		border: 1px solid rgba(201, 168, 76, 0.18) !important;
		padding: 8px 0 !important;
		min-width: 220px !important;
		z-index: 9999 !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
	}
	html body .site-header .main-nav > ul > li:hover > ul.sub-menu li,
	html body .site-header .main-nav > ul > li:hover > .mega-panel li {
		display: block !important;
		white-space: nowrap !important;
	}
	html body .site-header .main-nav > ul > li:hover > ul.sub-menu li a,
	html body .site-header .main-nav > ul > li:hover > .mega-panel li a {
		padding: 8px 16px !important;
		display: block !important;
		color: #cfc5ae !important;
	}
	html body .site-header .main-nav > ul > li:hover > ul.sub-menu li a:hover,
	html body .site-header .main-nav > ul > li:hover > .mega-panel li a:hover {
		background: #1f1a10 !important;
		color: #c9a84c !important;
	}
	html body .site-header .main-nav > ul > li.menu-item-has-children:hover {
		z-index: 9999 !important;
	}
}

html body .site-header .main-nav .menu-item.is-expanded > ul.sub-menu,
html body .site-header .main-nav .menu-item.is-expanded > .mega-panel {
	display: block !important;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	background: #141414 !important;
	border: 1px solid rgba(201, 168, 76, 0.18) !important;
	padding: 8px 0 !important;
	min-width: 220px !important;
	max-width: 90vw !important;
	z-index: 9999 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
	border-radius: 0 0 6px 6px !important;
}

html body .site-header .main-nav .menu-item.is-expanded > ul.sub-menu li,
html body .site-header .main-nav .menu-item.is-expanded > .mega-panel li {
	display: block !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body .site-header .main-nav .menu-item.is-expanded > ul.sub-menu a,
html body .site-header .main-nav .menu-item.is-expanded > .mega-panel a {
	padding: 8px 16px !important;
	display: block !important;
	color: #cfc5ae !important;
	font-size: 12px !important;
}

html body .site-header .main-nav .menu-item-has-children {
	position: relative !important;
}

html body .site-header .main-nav .menu-item.is-expanded {
	z-index: 9999 !important;
}


/* ============================================================================
 * 4. MOBILE LAYOUT — CSS Grid (≤820px)
 * ============================================================================ */
@media (max-width: 820px) {
	html body .site-header .site-header__inner {
		display: grid !important;
		grid-template-columns: 1fr auto !important;
		grid-template-areas:
			"logo actions"
			"nav  nav" !important;
		gap: 8px 12px !important;
		align-items: center !important;
	}
	html body .site-header .site-logo {
		grid-area: logo !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}
	html body .site-header .header-actions {
		grid-area: actions !important;
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		justify-self: end !important;
	}
	html body .site-header .main-nav {
		grid-area: nav !important;
		width: 100% !important;
		margin: 0 !important;
		border-top: 1px solid rgba(201, 168, 76, 0.12) !important;
		padding-top: 6px !important;
	}
	html body .site-header .main-nav > ul,
	html body .site-header #primary-nav > div > ul,
	html body .site-header #primary-nav > ul,
	html body .site-header .main-nav > div > ul,
	html body .site-header nav#primary-nav ul.menu {
		gap: 0 14px !important;
		justify-content: flex-start !important;
		padding: 0 16px !important;
		scroll-padding-inline: 16px !important;
	}
	html body .site-header .main-nav > ul > li > a,
	html body .site-header #primary-nav ul.menu > li > a {
		font-size: 11.5px !important;
		letter-spacing: 0.3px !important;
		padding: 8px 4px !important;
	}
	html body .site-header .site-logo,
	html body .site-header .site-logo * {
		font-size: 14px !important;
	}
	html body .site-header .header-actions svg.header-actions__icon {
		width: 22px !important;
		height: 22px !important;
	}
	.site-header .header-actions__lang .gt_switcher,
	.site-header .header-actions__lang .gt_options {
		width: 92px !important;
		max-width: 92px !important;
	}
	.site-header .header-actions__lang .gt_selected a {
		font-size: 10px !important;
		padding: 0 16px 0 6px !important;
		gap: 4px !important;
	}
	.site-header .header-actions__lang .gt_switcher img {
		width: 14px !important;
		height: 10px !important;
	}
}

@media (max-width: 480px) {
	html body .site-header .main-nav > ul,
	html body .site-header #primary-nav > div > ul,
	html body .site-header #primary-nav > ul,
	html body .site-header .main-nav > div > ul,
	html body .site-header nav#primary-nav ul.menu {
		gap: 0 12px !important;
		padding: 0 12px !important;
	}
	html body .site-header .main-nav > ul > li > a,
	html body .site-header #primary-nav ul.menu > li > a {
		font-size: 11px !important;
	}
	html body .site-header .site-logo,
	html body .site-header .site-logo * {
		font-size: 13px !important;
	}
	html body .site-header .header-actions {
		gap: 4px !important;
	}
}


/* ============================================================================
 * 5. Sticky header — กันเลื่อนตามมือถือ
 * ============================================================================ */
@media (max-width: 820px) {
	body.has-sticky-header.is-stuck .site-header,
	body.is-stuck .site-header {
		padding-top: 4px !important;
		padding-bottom: 4px !important;
	}
}


/* ============================================================================
 * 6. HERO Sacred Geometry 3D Rotation Animation (Phase AB — 2026-04-26)
 * ============================================================================ */
.hero__visual {
	perspective: 1200px !important;
	perspective-origin: center center !important;
}
.hero__sacred {
	transform-style: preserve-3d !important;
	transform-origin: center center !important;
	will-change: transform !important;
}
.hero__sacred .hero__sacred-outer,
.hero__sacred .hero__sacred-flower,
.hero__sacred .hero__sacred-metatron,
.hero__sacred .hero__sacred-yantra,
.hero__sacred .hero__sacred-particles {
	transform-box: fill-box !important;
	transform-origin: center center !important;
	will-change: transform, opacity !important;
}
.hero__sacred .hero__sacred-outer    { animation: anu-rotate-cw 120s linear infinite; }
.hero__sacred .hero__sacred-flower   { animation: anu-flip-y 90s ease-in-out infinite; }
.hero__sacred .hero__sacred-metatron { animation: anu-rotate-ccw 80s linear infinite; }
.hero__sacred .hero__sacred-yantra   { animation: anu-rotate-pulse 60s ease-in-out infinite; }
.hero__sacred .hero__sacred-particles { animation: anu-rotate-cw 30s linear infinite; }
.hero__sacred                        { animation: anu-3d-wobble 180s ease-in-out infinite; }

@keyframes anu-rotate-cw   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes anu-rotate-ccw  { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes anu-flip-y      { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes anu-rotate-pulse{ 0%,100% { transform: rotate(0deg); opacity: 0.7; } 50% { transform: rotate(180deg); opacity: 1; } }
@keyframes anu-3d-wobble   { 0%,100% { transform: rotate3d(1, 1, 0, 0deg); } 25% { transform: rotate3d(1, 0.5, 0, 6deg); } 50% { transform: rotate3d(0, 1, 0, 4deg); } 75% { transform: rotate3d(0.5, 1, 0, -6deg); } }

@media (prefers-reduced-motion: reduce) {
	.hero__sacred,
	.hero__sacred .hero__sacred-outer,
	.hero__sacred .hero__sacred-flower,
	.hero__sacred .hero__sacred-metatron,
	.hero__sacred .hero__sacred-yantra,
	.hero__sacred .hero__sacred-particles {
		animation: none !important;
	}
}

@media (max-width: 820px) {
	.hero__visual { perspective: 800px !important; }
	.hero__sacred .hero__sacred-flower { animation-duration: 120s; }
	.hero__sacred { animation: none; }
}


/* ============================================================================
 * 7. MOBILE TOUCH-TARGET A11Y (Phase BC — 2026-04-28) — WCAG 2.5.5
 * ============================================================================ */
@media (max-width: 820px) {
	html body .shop-filter__list a,
	html body .shop-filter__list label,
	html body .anu-cat-card__chip,
	html body .anu-pagination a,
	html body .anu-pagination .page-numbers,
	html body nav.woocommerce-pagination a,
	html body nav.woocommerce-pagination span.page-numbers,
	html body .product-card .btn--sm,
	html body .filter-chip,
	html body .product-card__footer .btn,
	html body .anu-pill,
	html body .breadcrumb a {
		min-height: 44px !important;
		min-width: 44px !important;
		padding: 12px 16px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		box-sizing: border-box !important;
	}
	html body .shop-filter__list label,
	html body .shop-filter li label {
		gap: 8px !important;
		cursor: pointer !important;
	}
	html body .site-header .header-actions > a {
		min-height: 44px !important;
		min-width: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
}


/* ============================================================================
 * 8. CLS OPTIMIZATION (Phase BG — 2026-04-28, REVISED minimal)
 * ============================================================================ */
ul.products li.product img.attachment-woocommerce_thumbnail,
ul.products li.product img.wp-post-image,
.anu-article-hero img,
.article-card__thumb img {
	display: block;
	background: rgba(20, 20, 20, 0.4);
	max-width: 100%;
	height: auto;
}


/* ============================================================================
 * 9. KNOWLEDGE ARTICLE UTILITY CLASSES (Phase BZ — 2026-04-29) — KSES-safe
 * ============================================================================ */

.anu-knowledge {
	max-width: 860px;
	margin: 60px auto;
	padding: 0 28px;
	font-family: 'Sarabun', sans-serif;
	color: #e8e0d0;
	line-height: 1.9;
	background: transparent;
}

.page-template-page-article-php .site-main .anu-knowledge,
.page-template-page-article-php .site-main--article .anu-knowledge,
body .anu-knowledge { color: #e8e0d0; }

.page-template-page-article-php .site-main,
.page-template-page-article-php .site-main--article,
.page-template-page-article-php article.entry,
.page-template-page-article-php .article__body,
.page-template-page-article-php .article__content {
	background: transparent !important;
	color: #e8e0d0;
}

.page-template-page-article-php .article__toc {
	background: rgba(20, 20, 20, 0.6) !important;
	border: 1px solid rgba(201, 168, 76, 0.15) !important;
	color: #c8bfaf !important;
}
.page-template-page-article-php .article__toc a { color: #c8bfaf !important; }
.page-template-page-article-php .article__toc a:hover { color: #c9a84c !important; }

.anu-k-hero { text-align: center; padding: 60px 0 50px; border-bottom: 1px solid rgba(201, 168, 76, 0.2); margin-bottom: 60px; }
.anu-k-hero__eyebrow { font-size: 0.75rem; letter-spacing: 4px; color: #c9a84c; text-transform: uppercase; margin-bottom: 16px; }
.anu-k-hero__title { font-family: 'Cinzel', serif; font-size: 2.8rem; color: #c9a84c; letter-spacing: 3px; margin-bottom: 20px; line-height: 1.2; }
.anu-k-hero__divider { width: 60px; height: 2px; background: linear-gradient(to right, #c9a84c, transparent); margin: 0 auto 28px; }
.anu-k-hero__lede { font-size: 1.15rem; color: #a09070; max-width: 640px; margin: 0 auto 14px; }
.anu-k-hero__sub { font-size: 0.95rem; color: #a09070; max-width: 640px; margin: 0 auto; }

.anu-k-section { margin-bottom: 60px; }
.anu-k-section-title { font-family: 'Cinzel', serif; color: #c9a84c; font-size: 1.6rem; letter-spacing: 2px; border-bottom: 1px solid rgba(201, 168, 76, 0.2); padding-bottom: 12px; margin-bottom: 28px; }
.anu-k-h3 { font-family: 'Cinzel', serif; color: #e8e0d0; font-size: 1.2rem; margin: 24px 0 14px; letter-spacing: 1px; }
.anu-k-p { color: #c8bfaf; margin-bottom: 18px; }
.anu-k-p strong, .anu-k-p .gold { color: #c9a84c; }

.anu-k-callout { background: rgba(201, 168, 76, 0.07); border-left: 3px solid #c9a84c; padding: 18px 22px; margin: 24px 0; color: #e8e0d0; font-size: 0.95rem; border-radius: 0 4px 4px 0; }
.anu-k-callout strong { color: #c9a84c; }

.anu-k-grid { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.anu-k-card { background: rgba(201, 168, 76, 0.06); border: 1px solid rgba(201, 168, 76, 0.22); padding: 24px 28px; border-radius: 6px; }
.anu-k-card__label { font-size: 0.75rem; letter-spacing: 3px; color: #c9a84c; text-transform: uppercase; margin-bottom: 8px; }
.anu-k-card__title { font-family: 'Cinzel', serif; color: #c9a84c; font-size: 1.15rem; margin-bottom: 12px; letter-spacing: 1px; }
.anu-k-card__body { color: #c8bfaf; line-height: 1.85; }
.anu-k-card__body strong { color: #e8e0d0; }
.anu-k-card__body em { color: #c9a84c; }
.anu-k-card__hint { color: #c8bfaf; line-height: 1.85; margin-top: 12px; font-size: 0.95rem; }
.anu-k-card__hint strong { color: #c9a84c; }

.anu-k-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.anu-k-table { width: 100%; border-collapse: collapse; color: #e8e0d0; font-size: 0.95rem; background: rgba(201, 168, 76, 0.04); border: 1px solid rgba(201, 168, 76, 0.18); }
.anu-k-table thead tr { border-bottom: 2px solid rgba(201, 168, 76, 0.3); background: rgba(201, 168, 76, 0.08); }
.anu-k-table th { text-align: left; padding: 14px 12px; color: #c9a84c; font-family: 'Cinzel', serif; letter-spacing: 1px; font-weight: 700; }
.anu-k-table tbody tr { border-bottom: 1px solid rgba(201, 168, 76, 0.12); }
.anu-k-table tbody tr:last-child { border-bottom: 0; }
.anu-k-table td { padding: 14px 12px; color: #c8bfaf; }
.anu-k-table td strong { color: #e8e0d0; }
.anu-k-table td.gold,
.anu-k-table td.anu-k-table__freq,
.anu-k-table .anu-k-table__freq { color: #c9a84c !important; font-weight: 600; }

.anu-k-table-note { color: #a09070; font-size: 0.9rem; font-style: italic; text-align: center; margin-top: 6px; }

.anu-k-caption { color: #a09070; font-size: 0.92rem; font-style: italic; margin-top: 14px; margin-bottom: 0; text-align: center; }
.anu-k-caption em { color: #c9a84c; }

.anu-k-bullet { list-style: none; padding: 0 0 0 22px; margin: 0 0 18px; }
.anu-k-bullet li { position: relative; color: #c8bfaf; margin-bottom: 10px; padding-left: 4px; }
.anu-k-bullet li::before { content: "▸"; position: absolute; left: -18px; top: 0; color: #c9a84c; font-size: 0.9rem; }

.anu-k-numlist { list-style: none; counter-reset: anuk-count; padding: 0; margin: 0; }
.anu-k-numlist li { position: relative; padding-left: 56px; margin-bottom: 22px; color: #c8bfaf; min-height: 36px; }
.anu-k-numlist li::before { counter-increment: anuk-count; content: counter(anuk-count); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #c9a84c, #b87333); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; font-family: 'Cinzel', serif; }
.anu-k-numlist li strong { color: #e8e0d0; }

.anu-k-faq-item { margin-bottom: 28px; padding: 18px 22px; background: rgba(201, 168, 76, 0.04); border-left: 3px solid rgba(201, 168, 76, 0.3); border-radius: 0 4px 4px 0; }
.anu-k-faq-item h3, .anu-k-faq-item__q { color: #c9a84c; font-family: 'Cinzel', serif; font-size: 1.05rem; margin: 0 0 10px; letter-spacing: 1px; }
.anu-k-faq-item p, .anu-k-faq-item__a { color: #c8bfaf; margin: 0; }
.anu-k-faq-item a, .anu-k-faq-item__a a { color: #c9a84c; text-decoration: underline; }
.anu-k-faq-item a:hover { color: #e8d27a; }

.anu-k-honest { background: rgba(201, 168, 76, 0.05); border: 1px solid rgba(201, 168, 76, 0.2); padding: 32px 32px 24px; border-radius: 8px; margin-bottom: 60px; }
.anu-k-honest .anu-k-section-title { border-bottom-color: rgba(201, 168, 76, 0.25); }
.anu-k-honest__list { list-style: none; padding: 0; margin: 0 0 26px; }
.anu-k-honest__list li { padding: 8px 0; color: #c8bfaf; border-bottom: 1px solid rgba(201, 168, 76, 0.08); }
.anu-k-honest__list li:last-child { border-bottom: 0; }
.anu-k-honest__caveat { color: #c8bfaf; font-size: 0.95rem; font-style: italic; margin-top: 16px; border-top: 1px solid rgba(201, 168, 76, 0.15); padding-top: 18px; }
.anu-k-honest__caveat em { color: #c9a84c; }

.anu-k-related { display: flex; flex-direction: column; gap: 14px; }
.anu-k-related a, .anu-k-related__item { display: block; padding: 18px 22px; background: rgba(201, 168, 76, 0.05); border-left: 3px solid #c9a84c; color: #e8e0d0 !important; text-decoration: none !important; border-radius: 0 4px 4px 0; transition: background 0.2s ease, transform 0.2s ease; }
.anu-k-related a:hover, .anu-k-related__item:hover { background: rgba(201, 168, 76, 0.1); transform: translateX(2px); }
.anu-k-related a strong, .anu-k-related__item strong { color: #c9a84c; font-family: 'Cinzel', serif; display: block; margin-bottom: 4px; }
.anu-k-related a span, .anu-k-related__item span { color: #a09070; font-size: 0.9rem; }

.anu-k-disclaimer { text-align: center; padding: 48px 28px; border-top: 1px solid rgba(201, 168, 76, 0.2); }
.anu-k-disclaimer p { color: #a09070; font-size: 0.9rem; line-height: 1.85; max-width: 580px; margin: 0 auto; font-style: italic; }
.anu-k-disclaimer p strong { color: #c9a84c; font-style: normal; }
.anu-k-disclaimer__signature, .anu-k-disclaimer__sig { color: #a09070 !important; font-size: 0.85rem !important; margin-top: 18px !important; letter-spacing: 2px !important; font-style: normal !important; }

@media (max-width: 820px) {
	.anu-knowledge { padding: 0 18px; margin: 30px auto; }
	.anu-k-hero__title { font-size: 1.8rem; letter-spacing: 2px; }
	.anu-k-section-title { font-size: 1.3rem; }
	.anu-k-table th, .anu-k-table td { padding: 10px 8px; font-size: 0.85rem; }
	.anu-k-card { padding: 18px 22px; }
	.anu-k-honest { padding: 22px 22px 18px; }
}


/* ============================================================================
 * 10. INVENTOR PORTRAITS (Phase CA — 2026-04-30) — KSES-safe photo decoration
 *
 * For decorating biography articles with portrait photos of inventors,
 * researchers, and historical figures. All <img> styling lives here so
 * post_content only needs class="..." references (no inline style attrs).
 *
 * Classes:
 *   .anu-k-hero-photo — circular hero portrait (Slim's main photo)
 *   .anu-k-portraits — grid wrapper for 2-4 portrait cards
 *   .anu-k-portrait — single portrait card with image + name + role + bio
 *   .anu-k-portrait__avatar — circular img frame (140×140)
 *   .anu-k-portrait__avatar--text — text-only avatar (no img, e.g. initials)
 *   .anu-k-portrait__name — gold Cinzel name
 *   .anu-k-portrait__role — uppercase tan role/title
 *   .anu-k-portrait__bio — short biography
 *   .anu-k-book-row — book card with cover + info
 *   .anu-k-book-row__img — book cover frame
 * ============================================================================ */

/* Hero portrait — circular avatar centered above hero title */
.anu-k-hero-photo {
	width: 160px;
	height: 160px;
	margin: 0 auto 24px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(201, 168, 76, 0.5);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
	            0 0 0 8px rgba(201, 168, 76, 0.05),
	            0 0 60px rgba(201, 168, 76, 0.15);
	position: relative;
	background: #141414;
}

.anu-k-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	filter: grayscale(15%) sepia(10%);
}

@media (max-width: 820px) {
	.anu-k-hero-photo { width: 130px; height: 130px; margin-bottom: 20px; }
}

/* Portraits grid (Founders Trio) */
.anu-k-portraits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin: 28px 0;
}

.anu-k-portrait {
	background: rgba(20, 20, 20, 0.6);
	border: 1px solid rgba(201, 168, 76, 0.2);
	padding: 28px 22px 24px;
	border-radius: 10px;
	text-align: center;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.anu-k-portrait:hover {
	border-color: rgba(201, 168, 76, 0.5);
	transform: translateY(-2px);
}

.anu-k-portrait__avatar {
	width: 130px;
	height: 130px;
	margin: 0 auto 18px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(201, 168, 76, 0.6);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
	            0 0 0 4px rgba(201, 168, 76, 0.04);
	background: #141414;
	position: relative;
}

.anu-k-portrait__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	filter: grayscale(15%);
}

/* Text-only avatar (no img, e.g. initials "HB" for Hans Becker) */
.anu-k-portrait__avatar--text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Cinzel', serif;
	font-size: 2.4rem;
	font-weight: 700;
	color: #c9a84c;
	letter-spacing: 2px;
	background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(40, 32, 14, 0.6));
}

.anu-k-portrait__name {
	font-family: 'Cinzel', serif;
	color: #c9a84c;
	font-size: 1.05rem;
	letter-spacing: 1.5px;
	margin: 0 0 6px;
	font-weight: 600;
}

.anu-k-portrait__role {
	font-size: 0.75rem;
	letter-spacing: 2px;
	color: #a09070;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.anu-k-portrait__bio {
	color: #c8bfaf;
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
	text-align: left;
}

.anu-k-portrait__bio strong { color: #e8e0d0; }
.anu-k-portrait__bio em { color: #c9a84c; }

@media (max-width: 820px) {
	.anu-k-portraits { grid-template-columns: 1fr; gap: 18px; }
	.anu-k-portrait { padding: 22px 18px 20px; }
	.anu-k-portrait__avatar { width: 110px; height: 110px; }
}

/* Book row — book cover + info side-by-side */
.anu-k-book-row {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	background: rgba(20, 20, 20, 0.6);
	border: 1px solid rgba(201, 168, 76, 0.2);
	padding: 32px 28px;
	border-radius: 12px;
	margin: 24px 0;
	flex-wrap: wrap;
}

.anu-k-book-row__img {
	flex: 0 0 160px;
	max-width: 160px;
}

.anu-k-book-row__img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.7),
	            0 0 0 1px rgba(201, 168, 76, 0.15);
}

.anu-k-book-row__body {
	flex: 1;
	min-width: 240px;
}

.anu-k-book-row__title {
	font-family: 'Cinzel', serif;
	color: #c9a84c;
	font-size: 1.25rem;
	margin: 0 0 8px;
	letter-spacing: 1.5px;
}

.anu-k-book-row__sub {
	font-family: 'Cormorant Garamond', serif;
	color: #a09070;
	font-style: italic;
	font-size: 1rem;
	margin: 0 0 16px;
}

.anu-k-book-row__desc {
	color: #c8bfaf;
	font-size: 0.95rem;
	line-height: 1.8;
	margin: 0 0 16px;
}

.anu-k-book-row__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.anu-k-book-row__tag {
	font-family: 'Cinzel', serif;
	font-size: 0.7rem;
	letter-spacing: 2px;
	color: #c9a84c;
	background: rgba(201, 168, 76, 0.08);
	border: 1px solid rgba(201, 168, 76, 0.25);
	padding: 4px 10px;
	border-radius: 3px;
	text-transform: uppercase;
}

@media (max-width: 820px) {
	.anu-k-book-row { padding: 22px 20px; gap: 20px; }
	.anu-k-book-row__img { flex: 0 0 120px; max-width: 120px; margin: 0 auto; }
}


/* ============================================================================
 * จบไฟล์ — เพิ่ม custom CSS อื่นๆ ใต้บรรทัดนี้ได้เลย
 * ============================================================================ */
