/* User review edition: Huiwen throughout; role selectors remain for later tuning. */
:root {
 --reading-font: Huiwen, "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
 --name-fallback-font: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
 --book-serif: var(--reading-font);
 --sans: var(--reading-font);
}

/* Predictable controls, including those inside a reading panel. */
button, input, textarea, select, option, label, legend,
.btn, .nav, .utility-menu, .section-tabs, .badge,
.people-toolbar .search input, .people-toolbar .people-view-switch button,
.people-toolbar .people-selects select, .people-selects>label>span,
.people-toolbar .people-filter-summary, .group-adjust-entry,
.people-card footer>.group-adjust-entry, .group-member-choices strong,
.group-member-choices small, .group-member-dialog .modal-head p,
.self-entry, .self-writing-guide, .form-grid, .form-error,
.form-section, .self-save-bar, .self-outline nav, .self-history-item,
.rules-sections, .group-rules-footer, .record-pagination, #toast {
 font-family: var(--sans);
 letter-spacing: normal;
}
button, input, textarea, select { font-variant-numeric: tabular-nums; }
input, textarea, select { font-size:16px; }
.people-toolbar .search input, .people-toolbar .people-selects select {font-size:15px;}

/* Book titles and readable content. Preserve existing heading size hierarchy. */
.brand-title strong, .personal-book-cover,
.topbar h1, .panel-head h2, .modal-head h2,
.self-card-intro h2, .self-section-heading h3,
.self-outline-head h2, .self-history h2,
.group-heading h2, .group-card h2, .group-card h2 button,
.people-directory-heading, .timeline-title h3 {
 font-family:var(--reading-font);
 font-weight:400;
}
.personal-book-cover .cover-open-hint {font-family:var(--sans);}
.self-entry .self-section-heading h3 {font-family:var(--reading-font);}
.self-readable-fields dd, .gift-feedback-full,
.detail-item dd, .timeline-item>p, .timeline-follow,
.people-card-role, .people-card-alias, .people-card-notes p,
.person-record-summary b, .self-preface-body, .group-rules-body {
 font-family:var(--reading-font);
 font-weight:400;
 font-size:18px;
 line-height:1.85;
}
.gift-feedback-full {font-size:19px;line-height:1.95;}
.self-card-intro .self-sincerity, .easter-title, .easter-caption {font-family:var(--reading-font);}

/* An entire name switches together when the original Huiwen cmap lacks a glyph.
   Font family only: retain the containing name's size and layout. */
.book-name {font-family:var(--reading-font)!important;font-weight:400;}
.book-name.name-fallback {font-family:var(--name-fallback-font)!important;}
.person-name {font-family:var(--reading-font);font-weight:400;}
.group-card h2 button {font-size:inherit;}
.group-members-preview .book-name {font-size:16px;}
.relationship-graph .graph-name {font-family:var(--reading-font);font-size:15px;font-weight:400;}
.relationship-graph .graph-me .graph-name {font-size:18px;}

/* Table previews and numeric metadata must be quick to scan. */
th, td, .people-record-list-head, .gift-feedback-preview,
.secondary, .badge, .detail-item dt, .self-readable-fields dt,
.timeline-meta, .timeline-source, .people-card-meta,
.people-card-meta strong, .book-reading-page .detail-stats strong,
.person-record-history, .workspace-date, .people-deck-position,
.people-directory-heading span, .text-data,
.book-reading-page .detail-item dd.text-data,
.self-readable-fields dd.text-data, .self-bmi {
 font-family:var(--sans);
 font-variant-numeric:tabular-nums;
}
.detail-item dd.text-data, .self-readable-fields dd.text-data {font-size:16px;}
.book-reading-page .gift-feedback-preview {font:15px/1.7 var(--sans);}
.people-card-meta strong {font-size:15px;}
.group-member-choices strong {font-size:17px;}
.group-member-choices small {font-size:14px;}

@media(max-width:680px){
 .self-readable-fields dd, .gift-feedback-full,
 .detail-item dd, .timeline-item>p, .timeline-follow {font-size:17px;}
 .self-entry input, .self-entry select, .self-entry textarea,
 .field input, .field textarea, .field select {font-size:16px;}
 .people-card-meta strong {font-size:14px;}
}

/* The salary illustration is part of the opening reading, including its controls. */
.group-rules .salary-figure, .group-rules .salary-figure button,
.group-rules .salary-figure p, .group-rules .salary-years li {
 font-family:var(--reading-font);
}

/* Keep transfer text in the same face for this all-Huiwen review. */
.transfer-code {font-family:var(--reading-font);}
