/*
 * One hero for the four AI EHS product pages (2026-11-23):
 *   /ehs-management/ai-ptw/  ·  /ehs-management/ai-bbso-app/  ·  /ehs-management/ihazop-ai-hazop-software/
 *   /ehs-management/ai-hazard-identification-sitesense/  ·  /ehs-management/ai-hira-software/ (2026-11-24)
 * Each page keeps its own markup; the matching parts carry these classes:
 *   .ehs-hero (top spacing) > .ehs-hero__in (column) > [.ehs-kicker] .ehs-brand (.ehs-tm) .ehs-sub .ehs-lead .ehs-note .ehs-cta
 * so the product name, subtitle, text, buttons and their positions are identical on every page and switching
 * between them looks like one page changing its name. Loaded after each page's own stylesheet (index.json "styles").
 * Selectors start with the page ids so they beat the pages' own inline / !important rules.
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

/* ---------- spacing: product name always starts at the same height ---------- */
html body :is(#ai-ptw-embed .ehs-hero,#bbso-top.ehs-hero,#ihazop-page .ehs-hero,#sitesense-page .ehs-hero,#ai-hira-page .ehs-hero){padding-top:140px!important;padding-left:24px!important;padding-right:24px!important}
/* AI-SiteSense has a pill above the name: it sits in the same top space (72 + 44 pill + 24 gap = 140) */
html body :is(#sitesense-page,#ai-hira-page) .ehs-hero{padding-top:72px!important}
/* AI BBSO's own stylesheet sets its hero padding with two ids (#ai-bbso-light #bbso-top) */
html body #ai-bbso-light #bbso-top.ehs-hero{padding-top:140px!important}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-hero__in{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:0!important;max-width:1216px!important;margin-left:auto!important;margin-right:auto!important}

/* ---------- parts ---------- */
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-h1{margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:inherit!important;background:none!important;-webkit-text-fill-color:initial!important;font-size:inherit!important;line-height:inherit!important;letter-spacing:normal!important}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker{box-sizing:border-box!important;height:44px!important;margin:0!important;padding:0 20px!important;display:inline-flex!important;align-items:center!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker + .ehs-h1{margin-top:24px!important}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-brand{
  display:block!important;margin:0!important;padding:0 .06em 0 0!important;
  font-family:Lato,system-ui,sans-serif!important;font-size:clamp(64px,11vw,150px)!important;line-height:.95!important;font-weight:900!important;letter-spacing:-.05em!important;white-space:nowrap!important;
  background:linear-gradient(178deg,#14161e 35%,#2f6b50 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-brand span:not(.ehs-tm){letter-spacing:inherit!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-tm{
  display:inline-block!important;position:relative!important;top:.4em!important;vertical-align:top!important;margin-left:.06em!important;margin-right:-.86em!important; /* 2026-11-30: top of ™ = top of the capitals, close to the name; negative right margin keeps the name itself centred */
  font-size:.3em!important;line-height:1!important;letter-spacing:0!important;font-weight:900!important;
  color:#14161e!important;-webkit-text-fill-color:#14161e!important;background:none!important}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-sub{
  display:block!important;margin:20px 0 0!important;max-width:860px!important;
  font-family:Lato,system-ui,sans-serif!important;font-size:18px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:0!important;
  color:#14161e!important;-webkit-text-fill-color:#14161e!important;background:none!important;text-wrap:balance}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-lead{
  margin:26px 0 0!important;max-width:920px!important;
  font-family:Lato,system-ui,sans-serif!important;font-size:clamp(20px,2.2vw,26px)!important;line-height:1.45!important;font-weight:400!important;letter-spacing:0!important;
  color:#222530!important;text-wrap:balance}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-lead :is(strong,b){font-weight:700!important;color:#111218!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-lead *{font-size:inherit!important;font-family:inherit!important}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-note{
  margin:20px 0 0!important;max-width:720px!important;
  font-family:Lato,system-ui,sans-serif!important;font-size:16px!important;line-height:1.6!important;font-weight:400!important;letter-spacing:0!important;
  color:#515975!important;text-wrap:balance}

html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta{
  display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:14px!important;
  margin:32px 0 0!important;padding:0!important;width:auto!important;background:none!important;border:0!important;box-shadow:none!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:48px!important;height:auto!important;padding:0 28px!important;margin:0!important;border-radius:999px!important;
  font-family:Lato,system-ui,sans-serif!important;font-size:15px!important;font-weight:700!important;letter-spacing:0!important;line-height:1.2!important;text-decoration:none!important;white-space:nowrap!important;
  box-shadow:none!important;transition:background-color .15s,border-color .15s,color .15s}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a:first-child{background:#1f9a55!important;border:1px solid #1f9a55!important;color:#fff!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a:first-child:hover{background:#178246!important;border-color:#178246!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a:not(:first-child){background:transparent!important;border:1px solid rgba(20,22,30,.22)!important;color:#14161e!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a:not(:first-child):hover{border-color:rgba(20,22,30,.5)!important}

/* what follows the buttons inside the hero column keeps a fixed gap */
html body #ai-ptw-embed .ehs-hero__in > .ehs-cta ~ *,html body #bbso-top .ehs-hero__in > .ehs-cta ~ *{margin-top:56px!important}

/* ---------- phones: same rules, smaller, left-aligned (as AI PTW / AI-SiteSense already were) ---------- */
@media (max-width:760px){
  html body :is(#ai-ptw-embed .ehs-hero,#bbso-top.ehs-hero,#ihazop-page .ehs-hero,#sitesense-page .ehs-hero,#ai-hira-page .ehs-hero){padding-top:116px!important;padding-left:20px!important;padding-right:20px!important}
  html body :is(#sitesense-page,#ai-hira-page) .ehs-hero{padding-top:62px!important}  /* 62 + 36 pill + 18 gap = 116 */
  html body #ai-bbso-light #bbso-top.ehs-hero{padding-top:116px!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-hero__in{align-items:flex-start!important;text-align:left!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker{height:36px!important;padding:0 14px!important;font-size:12px!important;letter-spacing:.16em!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker + .ehs-h1{margin-top:18px!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-brand{font-size:56px!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-sub{margin-top:14px!important;font-size:16px!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-lead{margin-top:20px!important;font-size:19px!important;line-height:1.5!important;text-wrap:pretty}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-note{margin-top:16px!important;font-size:15px!important;text-wrap:pretty}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta{justify-content:flex-start!important;width:100%!important;margin-top:28px!important;gap:12px!important;flex-wrap:nowrap!important}
  html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-cta > a{flex:1 1 0!important;padding:0 14px!important}
  html body #ai-ptw-embed .ehs-hero__in > .ehs-cta ~ *,html body #bbso-top .ehs-hero__in > .ehs-cta ~ *{margin-top:40px!important}
}

/* One super headline style site-wide (2026-12-04): SiteSense / AI HIRA "INTRODUCING …" pill -> plain green Poppins text (inline styles in the page, hence !important) */
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker{height:auto!important;border:0!important;background:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important;font-family:Poppins,system-ui,sans-serif!important;font-size:14px!important;font-weight:600!important;letter-spacing:.06em!important;color:#1f9a55!important}
html body :is(#ai-ptw-embed,#bbso-top,#ihazop-page,#sitesense-page,#ai-hira-page) .ehs-kicker > span:first-child{display:none!important}
