﻿/* ==========================================================================
   Marsh McLennan — Typography Tokens (CSS Custom Properties)
   NOTE: Noto Sans is free (SIL OFL). Add Marsh Serif WOFF2 files to serve
         MarshSerif-Regular.woff2 and MarshSerif-Italic.woff2 from /fonts/.
   ========================================================================== */

/* Noto Sans via Google Fonts (or swap with self-hosted TTF) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* Marsh Serif — self-hosted (KOMETA commercial license)
   Place WOFF2 files in Areas/Framework/Content/Style/fonts/ */
@font-face {
  font-family: "Marsh Serif";
  src: url("fonts/MarshSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marsh Serif";
  src: url("fonts/MarshSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --marsh-font-display: "Marsh Serif", Georgia, "Times New Roman", serif;
  --marsh-font-body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --marsh-text-h1: 2.5rem;
  --marsh-text-h2: 2rem;
  --marsh-text-h3: 1.5rem;
  --marsh-text-h4: 1.25rem;
  --marsh-text-body: 1rem;
  --marsh-text-small: 0.875rem;
  --marsh-text-caption: 0.75rem;
  --marsh-text-overline: 0.6875rem;

  --marsh-weight-regular: 400;
  --marsh-weight-medium: 500;
  --marsh-weight-semibold: 600;
  --marsh-weight-bold: 700;

  --marsh-leading-tight: 1.2;
  --marsh-leading-normal: 1.5;
  --marsh-leading-relaxed: 1.75;

  --marsh-tracking-tight: -0.02em;
  --marsh-tracking-normal: 0;
  --marsh-tracking-wide: 0.05em;
  --marsh-tracking-overline: 0.1em;
}

/* ==========================================================================
   Brand font overrides for third-party CSS (W3.css, Bootstrap, jQuery UI).
   This file must be linked AFTER bootstrap / W3 / jQuery UI / jqGrid CSS.
   ========================================================================== */

html, body,
input, select, textarea, button,
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button,
.ui-jqgrid, .ui-datepicker {
  font-family: var(--marsh-font-body) !important;
}

h1, .h1 {
  font-family: var(--marsh-font-display);
  font-weight: var(--marsh-weight-regular);
}

h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--marsh-font-body);
}

h2, .h2 {
  font-weight: var(--marsh-weight-bold);
}

h3, h4, .h3, .h4 {
  font-weight: var(--marsh-weight-semibold);
}
