/* NX semantic typography pilot. All sizes derive from a single per-user factor.
   This file must load after legacy theme CSS. No global transform/zoom.
   Existing legacy fixed font rules will be migrated module by module. */
:root {
  --nx-user-font-scale: 1;
  --nx-type-h1-size: calc(28pt * var(--nx-user-font-scale));
  --nx-type-h2-size: calc(20pt * var(--nx-user-font-scale));
  --nx-type-h3-size: calc(16pt * var(--nx-user-font-scale));
  --nx-type-h4-size: calc(14pt * var(--nx-user-font-scale));
  --nx-type-h5-size: calc(12pt * var(--nx-user-font-scale));
  --nx-type-h6-size: calc(11pt * var(--nx-user-font-scale));
  --nx-type-body-size: calc(12pt * var(--nx-user-font-scale));
  --nx-type-label-size: calc(11pt * var(--nx-user-font-scale));
  --nx-type-caption-size: calc(10pt * var(--nx-user-font-scale));
  --nx-type-button-size: calc(12pt * var(--nx-user-font-scale));
  --nx-type-table-size: calc(11pt * var(--nx-user-font-scale));
  --nx-type-input-size: calc(12pt * var(--nx-user-font-scale));
}
.nx-type-h1 { font-size:var(--nx-type-h1-size); }
.nx-type-h2 { font-size:var(--nx-type-h2-size); }
.nx-type-h3 { font-size:var(--nx-type-h3-size); }
.nx-type-h4 { font-size:var(--nx-type-h4-size); }
.nx-type-h5 { font-size:var(--nx-type-h5-size); }
.nx-type-h6 { font-size:var(--nx-type-h6-size); }
.nx-type-body { font-size:var(--nx-type-body-size); }
.nx-type-label { font-size:var(--nx-type-label-size); }
.nx-type-caption { font-size:var(--nx-type-caption-size); }
.nx-type-button { font-size:var(--nx-type-button-size); }
.nx-type-table { font-size:var(--nx-type-table-size); }
.nx-type-input { font-size:var(--nx-type-input-size); }

/* Pilot surface: only NX Settings > Display > Fonts, no other module.
   Inherited size follows body role; heading/labels/buttons use semantic roles.
   Branding and document content remain out of scope. */
.nx-semantic-font-pilot .settings-card {
  font-size:var(--nx-type-body-size);
  line-height:1.5;
}
.nx-semantic-font-pilot .settings-card h3 {
  font-size:var(--nx-type-h3-size);
  line-height:1.3;
}
.nx-semantic-font-pilot .settings-card :is(label, .form-row > span) {
  font-size:var(--nx-type-label-size);
  line-height:1.5;
}
.nx-semantic-font-pilot .settings-card :is(select,input,button) {
  font-size:var(--nx-type-input-size);
  line-height:1.5;
}
.nx-semantic-font-pilot .settings-card :is(.settings-save-state,small) {
  font-size:var(--nx-type-caption-size);
  line-height:1.5;
}
.nx-semantic-font-pilot .nx-personal-font-preview {
  font-size:var(--nx-type-body-size);
  line-height:1.5;
}

/* NX Core shell typography, phase 2. Only shared shell UI; module content remains
   owned by the semantic module migration. At 100%, original px sizes are kept.
   No zoom/transform, no change to graphics, icons, or document rendering. */
:root {
  --nx-shell-body-size: calc(14px * var(--nx-user-font-scale));
  --nx-shell-label-size: calc(12px * var(--nx-user-font-scale));
  --nx-shell-small-size: calc(11px * var(--nx-user-font-scale));
  --nx-shell-heading-size: calc(28px * var(--nx-user-font-scale));
  --nx-shell-title-size: calc(15px * var(--nx-user-font-scale));
}
#app .window-title {font-size:var(--nx-shell-title-size)}
#app .window-titlebar button {font-size:var(--nx-shell-body-size)}
#app .desktop-label {font-size:var(--nx-shell-label-size)}
#app .taskbar .task-button {font-size:calc(var(--nx-taskbar-font-size,12px) * var(--nx-user-font-scale))}
#app .taskbar .start-button {font-size:var(--nx-shell-label-size)}
#app .taskbar .taskbar-status {font-size:var(--nx-shell-small-size)}
#app .start-menu .start-app {font-size:var(--nx-shell-small-size)}
#app .start-menu .start-head {font-size:var(--nx-shell-body-size)}
#app .profile-panel {font-size:var(--nx-shell-body-size)}
#app .profile-panel .panel-action {font-size:var(--nx-shell-body-size)}
#app .window-content .dashboard-hero h2 {font-size:var(--nx-shell-heading-size)}
#app .window-content .dashboard-hero p {font-size:var(--nx-shell-body-size)}
#app .window-content .settings-page-head h2 {font-size:calc(30px * var(--nx-user-font-scale))}
#app .window-content .settings-page-head p {font-size:var(--nx-shell-body-size)}
#app .window-content .settings-home-card strong {font-size:var(--nx-shell-title-size)}
#app .window-content .settings-home-card small {font-size:var(--nx-shell-small-size)}
#app .window-content .settings-card > h3 {font-size:calc(18px * var(--nx-user-font-scale))}
#app .window-content .settings-card > p {font-size:calc(13px * var(--nx-user-font-scale))}
#app .window-content .settings-card .form-row > span {font-size:var(--nx-shell-label-size)}
#app .window-content .settings-card :is(select,input:not([type=range]),textarea) {font-size:var(--nx-shell-body-size)}
#app .window-content .settings-card button {font-size:var(--nx-shell-label-size)}

/* Module help windows: shell-wide typography without modifying help document data. */
#app .help-window .help-nav button{font-size:calc(13px * var(--nx-user-font-scale,1));line-height:1.4}
#app .help-window .help-search{font-size:calc(13px * var(--nx-user-font-scale,1))}
#app .help-window .help-article{font-size:calc(14px * var(--nx-user-font-scale,1))}
#app .help-window .help-article h2{font-size:calc(25px * var(--nx-user-font-scale,1))}
#app .help-window .help-article-head small,#app .help-window .help-version{font-size:calc(11px * var(--nx-user-font-scale,1))}
#app .help-window .help-symbol-detail{font-size:calc(13px * var(--nx-user-font-scale,1))}
