/*
 * Khmer typography: Kantumruy Pro (self-hosted, static/fonts, SIL OFL) with the Wing Bank type scale.
 * Applies when the page is in Khmer (body.lang-km). English pages are not affected.
 *
 * Scale (font-size / line-height):
 *   xs 12/16 · sm 14/20 · base 16/24 · lg 18/28 · xl 20/28
 *   h4 24/32 · h3 30/36 · h2 36/40 · h1 42/58
 * Load this file after the other stylesheets.
 */

/* ---------- Font files ---------- */
@font-face {
    font-family: 'KantumruyPro';
    src: url(/fonts/KantumruyPro-Regular-khmer.woff2) format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
    font-family: 'KantumruyPro';
    src: url(/fonts/KantumruyPro-Regular-latin.woff2) format('woff2');
    font-weight: 400; font-style: normal; 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;
}
@font-face {
    font-family: 'KantumruyPro';
    src: url(/fonts/KantumruyPro-Bold-khmer.woff2) format('woff2');
    font-weight: 600 900; font-style: normal; font-display: swap;
    unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
    font-family: 'KantumruyPro';
    src: url(/fonts/KantumruyPro-Bold-latin.woff2) format('woff2');
    font-weight: 600 900; font-style: normal; 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;
}

/* ---------- Font family ---------- */
/* Every element except icon fonts (Font Awesome .fa, Semantic UI .icon, TinyMCE .mce-ico) */
.lang-km, .lang-km *:not(.fa):not(.icon):not(.mce-ico) { font-family: 'KantumruyPro', sans-serif !important; letter-spacing: 0 !important; }

/* ---------- Base scale (all pages) ---------- */
.lang-km { font-size: 1rem !important; line-height: 1.5rem; }                 /* base 16/24 */
.lang-km h1 { font-size: 2.625rem; line-height: 3.625rem; font-weight: 700; }   /* 42/58 */
.lang-km h2 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }      /* 36/40 */
.lang-km h3 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }    /* 30/36 */
.lang-km h4 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }         /* 24/32 */
.lang-km h5 { font-size: 1.25rem; line-height: 1.75rem; }                       /* 20/28 */
.lang-km h6 { font-size: 1.125rem; line-height: 1.75rem; }                      /* 18/28 */
.lang-km p, .lang-km li, .lang-km td, .lang-km th, .lang-km label,
.lang-km input, .lang-km select, .lang-km textarea { line-height: 1.5rem; }
.lang-km small { font-size: .75rem; line-height: 1rem; }                        /* xs */

/* ---------- Site pages: map each element onto the scale ---------- */

/* h1: page titles */
.lang-km .lh-hero-title,
.lang-km .lh-banner h1,
.lang-km .lh-job-hero h1 { font-size: 2.625rem; line-height: 3.625rem; }

/* h2: section titles */
.lang-km .lh-section-head h2,
.lang-km .lh-employer h2 { font-size: 2.25rem; line-height: 2.5rem; padding-bottom: 4px; }

/* h4: results headings, stats */
.lang-km .lh-results-head h2 { font-size: 1.5rem; line-height: 2rem; }
.lang-km .lh-stats strong { font-size: 1.875rem; line-height: 2.25rem; }

/* xl 20/28: card group headings, job row titles, salary in banner */
.lang-km .lh-card h2,
.lang-km .lh-filters-head h2,
.lang-km .lh-row-main h3,
.lang-km .lh-job-hero-salary,
.lang-km .lh-co-count strong { font-size: 1.25rem; line-height: 1.75rem; }

/* lg 18/28: card titles */
.lang-km .lh-job h3,
.lang-km .lh-co-card h3,
.lang-km .lh-guide h3,
.lang-km .lh-training h3,
.lang-km .lh-empty-card h3 { font-size: 1.125rem; line-height: 1.75rem; }

/* base 16/24: leads, body copy, form fields, salaries, facts */
.lang-km .lh-hero-lead,
.lang-km .lh-banner-lead,
.lang-km .lh-employer-lead,
.lang-km .lh-section-head p,
.lang-km .lh-results-head p,
.lang-km .lh-rich,
.lang-km .lh-rich p, .lang-km .lh-rich li,
.lang-km .lh-facts dd,
.lang-km .lh-job-hero-company,
.lang-km .lh-search-field input,
.lang-km .lh-search-field select,
.lang-km .lh-job-salary,
.lang-km .lh-row-salary,
.lang-km .lh-filter-group h3,
.lang-km .lh-cat strong,
.lang-km .lh-company strong,
.lang-km .lh-company-top strong,
.lang-km .lh-btn-lg { font-size: 1rem; line-height: 1.5rem; }

