/* Shared public-theme typography. Keep icon fonts and code faces independent. */
@font-face {
    font-family: 'Pretendard Variable';
    font-style: normal;
    font-weight: 45 920;
    font-display: swap;
    src: url('./PretendardVariable.woff2') format('woff2');
}

:root {
    --wmcsb-font-family: 'Pretendard Variable', Pretendard, -apple-system,
        BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

/* Legacy page styles explicitly assign several text families, including inline
   declarations. Only override the family; retain their sizes, weights and spacing. */
body,
body :where(div, span, a, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd,
    table, caption, thead, tbody, tfoot, tr, th, td, form, fieldset, legend,
    label, input, select, option, optgroup, textarea, button, strong, b, em,
    small, blockquote, figcaption, summary):not(:where(.fa, .fas, .far, .fab, .glyphicon, .material-icons,
        [class*="fa-"], [class*="pe-7s-"], [class*="icon-"],
        [class*="-icon"], .tparrows, .tp-bannertimer, pre, code, kbd, samp)) {
    font-family: var(--wmcsb-font-family) !important;
}

/* Code descendants keep a monospace face even when they contain span tags. */
body :where(pre, code, kbd, samp),
body :where(pre, code, kbd, samp) :where(span, b, strong, em, a) {
    font-family: ui-monospace, Consolas, monospace !important;
}

/* Desktop sidebar only: a small increase while preserving the menu hierarchy. */
@media (min-width:1025px) {
    body #sidemenu > ul > li > a {
        font-size:16px;
    }
    body #sidemenu #menu-primary_navigation .sub-menu > li > a,
    body #sidemenu .cat-list > li > div > ul > li > a {
        font-size:15px;
    }
}
