/* The original Compliance Sans font is served by the site, without local() aliases. */
@font-face {
    font-family: 'Compliance Sans';
    src: url('fonts/compliance-sans.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --font-ui: 'Compliance Sans', Arial, sans-serif;
}

body,
.font-body,
.styled-text,
.infobox-table,
.admin-input,
button,
input,
textarea,
select {
    font-family: var(--font-ui);
}

/* Keep the existing display face on headings; controls use the readable UI face. */
button.font-header,
a.nav-btn,
a.interactive-glow,
.nav-btn,
.admin-badge-btn,
.news-filter,
.news-filter-count,
.news-category,
.news-badge,
.news-date,
.news-card-summary,
.news-read-more,
.news-back,
.news-story-meta,
.news-story-body,
.news-story-body figcaption,
.news-editor-heading,
.news-editor-heading span,
.news-editor-help,
.news-form-label,
.news-block-heading,
.news-block-controls,
.news-editor-add,
.news-block-insert,
.hq-back,
.hq-overline,
.hq-kicker,
.hq-button,
.hq-panel-heading,
.hq-module-meta,
.hq-module-link,
.hq-footer,
.hq-info strong,
.hq-mono,
.hq-module-count,
.hq-diff-columns pre,
#review-comment {
    font-family: var(--font-ui);
}

input::file-selector-button {
    font-family: inherit;
}

.styled-text {
    text-align: start;
    word-spacing: normal;
}

button.font-header,
.nav-btn,
.news-read-more,
.news-back,
.hq-button {
    letter-spacing: 0.02em;
}

.news-read-more {
    font-size: 16px;
    line-height: 1.4;
}

.news-filter {
    font-size: 14px;
}

.news-category,
.news-badge,
.news-date,
.news-filter-count {
    font-size: 12px;
}

.news-story-body,
.hq-diff-columns pre,
#review-comment {
    line-height: 1.8;
}

@media (max-width: 640px) {
    .news-filter {
        font-size: 13px;
    }
}
