/* Shared language typography. Load after the shared component stylesheets.
 * Korean glyphs use the main UI face in every role, in either market.
 * Latin keeps its UI, editorial and logo roles, including mixed text nodes.
 * Sources and license: assets/studio/fonts/kr/NotoSansKR-OFL.txt.
 */

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Light"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 399;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Light"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 399;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Regular"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 499;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Regular"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 499;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Medium"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 599;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Medium"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 500 599;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-SemiBold"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 699;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-SemiBold"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 600 699;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Bold"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 899;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Bold"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 700 899;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Heavy"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

@font-face {
  font-family: "LABS Korean UI";
  src: local("AppleSDGothicNeo-Heavy"), url("../assets/studio/fonts/kr/NotoSansKR-VF.woff2") format("woff2");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+20A9, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

/* Both style requests above map to identical upright Korean outlines.
 * The glyph range excludes Latin and ASCII numbers. Never synthesize italics.
 */
:root {
  --font-ui-ko: "LABS Korean UI", var(--font-ui-en);
  --font-editorial-ko: "LABS Korean UI", var(--font-editorial-en);
  --font-logo-ko: "LABS Korean UI", var(--font-logo-en);
  --font-ui: var(--font-ui-ko);
  --font-editorial: var(--font-editorial-ko);
  --font-logo: var(--font-logo-ko);
  font-synthesis: none;
}

/* Keep the original English editorial role after legacy page-language rules.
 * Korean inside the same node still uses the upright main face above.
 */
html:root :is(.editorial-accent, .home-hero__panel h1 em, .section-head h2 em, .catalog-hero h1 em, .app-card__meta > span) {
  font-family: var(--font-editorial);
  font-style: italic;
  font-synthesis: none;
}

/* Preserve English control roles after older market-specific overrides. */
html:root :is(.tior-workspace__info, .tior-workspace__setup-help, .tior-workspace__recent-toggle, .tior-workspace__portfolio-browse, .tior-workspace__section legend em, .tior-workspace__main-layout--canonical .tior-workspace__section legend em, .app-dialog__guide h3, .global-search-result em) {
  font-family: var(--font-editorial);
  font-style: italic;
}

/* Match the control's language, honoring a nearer explicit lang=en boundary.
 * These Korean controls use the main role as well as upright outlines.
 */
html:root :is(.tior-workspace__info, .tior-workspace__setup-help, .tior-workspace__recent-toggle, .tior-workspace__portfolio-browse, .tior-workspace__section legend em, .tior-workspace__main-layout--canonical .tior-workspace__section legend em, .app-dialog__guide h3, .global-search-result em):lang(ko) {
  font-family: var(--font-ui);
  font-style: normal;
}

/* SHOP's embedded picker declares independent fonts: share the same roles. */
.tior-product-picker__dialog {
  --tior-shop-nav-font: var(--font-ui);
}
.tior-product-picker__eyebrow,
.tior-product-picker__header h2,
.tior-product-picker__cart-panel {
  font-family: var(--font-ui);
}
.tior-product-picker__cart-header h3 span {
  font-family: var(--font-editorial);
  font-style: italic;
  font-synthesis: none;
}
