/*
 * CFA brand fonts (local development bundle) - NEX-274
 *
 * Same-origin @font-face declarations that mirror what the upstream
 * https://cfaui.cfainstitute.org/styles/fonts.css ships in deployed envs.
 * Used locally because the upstream is Cloudflare-protected and refuses
 * non-browser / cross-origin requests from research-assistant-localhost.
 *
 * Family names ("Azo Sans", "Flecha S") match the strings the CFA token
 * bridge (frontend/src/cfaTokenBridge.ts CFA_CSS) reads from the
 * --cfa-font-family-{sans,serif} CSS variables, so MUI typography flows
 * resolve to these registered faces without any code change.
 *
 * The "Flecha S" family registers Nunito Sans woff2 files because the
 * upstream does the same trick. Only 400 and 700 are committed (matching
 * what the upstream ships); intermediate weights (500, 600) are synthesized
 * by the browser, which is the same behavior as deployed envs. See
 * frontend/public/fonts/README.md for refresh steps.
 */

@font-face {
  font-family: "Azo Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AzoSans-Regular-DaSPc-_M.woff2") format("woff2");
}

@font-face {
  font-family: "Azo Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/AzoSans-Bold-DRdOVlB3.woff2") format("woff2");
}

@font-face {
  font-family: "Flecha S";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-sans-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Flecha S";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-sans-bold.woff2") format("woff2");
}
