/* One typeface across dright.net: Plus Jakarta Sans (same as the homepage and the MGW page).
   The navbar keeps DM Sans, exactly like the homepage and MGW navbars. The admin area is left as is.
   Added to every app page by nginx, so app deploys do not remove it. */
html body:not(.admin),
html body:not(.admin) *:not(svg):not(svg *) {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
html body:not(.admin) .topline,
html body:not(.admin) .topline *:not(svg):not(svg *),
html body:not(.admin) .site-header,
html body:not(.admin) .site-header *:not(svg):not(svg *) {
  font-family: "DM Sans", sans-serif !important;
}

/* IntelliSist: the Safety card in "Swipe through the encounter" uses the normal card layout
   (it shared the .is-safety class with the "Graded responses" block) */
.scene.is-safety { display: block !important; grid-template-columns: none !important; gap: normal !important; }

/* Landing page footer:not(.drf) in the page's primary colour (IntelliSist) */
body.theme-intelli footer:not(.drf) { background: #103b2e !important; color: rgba(232, 240, 235, .75) !important; border-top-color: transparent !important; }
body.theme-intelli footer:not(.drf) a, body.theme-intelli footer:not(.drf) span, body.theme-intelli footer:not(.drf) p { color: rgba(232, 240, 235, .82) !important; }
body.theme-intelli footer:not(.drf) h3, body.theme-intelli footer:not(.drf) strong { color: #fff !important; }
body.theme-intelli footer:not(.drf) [class*="bottom"] { border-color: rgba(255, 255, 255, .14) !important; color: rgba(232, 240, 235, .6) !important; }
body.theme-intelli { --mfaq-ink: #103b2e; --mfaq-accent: #0b7a42; }

/* Heading sizes in line with the MGW page */
html body:not(.admin) .bold-h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.8rem) !important; line-height: 1.04 !important; }
html body:not(.admin) .bold-h2 { font-size: clamp(1.95rem, 1.3rem + 2.3vw, 3.15rem) !important; line-height: 1.06 !important; }

/* Developer review tool ("Show content gaps") is not shown to visitors */
.wb-gap-toggle { display: none !important; }
body.show-gaps [data-gap] { outline: none !important; }
body.show-gaps [data-gap]::before, body.show-gaps [data-gap]::after { display: none !important; }

/* IntelliSist hero in the MGW pattern */
html body.theme-intelli .intelli-hero .bold-kicker { display: flex !important; align-items: center; gap: 14px; background: none !important; border: 0 !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; font-weight: 600 !important; color: #0b7a42 !important; }
html body.theme-intelli .intelli-hero .bold-kicker::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
html body.theme-intelli .intelli-hero .bold-h1 { font-size: clamp(2.6rem, 1.4rem + 3.2vw, 4.4rem) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; max-width: 13ch; }
html body.theme-intelli .intelli-hero .bold-hero-lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem) !important; line-height: 1.6 !important; max-width: 44ch; }
