/* ==========================================================================
   Job Site First Aid & Injury Evaluation — Injury Care Associates
   Scoped under .jobsite. Tokens map to the site's Bootstrap custom properties;
   hex fallbacks are the live values so the page also works standalone.
   Matches the conventions used by css/onsite.css (Onsite Services overview).
   ========================================================================== */

.jobsite {
  --jf-primary: var(--bs-primary-hex, #0072bc);
  --jf-primary-dark: #005b96;
  --jf-navy: var(--bs-tertiary-hex, #1e2d3b);
  --jf-light: var(--bs-light-hex, #f2f8fc);
  --jf-panel: #f8fbfd;
  --jf-ink: var(--bs-heading-color-hex, #212124);
  --jf-body: #495356;
  --jf-muted: #7b878b;
  --jf-line: var(--bs-secondary-border-hex, #e7e7e7);
  --jf-line-soft: #d8e3ea;
  --jf-accent: #80b7e3;
  --jf-pale: #dbe7f0;
  --jf-pale-2: #e4eef6;
  --jf-dim: #a9bfd0;
  --jf-warning: var(--bs-warning-hex, #ffd240);
  --jf-warning-dark: #f5c51e;
  --jf-green: #2e9e5b;
  --jf-red: #c0392b;
  --jf-radius: var(--bs-border-radius, 10px);
  --jf-radius-lg: 14px;
  --jf-radius-xl: 16px;
  --jf-heading: 'Catamaran', sans-serif;
  --jf-body-font: 'Nunito Sans', system-ui, sans-serif;
  --jf-ease: cubic-bezier(.2,.7,.3,1);

  font-family: var(--jf-body-font);
  color: var(--jf-ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.jobsite *, .jobsite *::before, .jobsite *::after { box-sizing: border-box; }
.jobsite img { max-width: 100%; }
.jobsite a { color: var(--jf-navy); }
.jobsite a:hover { color: var(--jf-primary); }

.jf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.jf-sec { border-bottom: 1px solid var(--jf-line); }
.jf-sec > .jf-wrap { padding-top: 72px; padding-bottom: 72px; }
.jf-sec--white { background: #fff; }
.jf-sec--light { background: var(--jf-light); }
.jf-sec--navy { background: var(--jf-navy); color: #fff; border-bottom: 0; }

/* ---------- type ---------- */
.jf-kicker { font-family: var(--jf-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--jf-primary); margin: 0 0 10px; }
.jf-kicker--accent { color: var(--jf-accent); }
.jf-kicker--navy { color: var(--jf-navy); margin-bottom: 8px; }
.jf-h1 { font-family: var(--jf-heading); font-weight: 800; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.022em; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.jf-h2 { font-family: var(--jf-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.jf-h2--gap { margin-bottom: 14px; }
.jf-sub { font-size: 18px; line-height: 1.55; color: var(--jf-body); margin: 0; }
.jf-sub + .jf-sub { margin-top: 14px; }
.jf-sub--md { font-size: 17px; }
.jf-sub--invert { color: var(--jf-pale); }
.jf-sub--ink { color: var(--jf-ink); }
.jf-muted { color: var(--jf-muted); }
.jf-head { max-width: 60ch; }
.jf-head--gap { margin-bottom: 30px; }
.jf-max16 { max-width: 16ch; } .jf-max17 { max-width: 17ch; } .jf-max18 { max-width: 18ch; }
.jf-max20 { max-width: 20ch; } .jf-max22 { max-width: 22ch; }
.jf-max46 { max-width: 46ch; } .jf-max48 { max-width: 48ch; }
.jf-max52 { max-width: 52ch; } .jf-max56 { max-width: 56ch; }
.jf-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
.jf-split--start { align-items: start; }
.jf-split--center { align-items: center; }
.jf-split--end { align-items: end; gap: 24px 56px; margin-bottom: 34px; }
.jf-fineprint { font-size: 14px; line-height: 1.5; color: var(--jf-body); margin: 18px 0 0; }
.jf-fineprint strong { color: var(--jf-navy); }
.jf-arrowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--jf-primary); text-decoration: none; transition: gap .18s var(--jf-ease), color .18s; }
.jf-arrowlink:hover { gap: 14px; color: var(--jf-primary-dark); }
.jf-arrowlink--warning { color: var(--jf-warning); }
.jf-arrowlink--warning:hover { color: #fff; }

/* ---------- buttons ---------- */
.jf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--jf-body-font); font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: var(--jf-radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.jf-btn--lg { font-size: 17px; padding: 16px 28px; }
.jf-btn--primary { background: var(--jf-primary); border-color: var(--jf-primary); color: #fff; }
.jf-btn--primary:hover { background: var(--jf-primary-dark); border-color: var(--jf-primary-dark); color: #fff; }
.jf-btn--shadow { box-shadow: 0 10px 26px rgba(0,114,188,.4); }
.jf-btn--lift:hover { transform: translateY(-2px); }
.jf-btn--shadow.jf-btn--lift:hover { box-shadow: 0 14px 32px rgba(0,114,188,.5); }
.jf-btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.jf-btn--ghost:hover { border-color: var(--jf-warning); color: var(--jf-warning); background: rgba(255,210,64,.08); }
.jf-btn--outline-navy { background: transparent; border-color: var(--jf-navy); color: var(--jf-navy); }
.jf-btn--outline-navy:hover { background: var(--jf-navy); color: #fff; }
.jf-btn--block { display: flex; width: 100%; }
.jf-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.jf-hero { position: relative; display: flex; align-items: center; min-height: min(86vh, 720px); background: var(--jf-navy); color: #fff; overflow: hidden; }
.jf-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; animation: jfDrift 26s ease-in-out infinite alternate; }
.jf-hero__video { z-index: 1; }
.jf-hero__scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(30,45,59,.96) 0%, rgba(30,45,59,.88) 42%, rgba(30,45,59,.42) 78%, rgba(30,45,59,.55) 100%); }
.jf-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2; background: linear-gradient(180deg, rgba(30,45,59,0) 0%, rgba(30,45,59,.85) 100%); }
.jf-hero__inner { position: relative; z-index: 3; width: 100%; padding-top: 96px; padding-bottom: 104px; }
.jf-hero__copy { max-width: 660px; }
.jf-hero__lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--jf-pale); max-width: 52ch; margin: 0 0 30px; }

.jf-pill { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); font-family: var(--jf-heading); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #cfe3f3; }
.jf-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jf-warning); animation: jfPulse 2.2s ease-out infinite; }
.jf-pill__sep { opacity: .5; }

.jf-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.jf-hero__facts li { position: relative; padding-left: 15px; font-family: var(--jf-heading); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--jf-pale-2); }
.jf-hero__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--jf-warning); }

.jf-scrollhint { position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.7); font-family: var(--jf-heading); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; animation: jfScrollHint 2.4s ease-in-out infinite; }
.jf-scrollhint__arrow { font-size: 16px; line-height: 1; }

/* hero entrance stagger */
.jf-hero__copy > * { animation: jfIn .75s var(--jf-ease) both; }
.jf-hero__copy > .jf-pill { animation-delay: 0s; }
.jf-hero__copy > .jf-h1 { animation-delay: .08s; }
.jf-hero__copy > .jf-hero__lede { animation-delay: .18s; }
.jf-hero__copy > .jf-btnrow { animation-delay: .28s; }
.jf-hero__copy > .jf-hero__facts { animation-delay: .38s; }

/* ---------- step tabs ---------- */
.jf-steps { border: 1px solid var(--jf-line); border-radius: var(--jf-radius-xl); overflow: hidden; background: #fff; }
.jf-steps__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-bottom: 1px solid var(--jf-line); }
.jf-step { position: relative; display: flex; align-items: center; gap: 13px; text-align: left; font: inherit; cursor: pointer; border: 0; border-right: 1px solid var(--jf-line); padding: 20px 20px 22px; background: #fff; transition: background-color .2s; }
.jf-step:last-child { border-right: 0; }
.jf-step__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--jf-heading); font-weight: 800; font-size: 16px; background: #eef4f8; color: var(--jf-muted); transition: background-color .2s, color .2s; }
.jf-step__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jf-step__when { font-family: var(--jf-heading); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--jf-primary); }
.jf-step__short { font-family: var(--jf-heading); font-weight: 800; font-size: 16px; line-height: 1.2; color: var(--jf-navy); }
.jf-step__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.jf-step[aria-selected="true"] { background: var(--jf-panel); }
.jf-step[aria-selected="true"] .jf-step__num { background: var(--jf-navy); color: var(--jf-warning); }
.jf-step[aria-selected="true"] .jf-step__prog { background: var(--jf-primary); }

.jf-steps__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; padding: 36px 34px 38px; background: var(--jf-panel); }
.jf-steps__panel[hidden] { display: none; }
.jf-steps__title { font-family: var(--jf-heading); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 12px; }
.jf-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.jf-role { background: #fff; border: 1px solid var(--jf-line); border-radius: var(--jf-radius); padding: 18px 20px; }
.jf-role--ica { background: var(--jf-navy); border-color: var(--jf-navy); }
.jf-role__label { font-family: var(--jf-heading); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--jf-body); margin: 0 0 7px; }
.jf-role--ica .jf-role__label { color: var(--jf-warning); }
.jf-role__body { font-size: 15px; line-height: 1.5; color: var(--jf-ink); margin: 0; }
.jf-role--ica .jf-role__body { color: var(--jf-pale-2); }

/* ---------- scope of care ---------- */
.jf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jf-chip { font: inherit; font-family: var(--jf-heading); font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; border-radius: 999px; padding: 11px 20px; border: 1px solid var(--jf-line-soft); background: #fff; color: var(--jf-navy); transition: background-color .18s, border-color .18s, color .18s; }
.jf-chip:hover { border-color: var(--jf-primary); color: var(--jf-primary); }
.jf-chip[aria-selected="true"] { background: var(--jf-navy); border-color: var(--jf-navy); color: #fff; }
.jf-panel { background: #fff; border: 1px solid var(--jf-line); border-radius: var(--jf-radius-lg); padding: 30px 32px 34px; }
.jf-panel[hidden] { display: none; }
.jf-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.jf-panel__title { font-family: var(--jf-heading); font-weight: 800; font-size: 24px; line-height: 1.2; margin: 0; }
.jf-panel__note { font-size: 15px; line-height: 1.5; color: var(--jf-body); margin: 0; max-width: 52ch; }
.jf-checks { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--jf-line); list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; }
.jf-checks li { position: relative; padding-left: 31px; font-size: 16px; line-height: 1.45; }
.jf-checks li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--jf-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* ---------- outcomes ---------- */
.jf-outcomes { display: flex; flex-direction: column; gap: 10px; }
.jf-outcome { display: grid; grid-template-columns: 5px minmax(0, 1fr); border: 1px solid var(--jf-line); border-radius: var(--jf-radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.jf-outcome:hover { transform: translateX(4px); box-shadow: 0 10px 26px rgba(30,45,59,.1); }
.jf-outcome::before { content: ""; display: block; }
.jf-outcome--green::before { background: var(--jf-green); }
.jf-outcome--blue::before { background: var(--jf-primary); }
.jf-outcome--red::before { background: var(--jf-red); }
.jf-outcome__body { padding: 20px 22px; }
.jf-outcome__title { font-family: var(--jf-heading); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 5px; }
.jf-outcome__text { font-size: 15px; line-height: 1.5; color: var(--jf-body); margin: 0; }

/* ---------- OSHA table ---------- */
.jf-seg { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin-bottom: 14px; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); }
.jf-seg__btn { font: inherit; font-family: var(--jf-heading); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: #cfe3f3; transition: background-color .18s, color .18s; }
.jf-seg__btn.is-active { background: var(--jf-warning); color: var(--jf-navy); }
.jf-osha { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.jf-osha__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--jf-radius); background: rgba(255,255,255,.06); font-size: 16px; line-height: 1.4; color: var(--jf-light); transition: background-color .2s, border-color .2s; }
.jf-osha__row:hover { background: rgba(255,255,255,.12); border-color: rgba(255,210,64,.5); }
.jf-osha__row[hidden] { display: none; }
.jf-tag { font-family: var(--jf-heading); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 5px 11px; border-radius: 999px; background: rgba(128,183,227,.22); color: #cfe3f3; }
.jf-tag--rec { background: var(--jf-warning); color: var(--jf-navy); }
.jf-osha__note { font-size: 14px; line-height: 1.5; color: var(--jf-dim); margin: 14px 0 0; }

/* ---------- benefits ---------- */
.jf-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.jf-benefit { position: relative; overflow: hidden; border: 1px solid var(--jf-line); border-radius: 12px; padding: 26px; transition: transform .22s, box-shadow .22s, border-color .22s; }
.jf-benefit:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(30,45,59,.12); border-color: var(--jf-primary); }
.jf-benefit__stat { font-family: var(--jf-heading); font-weight: 800; font-size: 38px; line-height: 1; color: var(--jf-primary); margin: 0 0 12px; }
.jf-benefit__title { font-family: var(--jf-heading); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.jf-benefit__body { font-size: 15px; line-height: 1.5; color: var(--jf-body); margin: 0; }

/* ---------- FAQ ---------- */
.jf-faq__lede { max-width: 40ch; margin-bottom: 26px; }
.jf-faq { display: flex; flex-direction: column; gap: 8px; }
.jf-faq__item { background: #fff; border: 1px solid var(--jf-line); border-radius: var(--jf-radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.jf-faq__item.is-open { border-color: var(--jf-primary); box-shadow: 0 10px 28px rgba(0,114,188,.12); }
.jf-faq__h { margin: 0; }
.jf-faq__btn { width: 100%; display: flex; gap: 16px; align-items: center; justify-content: space-between; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; font-family: var(--jf-heading); font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--jf-navy); transition: color .2s; }
.jf-faq__btn:hover { color: var(--jf-primary); }
.jf-faq__icon { flex: none; font-family: var(--jf-heading); font-weight: 700; font-size: 26px; line-height: 1; color: var(--jf-primary); transition: transform .25s; }
.jf-faq__btn[aria-expanded="true"] .jf-faq__icon { transform: rotate(45deg); }
.jf-faq__a { padding: 0 20px 20px; animation: jfIn .3s ease both; }
.jf-faq__a[hidden] { display: none; }
.jf-faq__a p { font-size: 16px; line-height: 1.6; color: var(--jf-body); margin: 0; max-width: 70ch; }

/* ---------- video thumbnail ---------- */
.jf-thumb { display: block; position: relative; width: 100%; max-width: 440px; padding: 0; border: 1px solid var(--jf-line-soft); border-radius: var(--jf-radius-lg); overflow: hidden; background: var(--jf-navy); cursor: pointer; transition: transform .22s, box-shadow .22s; }
.jf-thumb:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,45,59,.18); }
.jf-thumb__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% center; opacity: .72; }
.jf-thumb__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,45,59,.1) 30%, rgba(30,45,59,.85) 100%); }
.jf-thumb__disc { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: var(--jf-warning); display: flex; align-items: center; justify-content: center; animation: jfPulse 2.4s ease-out infinite; }
.jf-thumb__tri { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--jf-navy); margin-left: 4px; }
.jf-thumb__caption { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 16px 18px; text-align: left; }
.jf-thumb__eyebrow { display: block; font-family: var(--jf-heading); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--jf-warning); margin-bottom: 4px; }
.jf-thumb__title { display: block; font-family: var(--jf-heading); font-weight: 800; font-size: 19px; line-height: 1.2; color: #fff; }

/* ---------- video modal ---------- */
.jf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(30,45,59,.93); animation: jfIn .25s ease both; }
.jf-modal[hidden] { display: none; }
.jf-modal__frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: var(--jf-radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.jf-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jf-modal__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--jf-warning); color: var(--jf-ink); border: 0; font-size: 26px; line-height: 1; font-weight: 700; cursor: pointer; }
.jf-modal__close:hover { background: var(--jf-warning-dark); }

