/* Global fallbacks */
@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans/NotoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans/NotoSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Simplified Chinese */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('../fonts/NotoSansSC/NotoSansSC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans SC';
    src: url('../fonts/NotoSansSC/NotoSansSC-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Traditional Chinese */
@font-face {
    font-family: 'Noto Sans TC';
    src: url('../fonts/NotoSansTC/NotoSansTC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('../fonts/NotoSansTC/NotoSansTC-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Japanese */
@font-face {
    font-family: 'Noto Sans JP';
    src: url('../fonts/NotoSansJP/NotoSansJP-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans JP';
    src: url('../fonts/NotoSansJP/NotoSansJP-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Korean */
@font-face {
    font-family: 'Noto Sans KR';
    src: url('../fonts/NotoSansKR/NotoSansKR-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('../fonts/NotoSansKR/NotoSansKR-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bengali */
@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('../fonts/NotoSansBengali/NotoSansBengali-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('../fonts/NotoSansBengali/NotoSansBengali-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Tamil */
@font-face {
    font-family: 'Noto Sans Tamil';
    src: url('../fonts/NotoSansTamil/NotoSansTamil-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Tamil';
    src: url('../fonts/NotoSansTamil/NotoSansTamil-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Locale specific stacks */
html[lang="zh"] body {
    font-family: 'Noto Sans SC', 'Inter', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
}

html[lang="tw"] body {
    font-family: 'Noto Sans TC', 'Inter', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
}

html[lang="ja"] body {
    font-family: 'Noto Sans JP', 'Inter', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
}

html[lang="ko"] body {
    font-family: 'Noto Sans KR', 'Inter', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
}

html[lang="bn"] body {
    font-family: 'Noto Sans Bengali', 'Noto Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html[lang="ta"] body {
    font-family: 'Noto Sans Tamil', 'Noto Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html[lang="sk"],
html[lang="bg"],
html[lang="sr"],
html[lang="hr"],
html[lang="lt"],
html[lang="lv"],
html[lang="et"],
html[lang="sw"],
html[lang="ms"],
html[lang="tl"] {
    font-family: 'Noto Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
}