/* Header and footer use px, not rem: pages on user_layout load Semantic UI, which sets
   html { font-size: 14px }, so rem sizes there would be smaller than on the home page. */
/* Header: menu lg 18/28 · language and login base 16/24 · dropdown and button sm 14/20 · brand tagline xs 12/16 */
.lang-km .lh-menu .nav-link { font-size: 18px; line-height: 28px; }
.lang-km .lh-lang, .lang-km .lh-link { font-size: 16px; line-height: 24px; }
.lang-km .lh-header .dropdown-item,
.lang-km .lh-header .lh-btn { font-size: 14px; line-height: 20px; }
.lang-km .lh-brand-text small { font-size: 12px; line-height: 16px; }

/* Partners label: Khmer has no capitals, and letter-spacing breaks apart stacked consonants */
.lang-km .lh-partners-label { font-size: 16px; line-height: 24px; letter-spacing: 0; text-transform: none; }

/* sm 14/20: buttons, meta lines, list items */
.lang-km .lh-btn,
.lang-km .lh-more,
.lang-km .lh-hero-note,
.lang-km .lh-popular,
.lang-km .lh-stats span,
.lang-km .lh-cat small,
.lang-km .lh-tab,
.lang-km .lh-job-company,
.lang-km .lh-job-meta,
.lang-km .lh-row-company,
.lang-km .lh-row-meta,
.lang-km .lh-row-cat,
.lang-km .lh-row-dates,
.lang-km .lh-company small,
.lang-km .lh-company em,
.lang-km .lh-guide p,
.lang-km .lh-training p,
.lang-km .lh-crumbs,
.lang-km .lh-check,
.lang-km .lh-show-more,
.lang-km .lh-filters-head a,
.lang-km .lh-sort, .lang-km .lh-sort a,
.lang-km .lh-paging p,
.lang-km .lh-size select,
.lang-km .lh-page,
.lang-km .lh-chips li,
.lang-km .lh-notice,
.lang-km .lh-facts dt,
.lang-km .lh-side-facts > div,
.lang-km .lh-contact-person > div,
.lang-km .lh-lang-tag,
.lang-km .lh-company-loc,
.lang-km .lh-company-top small,
.lang-km .lh-co-type,
.lang-km .lh-co-loc,
.lang-km .lh-checks,
.lang-km .lh-empty p { font-size: .875rem; line-height: 1.25rem; }

/* Footer: headings lg 18/28 · text base 16/24 · bottom sm 14/20 · logo tagline xs 12/16 */
.lang-km .lh-footer { font-size: 16px; line-height: 24px; }
.lang-km .lh-footer h6 { font-size: 18px !important; line-height: 28px; }
.lang-km .lh-footer-bottom { font-size: 14px; line-height: 20px; }
.lang-km .lh-footer-logo small { font-size: 12px; line-height: 16px; }

/* xs 12/16: small labels and tags */
.lang-km .lh-eyebrow,
.lang-km .lh-badge,
.lang-km .lh-guide-tag,
.lang-km .lh-search-field small,
.lang-km .lh-check em,
.lang-km .lh-co-count small { font-size: .75rem; line-height: 1rem; }
.lang-km .lh-eyebrow, .lang-km .lh-badge, .lang-km .lh-guide-tag { text-transform: none; }

/* Khmer needs room for vowels above and below the line */
.lang-km .lh-btn { padding-top: 10px; padding-bottom: 10px; }
.lang-km .lh-row-cat { margin-top: 12px; }

/* ---------- Small desktop / tablet: menu steps down to base 16/24 ---------- */
@media (max-width: 1199px) {
    .lang-km .lh-menu .nav-link { font-size: 16px; line-height: 24px; }
}

/* ---------- Smaller screens: step headings down one level ---------- */
@media (max-width: 767px) {
    .lang-km .lh-footer { font-size: 15px; line-height: 24px; }
    .lang-km .lh-footer h6 { font-size: 16px !important; line-height: 24px; }
    .lang-km .lh-footer-bottom { font-size: 13px; line-height: 20px; }
    .lang-km h1,
    .lang-km .lh-hero-title,
    .lang-km .lh-banner h1,
    .lang-km .lh-job-hero h1 { font-size: 1.875rem; line-height: 2.5rem; }     /* h3 size, roomier line */
    .lang-km h2,
    .lang-km .lh-section-head h2,
    .lang-km .lh-employer h2 { font-size: 1.5rem; line-height: 2.25rem; }       /* h4 size */
    .lang-km h3 { font-size: 1.25rem; line-height: 1.75rem; }
    .lang-km .lh-results-head h2 { font-size: 1.25rem; line-height: 1.75rem; }
}
