/* Self-hosted editor fonts (no CDN — GDPR-safe). Montserrat is the real OFL font; Calibri/Cambria/
   Trebuchet MS are Microsoft-licensed, so each is local() first then a bundled OFL substitute —
   Carlito (≈Calibri) and Caladea (≈Cambria), matching what the server-side PDF renderer uses. */

/* ---- Montserrat (real font, SIL OFL) ---- */
@font-face {
  font-family: 'Montserrat Light';
  font-style: normal; font-weight: 300; font-display: swap;
  src: local('Montserrat Light'), local('Montserrat-Light'),
       url('./Montserrat-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Montserrat'), local('Montserrat-Regular'),
       url('./Montserrat-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
       url('./Montserrat-Bold.woff2') format('woff2');
}

/* ---- Calibri -> real Calibri if installed, else Carlito (OFL, metric-compatible) ---- */
@font-face {
  font-family: 'Calibri';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Calibri'), url('./Carlito-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Calibri';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Calibri Bold'), local('Calibri-Bold'), url('./Carlito-Bold.woff2') format('woff2');
}

/* ---- Cambria -> real Cambria if installed, else Caladea (OFL, metric-compatible) ---- */
@font-face {
  font-family: 'Cambria';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Cambria'), url('./Caladea-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cambria';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Cambria Bold'), local('Cambria-Bold'), url('./Caladea-Bold.woff2') format('woff2');
}

/* ---- Trebuchet MS -> real Trebuchet where installed (Windows/macOS), else a clean OFL humanist-sans
   fallback (Carlito) so it always renders with full Romanian diacritics. For pixel-accurate Trebuchet
   on machines without it, drop in a licensed Trebuchet MS woff2 and add it as the first url() below. ---- */
@font-face {
  font-family: 'Trebuchet MS';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Trebuchet MS'), url('./Carlito-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Trebuchet MS';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Trebuchet MS Bold'), local('TrebuchetMS-Bold'), url('./Carlito-Bold.woff2') format('woff2');
}

/* ---- Times New Roman -> real Times New Roman where installed (Windows/macOS), else the bundled Caladea
   serif as a stopgap so existing TNR documents always render with full Romanian diacritics. The server-side
   PDF renderer uses real Times New Roman (ttf-mscorefonts-installer) with Liberation Serif as its metric
   fallback. For a pixel-accurate web fallback on machines without Times New Roman, drop in a Tinos or
   Liberation Serif woff2 (both OFL, metric-compatible) and add it as the first url() below. ---- */
@font-face {
  font-family: 'Times New Roman';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), url('./Caladea-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Times New Roman';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), url('./Caladea-Bold.woff2') format('woff2');
}
