@font-face {
  font-family: VocaD2Coding;
  src: url("fonts/D2Coding-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: VocaNanum;
  src: url("fonts/NanumBarunGothic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: VocaCharis;
  src: url("fonts/Charis-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.published-document {
  --body-size: 22px;
  --section-size: 26px;
  --sense-size: 28px;
  --title-size: 34px;
  --info-size: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 850px;
  margin: 2rem auto;
  padding: 0 16px;
  color: #182334;
  font-family: VocaD2Coding, monospace;
  font-size: var(--body-size);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.published-document[data-size=small] {
  --body-size: 16px; --section-size: 20px; --sense-size: 22px;
  --title-size: 26px; --info-size: 15px;
}
.published-document[data-size=normal] {
  --body-size: 18px; --section-size: 22px; --sense-size: 24px;
  --title-size: 28px; --info-size: 16px;
}
.published-document[data-size=large] {
  --body-size: 20px; --section-size: 24px; --sense-size: 26px;
  --title-size: 32px; --info-size: 18px;
}
.published-document[data-font=system] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.published-document[data-font=nanum] { font-family: VocaNanum, sans-serif; }
.published-document > h1, .markdown-body .word-title {
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.4;
  margin: .5em 0;
  text-align: left;
}
.published-document .markdown-body { font-size: var(--body-size); }
.markdown-body p { margin: 0 0 1em; }
.markdown-body .section-title {
  font-size: var(--section-size);
  font-weight: 400;
  line-height: 1.5;
  margin: 1.2em 0 .25em;
}
.markdown-body .sense-title {
  font-size: var(--sense-size);
  font-weight: 400;
  line-height: 1.5;
  margin: .9em 0 .4em;
}
.markdown-body .major-section-start {
  border-top: 10px solid #a8cf78;
  margin-top: 64px;
  padding-top: 64px;
}
.markdown-body .summary-nuance-title { color: #c62828; }
.markdown-body .summary-nuance-title:not(.major-section-start) { margin-top: 2em; }
.markdown-body .meaning-block { margin-top: 1.8em; }
.markdown-body .meaning-summary { margin: 0; }
.markdown-body .definition-item { padding: .45em 0; }
.markdown-body .definition-text { margin: 0; }
.markdown-body .ipa { font-family: VocaCharis, serif; }
.markdown-body .meaning-arrow { font-family: VocaNanum, sans-serif; }
.markdown-body .placeholder-purple { color: #9652d6; }
.markdown-body .supplementary-info {
  background: #f3f4f6;
  color: #444;
  margin: .3em 0 .3em 16px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: var(--info-size);
}
.markdown-body .supplementary-line, .markdown-body .phrase-line { margin: 0; }
.markdown-body .phrase-examples {
  background: #f0f5f8;
  margin: .5em 0;
  padding: 10px 12px;
  border-radius: 6px;
}
.markdown-body table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.markdown-body th, .markdown-body td {
  border: 1px solid #b8c1ce;
  padding: .4rem .6rem;
}
.markdown-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f4f8;
  padding: 1rem;
}
.markdown-body blockquote {
  border-left: 3px solid #8ea6cd;
  padding-left: 1rem;
  margin-left: 0;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin: 1rem 0 2rem;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.document-setting { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.document-actions label { margin: 0; }
.document-actions select { font: inherit; max-width: 100%; }
.document-setting small { color: #555; font-size: 13px; }
.document-actions a, .document-actions button {
  padding: .5rem .8rem;
  border: 1px solid #345da8;
  border-radius: .35rem;
  background: white;
  color: #174c9b;
}
.document-updated { font: 14px/1.5 sans-serif; color: #555; }
@media screen {
  .resource-print-page { margin: 0; background: #e8ebef; overflow-x: auto; }
  .print-document {
    width: 210mm;
    min-width: 210mm;
    max-width: none;
    min-height: 297mm;
    margin: 24px auto;
    padding: 18mm 16mm;
    background: white;
    box-shadow: 0 2px 14px #00000016;
  }
}
@page { size: A4; margin: 18mm 16mm; }
@media print {
  .resource-print-page { margin: 0; background: white; }
  .published-document {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .document-actions { display: none; }
  .markdown-body table { display: table; width: 100%; overflow: visible; table-layout: fixed; }
  .markdown-body thead { display: table-header-group; }
  .markdown-body tr, .markdown-body pre,
  .markdown-body .definition-item, .markdown-body .phrase-examples,
  .markdown-body .supplementary-info { break-inside: avoid; }
  .markdown-body h1, .markdown-body h2, .markdown-body h3,
  .markdown-body h4, .markdown-body h5, .markdown-body h6 { break-after: avoid; }
  .markdown-body .meaning-summary { break-after: avoid; }
  .markdown-body .major-section-start { break-inside: avoid; }
  a { color: inherit; }
  p, li { orphans: 3; widows: 3; }
}
