/* bectranType.css: the application face for pages that do not load bectranV5 (login, dialogs, external, viewers). */
/* Mirrors bectranV5 sections 1 (text rendering), 14 and 15; change both files together. */

/* ===== 1. TOKENS: same values as bectranV5 ===== */

:root {
  --bec-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* the original face, back since 2026-10-23 */
  --bec-tracking: normal;
}

/* ===== 1b. TEXT RENDERING: same rules as bectranV5 section 1 ===== */

/* every element, pseudo-elements included: antialiased grayscale smoothing, no text shadow, no text stroke (PrimeFaces' theme paints letterpress shadows, pfV1 double-inks highlights) */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  text-shadow: none !important;
}

/* no filter on anything that can hold text; images, svg and icon glyphs keep theirs (the rail icons are coloured by filter) */
*:not(svg):not(svg *):not(img):not(picture):not(video):not(canvas):not(iframe):not(object):not(embed):not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.pi):not([class*="icon"]) {
  filter: none !important;
}

/* ===== 14. TYPEFACE: one face application-wide through --bec-font (Inter from 2026-09-16, Open Sans again since 2026-10-23) ===== */

*:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.pi):not([class*="icon-"]):not([class*="glyphicon"]):not(.signature-pad):not(.navyBlueColForSigPad):not(.print-header-text-for-paper-app):not(code):not(kbd):not(pre):not(samp),
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.pi):not([class*="icon-"]):not([class*="glyphicon"])::placeholder {
  font-family: var(--bec-font) !important;
}

/* bectranV4 routes its typography through a custom property */
:root, .v4, body:has(.v4) { --v4-font: var(--bec-font); }

/* ===== 15. LETTER SPACING: single letter-spacing knob, inert until set ===== */

body {
  letter-spacing: var(--bec-tracking);
}

.fa, .fas, .far, .fal, .fad, .fab, .pi,
[class*="icon-"], [class*="glyphicon"],
.navbar-toggler-icon {
  letter-spacing: normal;
}
