/* Shared type roles for every active prototype route.
   Keep the existing local serif for symbolic lettering; UI uses the same system stack. */
:root {
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', sans-serif;
  /* WXSerif is a chart-only subset: do not mix its few characters into names. */
  --serif-name: 'Songti TC', 'Noto Serif CJK TC', 'Noto Serif TC', 'Source Han Serif TC', serif;
  --type-page: 34px;
  --type-section: 22px;
  --type-body: 15px;
  --type-label: 13px;
  --type-caption: 12px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-heading: 600;
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: 1.7;
}
button, input, textarea, select { font-family: var(--sans); }
.bazi-object i { font-family: var(--sans); }
.fan-card strong, .fan[data-expanded=true] .fan-card strong { font-family: var(--serif-name); }
h1, h2, h3 { font-family: var(--sans); font-weight: var(--weight-heading); letter-spacing: -.025em; }
.legacy-home .home-date h1, .ask-top h1, .coastal-heading h1, .page-title {
  font: var(--weight-heading) var(--type-page)/1.3 var(--sans);
  letter-spacing: -.035em;
}
.section-line h2, .ask-row h2, .mine-profile h2, .chat-empty h2 {
  font: var(--weight-heading) var(--type-section)/1.45 var(--sans);
  letter-spacing: -.025em;
}
.reading-title, .result-name, .success-title {
  font-family: var(--sans);
  font-weight: var(--weight-heading);
  line-height: 1.5;
  letter-spacing: -.025em;
}
.reading-title, .success-title { font-size: 27px; }
.result-name { font-size: var(--type-page); }
.chat-header h1 { font: var(--weight-heading) 22px/1.4 var(--sans); }
.chat-empty h2 { font-size: 26px; }
.coastal-section .partner-selected strong {
  font-family: var(--sans); font-size: var(--type-section); font-weight: var(--weight-heading);
}
.person-detail .person-name { font: var(--weight-heading) 27px/1.4 var(--sans); }
.person-detail .person-intro { font: var(--weight-regular) 18px/1.8 var(--sans); }
.reading-copy, .details-body, .result-copy, .message, .about-copy {
  font-family: var(--sans); font-size: var(--type-body); line-height: 1.8;
}
.person-detail .details-body { font-size: var(--type-body); }
.solid-button, .outline-button, .text-link, .partner-selected .text-link {
  font-weight: var(--weight-medium); letter-spacing: 0;
}
.solid-button, .outline-button { font-size: var(--type-body); }
.back, .fan-switch, .person-tabs button, .partner-selected .text-link, .ask-row .action-label {
  font-size: var(--type-caption);
}
.ask-row p, .ask-top p, .partner-selected p, .chat-empty p, .mine-profile p { font-size: var(--type-label); }
.label, .details summary, .person-detail summary, .topic-chip { font-size: var(--type-label); }
.subtle, .mine-list small { font-size: var(--type-caption); }
.field input, .field textarea, .field select, #question, .chat-composer textarea { font-size: 16px; line-height: 1.6; }
.review-list, .home-almanac strong, .home-week b, .day-picker b { font-variant-numeric: tabular-nums; }
.person-tabs button { padding-inline: 8px; }
@media (max-width: 350px) {
  :root { --type-page: 30px; }
  .person-tabs button { font-size: 11px; padding-inline: 6px; }
}
