/* Glyde Sales website-matched lettering. Native Windows Trebuchet MS is
   preferred where licensed and already installed. Android has no Trebuchet:
   bundled PT Sans (SIL OFL 1.1, ParaType) provides a consistent, close
   humanist substitute offline, rather than falling through to Roboto.
   Font licenses: /fonts/LICENSE-PT-SANS.txt.
   Keep original GLYDE logo and brand lettering untouched. */
@font-face {
  font-family: "Glyde Humanist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Glyde Humanist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-latin-700-normal.woff2") format("woff2");
}
:root {
  --glyde-ui-font: 'Trebuchet MS', 'Glyde Humanist', 'Segoe UI', Arial, sans-serif;
}

/* Include dynamically rendered pages: sign-in, My Sales, New Window Job,
   dropdowns, sales schedule, signing, document review, and addenda.
   Exclude both the GLYDE logo pane and ALL of its descendants. */
html,
body,
body *:not(.logo-liquid-wrap):not(.logo-liquid-wrap *) {
  font-family: var(--glyde-ui-font) !important;
}

/* Native select menus on some tablets ignore webpage fonts; define the
   requested font wherever the OS allows custom select/option styling. */
body :is(button, input, select, option, optgroup, textarea, legend, summary),
body input::placeholder,
body textarea::placeholder,
body input::file-selector-button {
  font-family: var(--glyde-ui-font) !important;
}

/* Older app styles globally condensed headings and controls. Align spacing
   with the Trebuchet typography used on the Glyde website, without changing
   font sizes, button dimensions, or the branded SALES lettering. */
body :is(h1,h2,h3,h4,h5,h6,p,label,span,small,strong,
         button,input,select,option,optgroup,textarea,legend,summary,
         th,td,li,dt,dd,figcaption):not(.logo-liquid-wrap *) {
  letter-spacing: normal !important;
}
