/* =====================================================================
   Collabera type layer for Cognixia (loaded last on every page)
   Headings: Newsreader Light Italic + one Red Hat Display CAPS accent.
   Serif taglines kept as in v403. Numerals: Newsreader Light upright.
   Eyebrows, buttons, layout and gradients are not touched here.
   Every rule sits in the cascade layer "collabera-type", which each page
   declares first in <head>. For !important declarations the first-declared
   layer wins, so these rules beat the page-level !important rules (layered
   and unlayered) without editing those files. Selectors also carry
   :not(#cb) twice for specificity inside the layer.
   ===================================================================== */

/* Every serif usage on the site now points at this family (renamed from
   'Cognixia Editorial'). Both faces use the italic file and are pinned to
   Light 300, so all Newsreader text renders as Light Italic. */
@font-face{font-family:'Collabera Head';src:url('fonts/Newsreader-Italic.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Collabera Head';src:url('fonts/Newsreader-Italic.ttf') format('truetype');font-weight:300;font-style:italic;font-display:swap}
/* Big numerals: Newsreader Light upright */
@font-face{font-family:'Collabera Numeral';src:url('fonts/Newsreader.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Collabera Numeral';src:url('fonts/Newsreader.ttf') format('truetype');font-weight:300;font-style:italic;font-display:swap}

:root{
  --cb-head:'Collabera Head',Georgia,serif;
  --cb-num:'Collabera Numeral',Georgia,serif;
  --cb-sans:'Cognixia Display','Red Hat Display',system-ui,sans-serif;
  /* Collabera Brand Guidelines V2.0 */
  --cb-tenure-green:#05262B;
  --cb-white:#FFFFFF;
  --cb-gold-dark:#C39E61;   /* accent on dark surfaces (Secondary light gold) */
  --cb-gold-light:#78684D;  /* accent on light surfaces: Secondary gold #AA9269, 34% shade toward Charcoal; 4.6:1 on the lightest tint, 5.4:1 on white */
  --cb-gold-light-small:#78684D;
}

@layer collabera-type{
/* Newsreader is pinned to Light; never let the browser fake a bold on it */
html:not(#cb),html body:not(#cb) *{font-synthesis-weight:none !important}

/* ---------- Headings ---------- */
html body :is(h1,h2,h3):not(#cb):not(#cb){
  font-variation-settings:'opsz' 72 !important;
  text-wrap:balance !important;
  hyphens:none !important;
}
html body main h1:not(#cb):not(#cb){
  font-size:clamp(40px,4vw,60px) !important;
  line-height:1.06 !important;
  letter-spacing:-.012em !important;
}
html body main :is(h2.title,.cta-band h2,.about-closing h2,#opp-h,.tr-section h2,h2.ar-title,.contact-inquiry h2,.section-heading h2):not(#cb):not(#cb){
  font-size:clamp(32px,3.2vw,46px) !important;
  line-height:1.08 !important;
  letter-spacing:-.012em !important;
}
/* Everything in a heading except the accent follows the heading's style */
html body :is(h1,h2,h3) :is(em:not(.up),span:not(.up),strong):not(#cb):not(#cb){
  color:inherit !important;
  font-weight:inherit !important;
  font-style:inherit !important;
  letter-spacing:inherit !important;
}

/* The accent: the heading's italic "answer" (the mint/teal <em> in v403),
   now Red Hat Display Regular CAPITALS at 0.8x in Collabera gold. Wording unchanged.
   Gold #C39E61 on dark surfaces; a darker gold shade on light ones for contrast. */
html body :is(h1,h2,h3,p) .up:not(#cb):not(#cb){
  font-family:var(--cb-sans) !important;
  font-style:normal !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  text-transform:uppercase !important;
  letter-spacing:.01em !important;
  font-size:.8em !important;
  line-height:inherit !important;
  color:var(--cb-gold-light) !important;
}
html body :is(h1,h2,h3,p) .up *:not(#cb):not(#cb){font:inherit !important;letter-spacing:inherit !important;text-transform:inherit !important;color:inherit !important}
html body :is(h3,p) .up:not(#cb):not(#cb){color:var(--cb-gold-light-small) !important}
html body .up.cb-on-dark:not(#cb):not(#cb){color:var(--cb-gold-dark) !important}

/* ---------- Big numerals: upright ---------- */
html body .cb-num:not(#cb):not(#cb),
html body :is(.story-num,.tr-story-num,.case-result strong,.ar-year,.year,.arc-days,.tr-n,.tr-problem-metrics dt,.adoption-dashboard dd,.ar-stats dd,.econ-key dd):not(#cb):not(#cb),
html body #main .yield li::before,html body .yield li::before,html body .gcc-dbot-grid article::before{
  font-family:var(--cb-num) !important;
  font-style:normal !important;
  font-weight:300 !important;
}

/* Serif italic taglines and promise lines (e.g. "That's where we go to work")
   keep their v403 treatment: Newsreader italic in their own colour. */

/* Lead paragraphs: 18 / 1.4 */
html body main :is(.lead,.hero-sub,.h-lead,.lead-p,.body-large,.engines-lead,.sbe-intro,.prep-lead,.cb-lead):not(#cb):not(#cb){
  font-size:18px !important;
  line-height:1.4 !important;
}

/* Body copy on marketing pages: 1.5 line height (long-form articles keep
   their own 1.7–1.8 reading measure) */
html body main :is(p,li):not(#cb):not(#cb){
  hyphens:manual !important;
}
}
