/*
 * Deterministic Japanese/Korean fallback for the exact review dictionaries.
 * The subset contains only reviewed visible strings. Its unicode-range and
 * position after the US families keep every Latin glyph on the frozen fonts.
 */
@font-face {
    font-family: "StoryKeeper CJK Fallback";
    src: url("../fonts/noto-sans-cjk-jp-ja-ko-visible.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range:
        U+1100-11FF,
        U+2E80-2FFF,
        U+3000-303F,
        U+3040-30FF,
        U+3100-33FF,
        U+3400-4DBF,
        U+4E00-9FFF,
        U+A960-A97F,
        U+AC00-D7AF,
        U+D7B0-D7FF,
        U+F900-FAFF,
        U+FE10-FE1F,
        U+FE30-FE4F,
        U+FF00-FFEF,
        U+20000-2FA1F;
}

html:lang(ja),
html:lang(ko) {
    --font-family-base: "Lato", "StoryKeeper CJK Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-family-heading: "ITC Garamond Std Book Condensed", "StoryKeeper CJK Fallback", Garamond, "Times New Roman", serif;
    --font-family-display: "Bebas Neue", "StoryKeeper CJK Fallback", "Lato", system-ui, sans-serif;
    --sknc-body: "Lato", "StoryKeeper CJK Fallback", Arial, sans-serif;
    --sknc-heading: "ITC Garamond Std Book Condensed", "StoryKeeper CJK Fallback", "Times New Roman", serif;
}

html:lang(ja) .sk-celebrating-option__label,
html:lang(ko) .sk-celebrating-option__label {
    font-family: "Lato", "StoryKeeper CJK Fallback", sans-serif;
}

html:lang(ja) :is(span.trustpilot-slider-title-s, .tpt-slider-card, .tpt-author-name),
html:lang(ko) :is(span.trustpilot-slider-title-s, .tpt-slider-card, .tpt-author-name) {
    font-family: "ITC Garamont STD", "StoryKeeper CJK Fallback", serif;
}

html:lang(ja) :is(.tpt-slider-card p, .tpt-author-date, .tpt-sum-label, .tpt-sum-count, .tpt-sum-logo span),
html:lang(ko) :is(.tpt-slider-card p, .tpt-author-date, .tpt-sum-label, .tpt-sum-count, .tpt-sum-logo span) {
    font-family: "Lato", "StoryKeeper CJK Fallback", sans-serif !important;
}

html:lang(ja) :is(.sknc-rating-block > strong, .sknc-rating-block > small),
html:lang(ko) :is(.sknc-rating-block > strong, .sknc-rating-block > small) {
    font-family: Roboto, Arial, "StoryKeeper CJK Fallback", sans-serif;
}
