@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans";
	src: url("fonts/noto-sans-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans Thai";
	src: url("fonts/noto-sans-thai.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

body.thamai-brand {
	--thamai-teal: #006d68;
	--thamai-gold: #f2b544;
	--thamai-navy: #102a43;
	--thamai-ivory: #faf7f0;
	--thamai-white: #fff;
	--thamai-paper: var(--thamai-white);
	--thamai-panel: var(--thamai-ivory);
	--thamai-text: var(--thamai-navy);
	--thamai-link: var(--thamai-teal);
	--thamai-focus: var(--thamai-teal);
	--thamai-muted: color-mix(in srgb, var(--thamai-text) 77%, var(--thamai-paper));
	--thamai-border: color-mix(in srgb, var(--thamai-text) 24%, var(--thamai-paper));
	--thamai-body-font: "Noto Sans", "Noto Sans Thai", system-ui, sans-serif;
	--thamai-heading-font: "Plus Jakarta Sans", var(--thamai-body-font);
	--wp--preset--color--background: var(--thamai-paper);
	--wp--preset--color--foreground: var(--thamai-text);
	--wp--preset--color--heading: var(--thamai-text);
	--wp--preset--color--primary: var(--thamai-link);
	--wp--preset--color--link: var(--thamai-link);
	--wp--preset--color--link-hover: var(--thamai-text);
	--wp--preset--color--accent: var(--thamai-focus);
	--wp--preset--color--border: var(--thamai-border);
	--wp--preset--color--muted: var(--thamai-muted);
	--wp--preset--color--header-background: var(--thamai-paper);
	--wp--preset--color--header-text: var(--thamai-text);
	--wp--preset--color--header-search-background: var(--thamai-paper);
	--wp--preset--color--header-search-text: var(--thamai-text);
	--wp--preset--color--header-search-focus: var(--thamai-focus);
	--wp--preset--color--breadcrumb-background: var(--thamai-panel);
	--wp--preset--color--breadcrumb-text: var(--thamai-muted);
	--wp--preset--color--breadcrumb-border: var(--thamai-border);
	--wp--preset--color--footer-widgets-background: var(--thamai-panel);
	--wp--preset--color--footer-widgets-text: var(--thamai-text);
	--wp--preset--color--footer-bottom-background: var(--thamai-navy);
	--wp--preset--color--footer-bottom-text: var(--thamai-ivory);
	--wp--custom--typography--heading-font: var(--thamai-heading-font);
	--color-background: var(--thamai-paper);
	--color-foreground: var(--thamai-text);
	--color-heading: var(--thamai-text);
	--color-link: var(--thamai-link);
	--color-link-hover: var(--thamai-text);
	--color-accent: var(--thamai-focus);
	--color-header-text: var(--thamai-text);
	--color-muted: var(--thamai-muted);
	--color-border: var(--thamai-border);
	background: var(--thamai-paper);
	color: var(--thamai-text);
	color-scheme: light;
	font-family: var(--thamai-body-font);
}

.thamai-brand :where(h1, h2, h3, h4, h5, h6, .site-title, .juzhax-navigation) {
	font-family: var(--thamai-heading-font);
}

.thamai-brand :is([lang|="th"], [lang|="tts"]) {
	font-family: "Noto Sans Thai", var(--thamai-body-font);
}

.thamai-brand .juzhax-header-shell {
	border-block-start: 3px solid var(--thamai-gold);
	border-block-end-color: var(--thamai-border);
}

.thamai-logo {
	display: block;
}

.thamai-brand .thamai-logo .custom-logo {
	width: auto;
	height: clamp(54px, 7vw, 62px);
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.thamai-brand .juzhax-navigation #primary-menu > li > a {
	font-weight: 650;
}

.thamai-brand .entry-title a {
	color: inherit;
}

.thamai-brand .juzhax-post-card .post-thumbnail img {
	width: 100%;
	height: auto;
}

.thamai-brand :where(.entry-title a:hover, .juzhax-navigation a:hover) {
	text-decoration: underline;
	text-decoration-color: var(--thamai-link);
	text-underline-offset: .25em;
}

.thamai-brand :where(.wp-block-button__link:not(.has-background), .juzhax-form button, .juzhax-form input[type="submit"]) {
	background: var(--thamai-teal);
	color: var(--thamai-white);
}

.thamai-brand .juzhax-footer-widgets {
	border-block-start: 1px solid var(--thamai-border);
}

.thamai-footer-brand {
	display: grid;
	justify-items: start;
	padding: 1.5rem max(1.25rem, calc((100% - var(--container-wide)) / 2));
	background: var(--thamai-ivory);
	border-block-start: 1px solid var(--thamai-border);
}

.thamai-footer-brand img {
	display: block;
	width: 128px;
	height: auto;
}

.thamai-brand .juzhax-footer-bottom :focus-visible {
	outline-color: var(--thamai-gold);
}

@media (max-width: 47.999rem) {
	.thamai-brand .juzhax-navigation :focus-visible {
		outline-offset: -3px;
	}
}

@media (prefers-color-scheme: dark) {
	body.thamai-brand {
		--thamai-paper: #142638;
		--thamai-panel: var(--thamai-navy);
		--thamai-text: var(--thamai-ivory);
		--thamai-link: #7cdacf;
		--thamai-focus: var(--thamai-gold);
		color-scheme: dark;
	}

	.thamai-footer-brand a:focus-visible {
		outline-color: var(--thamai-teal);
	}
}
