/* 수식(core-tex.jsx) — 교안 글 속 $…$ 를 브라우저가 MathML로 그림
   글꼴: PowerPoint 수식과 같은 Cambria Math(윈도), 맥은 STIX Two Math. \text{…} 속 한글은 학교 글꼴
   아래 모양 규칙은 Temml(MIT, Copyright (c) 2020 Ron Kok)의 Temml-Local.css에서 화면에 필요한 것만 옮김 */
.tex { white-space: nowrap; font-style: normal; }
.tex math {
  font-family: 'Cambria Math', 'STIX Two Math', 'STIXTwoMath-Regular', 'Latin Modern Math', 'NotoSansMath-Regular', math;
  font-style: normal; font-weight: normal; line-height: normal; font-size-adjust: none;
  text-indent: 0; text-transform: none; letter-spacing: normal; word-wrap: normal; direction: ltr;
}
.tex math * { border-color: currentColor; }
.tex mtext { font-family: 'HYCU Sans', 'Pretendard Variable', Pretendard, sans-serif; }
mfrac > :nth-child(2), msqrt, mover > :first-child { math-shift: compact; }
.tex .tml-right { text-align: right; }
.tex .tml-left { text-align: left; }

/* Chromium: MathML Core에 없는 menclose(윗줄·밑줄·상자)를 테두리로 */
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
  .tex .chr-sml { transform: translate(0.07em, 0) }
  .tex .chr-sml-vec { transform: scale(0.75) translate(0.07em, 0) }
  .tex .chr-med { transform: translate(0.14em, 0) }
  .tex .chr-med-vec { transform: scale(0.75) translate(0.14em, 0) }
  .tex .chr-lrg { transform: translate(0.21em, 0) }
  .tex .chr-lrg-vec { transform: scale(0.75) translate(0.21em, 0) }
  .tex menclose { position: relative; padding: 0.5ex 0ex; }
  .tex .tml-overline { padding: 0.1em 0 0 0; border-top: 0.065em solid; }
  .tex .tml-underline { padding: 0 0 0.1em 0; border-bottom: 0.065em solid; }
  .tex .tml-fbox { padding: 3pt; border: 1px solid; }
  .tex .tml-right { text-align: -webkit-right; }
  .tex .tml-left { text-align: -webkit-left; }
}
/* Safari(WebKit): 악센트 위치 보정 */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .tex .wbk-acc { transform: translate(0em, 0.431em); }
  .tex .wbk-sml { transform: translate(0.07em, 0); }
  .tex .wbk-sml-acc { transform: translate(0.07em, 0.431em); }
  .tex .wbk-sml-vec { transform: scale(0.75) translate(0.07em, 0); }
  .tex .wbk-med { transform: translate(0.14em, 0); }
  .tex .wbk-med-acc { transform: translate(0.14em, 0.431em); }
  .tex .wbk-med-vec { transform: scale(0.75) translate(0.14em, 0); }
}
