/* Quartet Sans v1.1: one family for text, figures and symbols.
 * The original Be Vietnam Pro faces and component styles remain available.
 * Set <html data-typography="be-vietnam-pro"> to disable these overrides.
 * The retired split-font preview is intentionally not loaded.
 */
@font-face {
  font-family: 'Quartet Sans';
  src: url('/fonts/quartet-sans-v1.1/QuartetSans-Thin.ttf') format('truetype');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Quartet Sans';
  src: url('/fonts/quartet-sans-v1.1/QuartetSans-ExtraLight.ttf') format('truetype');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Quartet Sans';
  src: url('/fonts/quartet-sans-v1.1/QuartetSans-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --k1-quartet-font: 'Quartet Sans', 'Be Vietnam Pro', sans-serif;
  --k1-quartet-weight: 300;
}

/* Override legacy component-local type choices without touching PDF text layers,
 * canvases or SVG icons. Existing size, spacing, color and layout are preserved.
 * Light intentionally replaces the old weight scale for the approved presentation.
 */
html[data-typography='quartet']:not(:has(.login-page)) :is(body, button, input, select, textarea),
html[data-typography='quartet']:not(:has(.login-page))
  #root
  :not(svg):not(svg *):not(canvas):not(.textLayer):not(.textLayer *) {
  font-family: var(--k1-quartet-font) !important;
  font-weight: var(--k1-quartet-weight) !important;
  font-variant-numeric: tabular-nums;
  /* Preserve italic emphasis where used, but never synthesize a heavier face. */
  font-synthesis: style;
}

/* The entire sign-in page keeps its original Be Vietnam Pro branding and weights.
 * Thin is available for explicit display-text opt-ins after visual review;
 * dense tables, inputs, navigation and amounts use the central default weight.
 */
html[data-typography='quartet']:not(:has(.login-page)) .quartet-display-thin,
html[data-typography='quartet']:not(:has(.login-page)) .quartet-display-thin * {
  --k1-quartet-weight: 100;
}
