/* Tipografi situs dan editor. Font dimuat dari CDN agar file Hancom tidak
   disalin ke repositori; font sistem menjadi cadangan saat jaringan terputus. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Hancom Malang Malang";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2406-1@1.0/HancomMalangMalang-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
  font-family: "Hancom Malang Malang";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2406-1@1.0/HancomMalangMalang-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+A960-A97F, U+D7B0-D7FF;
}

:root {
  --site-font-body: "Pretendard Variable", Pretendard, sans-serif;
  --site-font-ko-headline: "Hancom Malang Malang", "Pretendard Variable", Pretendard, sans-serif;
  --bs-font-sans-serif: var(--site-font-body);
  --bs-font-monospace: var(--site-font-body);
  --bs-body-font-family: var(--site-font-body);
  --bs-heading-font-family: var(--site-font-body);
  --font-family: var(--site-font-body);
}

html, body, header.kec-header, .kec-about, .announcement-content, .kec-pagecontent {
  font-family: var(--site-font-body);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Kode pada template bawaan juga mengikuti font teks situs. */
code, pre, kbd, samp,
code[class*="language-"], pre[class*="language-"] {
  font-family: var(--site-font-body) !important;
}

/* Isi lama dari editor bisa menyimpan style font-family inline. */
.announcement-content [style*="font-family" i],
.announcement-content [style*="font:" i],
.announcement-content font[face],
.kec-detail [style*="font-family" i],
.kec-greeting [style*="font-family" i],
.kec-cls [style*="font-family" i],
.kec-pagecontent [style*="font-family" i],
.kec-pagecontent [style*="font:" i],
.kec-pagecontent font[face],
.topik-card-text [style*="font-family" i],
body.cke_editable [style*="font-family" i],
body.cke_editable font[face] {
  font-family: inherit !important;
}

html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="ko"] h5,
html[lang="ko"] h6,
html[lang="ko"] .kec-post__head,
html[lang="ko"] .kec-hero__title,
html[lang="ko"] .kec-title,
body.lang-ko h1,
body.lang-ko h2,
body.lang-ko h3,
body.lang-ko h4,
body.lang-ko h5,
body.lang-ko h6 {
  font-family: var(--site-font-ko-headline);
}

/* Judul di HTML posting lama dapat membawa font inline dari CKEditor. */
html[lang="ko"] .announcement-content :is(h1, h2, h3, h4, h5, h6),
html[lang="ko"] .kec-pagecontent :is(h1, h2, h3, h4, h5, h6),
body.lang-ko.cke_editable :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--site-font-ko-headline) !important;
}

/* Keep Indonesian words and Korean words with their particles on one line.
   A long URL or filename may still wrap when it cannot fit its container. */
html[lang="id"] body :is(div, p, li, a, span, h1, h2, h3, h4, h5, h6, td, th, blockquote, label, button, .kec-post__head),
html[lang="id"] body {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

html[lang="ko"] body :is(div, p, li, a, span, h1, h2, h3, h4, h5, h6, td, th, blockquote, label, button, .kec-post__head),
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  hyphens: none;
}
