/* ==========================================================================
   Aksara & Nusantara Script Web Fonts Stylesheet
   Ensures Aksara (Sunda, Lampung, Jawa, etc.) renders 100% identically
   across Admin Question Management, Question List, and Student Exam Sheet.
   ========================================================================== */

/* Arabic exam text must not depend on fonts installed on the student's device. */
@font-face {
    font-family: 'Noto Naskh Arabic';
    src: url('../fonts/NotoNaskhArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Naskh Arabic';
    src: url('../fonts/NotoNaskhArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.arabic-text,
.arabic-text * {
    font-family: 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
    line-height: 1.8 !important;
    word-break: normal !important;
}

/* Aksara Sunda (Sunda v Unpad & Sundanese Unicode) */
@font-face {
    font-family: 'Sunda v Unpad';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sunda-v-Unpad';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sunda_v_Unpad';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SundaneseUnicode-1_0';
    src: url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype'),
         url('../fonts/Sunda%20v%20Unpad.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SundaneseUnicode';
    src: url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype'),
         url('../fonts/Sunda%20v%20Unpad.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sundanese Unicode';
    src: url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype'),
         url('../fonts/Sunda%20v%20Unpad.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aksara Sunda';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aksara-Sunda';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AksaraSunda';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sunda';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Fallback mappings for other traditional Indonesian scripts */
@font-face {
    font-family: 'Aksara Lampung';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kaganga';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanacaraka';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aksara Jawa';
    src: url('../fonts/Sunda%20v%20Unpad.otf') format('opentype'),
         url('../fonts/SundaneseUnicode-1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base utility class for Aksara text styling */
.aksara-text,
[style*="Sunda"],
[style*="sunda"],
[style*="Aksara"],
[style*="aksara"],
[style*="Kaganga"],
[style*="kaganga"],
[style*="Hanacaraka"],
[style*="hanacaraka"] {
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
