/* Kha Dental typography system — self-hosted Manrope with Vietnamese coverage. */
@font-face {
	font-family: "Manrope";
	src: url("../../fonts/Manrope/manrope-vietnamese.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Manrope";
	src: url("../../fonts/Manrope/manrope-latin-ext.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	src: url("../../fonts/Manrope/manrope-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Legacy alias keeps old Elementor/custom CSS on Manrope without content edits. */
@font-face {
	font-family: "UTM-Avo-hiep";
	src: url("../../fonts/Manrope/manrope-vietnamese.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "UTM-Avo-hiep";
	src: url("../../fonts/Manrope/manrope-latin-ext.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "UTM-Avo-hiep";
	src: url("../../fonts/Manrope/manrope-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--kha-font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
	--kha-type-ink: #2e2924;
	--kha-type-body: #48423c;
	--kha-type-muted: #6d655d;
	--kha-type-gold: #a77a3a;
	--kha-type-gold-dark: #80591f;
	--kha-type-line: #eadfce;
	--e-global-typography-primary-font-family: "Manrope";
	--e-global-typography-secondary-font-family: "Manrope";
	--e-global-typography-text-font-family: "Manrope";
	--e-global-typography-accent-font-family: "Manrope";
}

html,
body,
body :where(button, input, select, textarea) {
	font-family: var(--kha-font-sans) !important;
	font-synthesis: style;
}

body {
	color: var(--kha-type-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.68;
	letter-spacing: -.006em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Override mixed Elementor/legacy families without touching icon fonts. */
body :where(
	p, a, li, label, legend, blockquote, figcaption,
	.elementor-heading-title,
	.elementor-button-text,
	.elementor-icon-list-text,
	.elementor-image-box-title,
	.elementor-image-box-description,
	.elementor-counter-number-wrapper,
	.elementor-counter-title
) {
	font-family: var(--kha-font-sans) !important;
}

body :where(h1, h2, h3, h4, h5, h6) {
	margin-top: 0;
	font-family: var(--kha-font-sans) !important;
	font-style: normal;
	font-synthesis: style;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

/* Default hierarchy. More specific section styles and inline white headings remain intact. */
body :where(main, .site-content, .elementor) h1 {
	color: var(--kha-type-ink);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1.12;
}

body :where(main, .site-content, .elementor) h2 {
	color: var(--kha-type-gold);
	font-size: clamp(27px, 3vw, 38px);
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.22;
}

body :where(main, .site-content, .elementor) h3 {
	color: var(--kha-type-gold-dark);
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.3;
}

body :where(main, .site-content, .elementor) h4 {
	color: var(--kha-type-ink);
	font-size: clamp(18px, 1.55vw, 22px);
	font-weight: 600;
	line-height: 1.38;
}

body :where(main, .site-content, .elementor) h5 {
	color: var(--kha-type-ink);
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 600;
	line-height: 1.45;
}

body :where(main, .site-content, .elementor) h6 {
	color: var(--kha-type-muted);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .025em;
	line-height: 1.5;
}

body :where(main, .site-content, .elementor) p {
	color: inherit;
	line-height: 1.72;
	text-wrap: pretty;
}

/* Article copy remains comfortable to scan and never stretches excessively. */
:where(.entry-content, .kha-article-content) :where(p, li) {
	font-size: clamp(15.5px, 1.1vw, 17px);
	line-height: 1.78;
}

/* Shared small labels and metadata use a quieter, consistent tone. */
:where(.kha-story-meta, .kha-blog-eyebrow, .kha-article-category, .entry-meta) {
	color: var(--kha-type-muted);
	font-weight: 600;
	letter-spacing: .055em;
}

/* Protect icon glyphs from the legacy `span` font override. */
body :where(.fa-solid, .fas) {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
}

body :where(.fa-regular, .far) {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 400;
}

body :where(.fa-brands, .fab) {
	font-family: "Font Awesome 6 Brands" !important;
	font-weight: 400;
}

@media (max-width: 767px) {
	body { font-size: 15px; }

	body :where(main, .site-content, .elementor) h1 {
		font-size: clamp(30px, 9vw, 40px);
		line-height: 1.16;
	}

	body :where(main, .site-content, .elementor) h2 {
		font-size: clamp(25px, 7.2vw, 32px);
	}

	body :where(main, .site-content, .elementor) h3 {
		font-size: clamp(19px, 5.5vw, 24px);
	}
}
