/*
 * Older public pages in the "Service Desk" look.
 *
 * Pages that have not been rebuilt in the new design keep their own markup
 * and stylesheets (osh-* and pub-* classes). This file is loaded after them
 * and points their tokens at the brand tokens (public/css/brand-tokens.css),
 * so colour, type, corners and page width match the new header, footer and
 * home page. It holds tokens and a few page-level rules only: no components.
 *
 * Not loaded on pages built wholly in the new design.
 */
:root {
  /* ---- osh-* pages ---- */
  --osh-font: var(--brand-font-body);
  --osh-font-display: var(--brand-font-display);
  --osh-font-mono: var(--brand-font-mono);

  --osh-c-bg: var(--brand-bg);
  --osh-c-surface: var(--brand-surface);
  --osh-c-surface-2: var(--brand-surface);
  --osh-c-surface-3: var(--brand-surface-sunken);
  --osh-c-divider: var(--brand-line-soft);
  --osh-c-line: var(--brand-line);

  --osh-c-ink: var(--brand-neutral-900);
  --osh-c-ink-2: var(--brand-navy-900);
  --osh-c-text: var(--brand-neutral-900);
  --osh-c-text-2: var(--brand-neutral-700);
  --osh-c-muted: var(--brand-neutral-500);

  --osh-c-brand: var(--brand-navy-900);
  --osh-c-cta: var(--brand-navy-900);
  --osh-c-cta-hover: var(--brand-navy-800);
  --osh-c-cyan: var(--brand-blue-600);
  --osh-c-cyan-soft: var(--brand-blue-200);
  --osh-c-blue: var(--brand-blue-600);
  --osh-c-blue-soft: var(--brand-blue-200);
  --osh-c-gold: var(--brand-blue-600);
  --osh-c-gold-soft: var(--brand-blue-200);
  --osh-c-gold-deep: var(--brand-level-5);

  --osh-r-sm: 4px; --osh-r-md: 6px; --osh-r-lg: var(--brand-radius); --osh-r-xl: var(--brand-radius); --osh-r-2xl: 12px;
  --osh-shadow-sm: 0 1px 2px rgba(10,39,86,.08), 0 2px 8px rgba(10,39,86,.08);
  --osh-shadow-md: 0 2px 8px rgba(10,39,86,.12), 0 12px 28px rgba(10,39,86,.10);
  --osh-shadow-lg: 0 4px 12px rgba(10,39,86,.14), 0 24px 48px rgba(10,39,86,.18);
  --osh-grad-authority: linear-gradient(135deg, var(--brand-navy-950) 0%, var(--brand-navy-900) 100%);
  --osh-grad-noir: linear-gradient(180deg, var(--brand-navy-900) 0%, var(--brand-navy-950) 100%);

  /* same content width as the header: 1280px less the two gutters */
  --osh-container: 1280px;

  /* ---- pub-* pages ---- */
  --pub-navy: var(--brand-navy-900);
  --pub-navy-light: var(--brand-navy-800);
  --pub-navy-dark: var(--brand-navy-950);
  --pub-dark: var(--brand-neutral-900);
  --pub-blue: var(--brand-navy-900);
  --pub-blue-light: var(--brand-blue-600);
  --pub-blue-dark: var(--brand-navy-800);
  --pub-info: var(--brand-blue-600);
  --pub-teal: var(--brand-blue-600);
  --pub-teal-light: var(--brand-blue-300);
  --pub-teal-dark: var(--brand-level-5);

  --pub-white: var(--brand-surface);
  --pub-bg: var(--brand-bg);
  --pub-bg-alt: var(--brand-surface-sunken);
  --pub-border: var(--brand-line);
  --pub-text: var(--brand-neutral-900);
  --pub-text-light: var(--brand-neutral-700);
  --pub-text-lighter: var(--brand-neutral-500);

  --pub-font-heading: var(--brand-font-display);
  --pub-font-body: var(--brand-font-body);
  --pub-font-mono: var(--brand-font-mono);
  --pub-radius: var(--brand-radius);
  --pub-radius-lg: var(--brand-radius);
  --pub-radius-xl: 12px;
  --pub-container: 1280px;

  --pub-gradient-navy: linear-gradient(180deg, var(--brand-navy-900) 0%, var(--brand-navy-950) 100%);
  --pub-gradient-blue: linear-gradient(180deg, var(--brand-blue-600) 0%, var(--brand-level-5) 100%);
  --pub-gradient-hero: linear-gradient(135deg, var(--brand-navy-950) 0%, var(--brand-navy-900) 100%);
}

/* The page ground is the flat canvas of the new design: no paper grain. */
body.modern { background: var(--brand-bg); color: var(--brand-text); font-family: var(--brand-font-body); }
body.modern::before { content: none; }

/* Headings: the sans of the new design, set heavy. */
.modern :is(h1, h2):where(:not(.sd, .sd *)),
.modern :is(.osh-display, .pub-page-banner-title, .pub-section-title):where(:not(.sd, .sd *)) {
  font-family: var(--brand-font-display);
  font-weight: 800;
  letter-spacing: -.02em;
}
.modern :is(h3, h4):where(:not(.sd, .sd *)) { font-family: var(--brand-font-display); font-weight: 700; letter-spacing: -.01em; }

/* Codes, numbers and small labels use the mono of the new design. */
.modern :is(.osh-eyebrow, .osh-kicker, .pub-eyebrow) { font-family: var(--brand-font-mono); letter-spacing: .08em; }