/* ---------- CTA band ---------- */
.jf-cta { background: var(--jf-warning); overflow: hidden; }
.jf-cta__inner { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; padding-top: 60px; padding-bottom: 60px; }
.jf-cta__copy { flex: 1 1 380px; min-width: 0; }
.jf-cta__copy .jf-h2 { color: var(--jf-navy); }
.jf-cta__actions { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- scroll reveal ----------
   Hidden state is applied by JS only when an IntersectionObserver is available
   and the document is visible, so no-JS / hidden-tab / print all render fully. */
.jf-reveal-init { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--jf-ease), transform .6s var(--jf-ease); }
.jf-reveal-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes jfIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes jfDrift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.16) translate3d(-2%,-1.5%,0); } }
@keyframes jfPulse { 0% { box-shadow: 0 0 0 0 rgba(255,210,64,.55); } 70% { box-shadow: 0 0 0 14px rgba(255,210,64,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,64,0); } }
@keyframes jfScrollHint { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(7px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .jobsite *, .jobsite *::before, .jobsite *::after { animation: none !important; transition: none !important; }
  .jf-reveal-init { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .jf-hero { min-height: 0; }
  .jf-hero__inner { padding-top: 72px; padding-bottom: 80px; }
  .jf-scrollhint { display: none; }
  .jf-step { border-right: 0; border-bottom: 1px solid var(--jf-line); }
  .jf-steps__panel { padding: 28px 22px 30px; }
  .jf-panel { padding: 24px 22px 26px; }
}
@media (max-width: 560px) {
  .jf-sec > .jf-wrap { padding-top: 52px; padding-bottom: 52px; }
  .jf-btnrow .jf-btn { width: 100%; }
}

/* === job-site-first-aid — appended for MODX and the live theme ======== */
/* Everything above is the design stylesheet, shipped in full and unedited
   (BUILD-RECIPE: "Ship the design CSS in full"). Rules below only adapt it to
   the theme and to content that now comes from TVs. */

/* The theme colours h1..h6 directly, which beats the design's inherited colour:
   the hero H1 and the navy OSHA H2 would render #212124 on navy. Restore
   inheritance, then restate the headings the design colours on white. */
.jobsite .jf-h1,
.jobsite .jf-h2,
.jobsite .jf-steps__title,
.jobsite .jf-panel__title,
.jobsite .jf-outcome__title,
.jobsite .jf-benefit__title { color: inherit; }
.jobsite .jf-faq__h { color: inherit; font-size: inherit; }
.jobsite .jf-sec--white .jf-h2,
.jobsite .jf-sec--light .jf-h2,
.jobsite .jf-cta .jf-h2 { color: var(--jf-navy); }
/* The design maps --jf-ink to --bs-heading-color-hex; on this theme that is the
   text colour, which is what the design wants for ink, so it stays. */

/* `.jobsite a` (0,1,1) outranks every single-class button rule (0,1,0), so
   without this the primary buttons render navy text on blue and the ghost
   button navy on navy (BUILD-RECIPE: the case-studies / articles trap). */
.jobsite a.jf-btn--primary,
.jobsite a.jf-btn--primary:hover { color: #fff; }
.jobsite a.jf-btn--ghost { color: #fff; }
.jobsite a.jf-btn--ghost:hover { color: var(--jf-warning); }
.jobsite a.jf-btn--outline-navy { color: var(--jf-navy); }
.jobsite a.jf-btn--outline-navy:hover { color: #fff; }
.jobsite a.jf-arrowlink { color: var(--jf-primary); }
.jobsite a.jf-arrowlink:hover { color: var(--jf-primary-dark); }
.jobsite a.jf-btn, .jobsite a.jf-arrowlink, .jobsite a.jf-thumb { text-decoration: none; }

/* Richtext TVs (content, types-content, form-content, middle-content) emit their
   own <p>. They render inside a div, so restate the paragraph styling the design
   put on its <p> elements. */
.jobsite .jf-freetext > p { font: inherit; color: inherit; margin: 0; }
.jobsite .jf-freetext > p + p { margin-top: 14px; }
.jobsite .jf-fineprint.jf-freetext > p + p { margin-top: 6px; }
.jobsite .jf-fineprint b,
.jobsite .jf-fineprint strong { color: var(--jf-navy); }
.jobsite .jf-sub--invert.jf-freetext a { color: var(--jf-warning); }
.jobsite .jf-eval__link { margin: 18px 0 0; }
.jobsite .jf-faq__a > p + p { margin-top: .75em; }
.jobsite .jf-checks { margin-top: 0; }

/* Outcome colour bar by position (row 1 back to work, 2 clinic, 3 emergency). */
.jf-outcome--n1::before { background: var(--jf-green); }
.jf-outcome--n2::before { background: var(--jf-primary); }
.jf-outcome--n3::before { background: var(--jf-red); }

/* Fail open without JS: every step panel, scope panel and FAQ answer renders,
   stacked, and the controls that only make sense with the script are hidden.
   jobsite.js adds .jf-js to the root before it hides anything. */
.jobsite:not(.jf-js) .jf-js-only,
.jobsite:not(.jf-js) .jf-steps__tabs,
.jobsite:not(.jf-js) .jf-chips { display: none; }
.jobsite:not(.jf-js) .jf-steps__panel + .jf-steps__panel { border-top: 1px solid var(--jf-line); }
.jobsite:not(.jf-js) .jf-panel + .jf-panel { margin-top: 14px; }
.jobsite:not(.jf-js) .jf-faq__icon { display: none; }
.jobsite [hidden] { display: none !important; }
.jf-step:focus-visible, .jf-chip:focus-visible, .jf-seg__btn:focus-visible, .jf-faq__btn:focus-visible { outline: 2px solid var(--jf-primary); outline-offset: 2px; }
.jf-sec--navy .jf-seg__btn:focus-visible { outline-color: var(--jf-warning); }

/* The video thumbnail is a link (site GLightbox), not the design's button. */
.jobsite a.jf-thumb { color: #fff; }
.jobsite a.jf-thumb:focus-visible { outline: 3px solid var(--jf-primary); outline-offset: 3px; }

/* GLightbox video slide sizing — the design's own modal is not shipped.
   .glightbox-container is a body child outside main.jobsite, so tokens are
   redeclared from the theme variables. Same values as onsite.css. */
.glightbox-container .goverlay { background: rgba(30, 45, 59, .94) !important; backdrop-filter: blur(4px); }
.glightbox-container .gslide-media { border-radius: var(--bs-border-radius, 10px) !important; overflow: hidden !important; background: #000 !important; }
.glightbox-container .gprev,
.glightbox-container .gnext { display: none !important; }
@media (min-width: 768px) {
  .glightbox-container .gslide-media { width: 80vw !important; max-width: 80vw !important; max-height: 80vh !important; }
  .glightbox-container .gslide-media .gvideo-wrapper { width: 100% !important; max-width: 100% !important; }
}
