/* ==========================================================================
   Injury Reporting & Documentation page
   Injury Care Associates — injurycareco.com
   Scoped under .irp. Tokens map to the site's Bootstrap custom properties;
   hex fallbacks are the live values so the page also works standalone.
   ========================================================================== */

.irp {
  --irp-primary: var(--bs-primary-hex, #0072bc);
  --irp-primary-dark: #005b96;
  --irp-navy: var(--bs-tertiary-hex, #1e2d3b);
  --irp-light: var(--bs-light-hex, #f2f8fc);
  --irp-ink: var(--bs-heading-color-hex, #212124);
  --irp-body: #495356;
  --irp-line: var(--bs-secondary-border-hex, #e7e7e7);
  --irp-accent: #80b7e3;
  --irp-warning: var(--bs-warning-hex, #ffd240);
  --irp-radius: var(--bs-border-radius, 10px);
  --irp-heading: 'Catamaran', sans-serif;
  --irp-body-font: 'Nunito Sans', system-ui, sans-serif;

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

.irp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
.irp-h1 { font-family: var(--irp-heading); font-weight: 800; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.irp-h2 { font-family: var(--irp-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; }
.irp-h3 { font-family: var(--irp-heading); font-weight: 800; font-size: 24px; line-height: 1.15; margin: 0 0 6px; }
.irp-kicker { font-family: var(--irp-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--irp-primary); margin: 0 0 10px; }
.irp-kicker--accent { color: var(--irp-accent); }
.irp-sub { font-size: 18px; line-height: 1.55; color: var(--irp-body); margin: 0; }
.irp-sub--lead { margin-bottom: 28px; max-width: 52ch; }
.irp-sub--sm { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.irp-sub--invert { color: var(--irp-light); margin-bottom: 18px; max-width: 54ch; }
.irp-head { max-width: 60ch; margin-bottom: 34px; }
.irp-fine { font-size: 14px; line-height: 1.5; color: var(--irp-body); margin: 20px 0 0; border-top: 1px solid var(--irp-line); padding-top: 16px; }

/* ---------- buttons ---------- */
.irp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--irp-body-font); font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: var(--irp-radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.irp-btn--lg { font-size: 17px; padding: 15px 26px; white-space: nowrap; }
.irp-btn--round { border-radius: 999px; font-weight: 600; font-size: 17px; }
.irp-btn--primary { background: var(--irp-primary); border-color: var(--irp-primary); color: #fff; box-shadow: 0 6px 18px rgba(0,114,188,.35); }
.irp-btn--primary:hover { background: var(--irp-primary-dark); border-color: var(--irp-primary-dark); color: #fff; }
.irp-btn--navy { background: var(--irp-navy); border-color: var(--irp-navy); color: #fff; }
.irp-btn--navy:hover { background: var(--irp-primary); border-color: var(--irp-primary); color: #fff; }
.irp-btn--outline-blue { background: transparent; border-color: var(--irp-primary); color: var(--irp-primary); box-shadow: none; }
.irp-btn--outline-blue:hover { background: var(--irp-primary); color: #fff; }
.irp-btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.irp-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.irp-btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

/* ---------- hero ---------- */
.irp-hero { position: relative; background: var(--irp-navy); color: #fff; overflow: hidden; }
.irp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.irp-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--irp-navy) 20%, rgba(30,45,59,.8) 70%, rgba(30,45,59,.5) 100%); }
.irp-hero__inner { position: relative; padding-top: 64px; padding-bottom: 60px; }
.irp-hero__lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--irp-light); max-width: 58ch; margin: 0 0 28px; }
.irp-hero__worker { display: inline-flex; font-size: 16px; color: var(--irp-accent); font-weight: 600; text-decoration: underline; }
.irp-hero__worker:hover { color: #fff; }

/* ---------- value band ---------- */
.irp-band { background: var(--irp-primary); color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.irp-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.irp-band__item { display: flex; gap: 12px; align-items: flex-start; }
.irp-band__n { font-family: var(--irp-heading); font-weight: 800; font-size: 26px; color: var(--irp-accent); line-height: 1; }
.irp-band__item b { display: block; font-weight: 700; font-size: 16px; }
.irp-band__item span:not(.irp-band__n) { display: block; font-size: 15px; color: var(--irp-accent); line-height: 1.4; }

/* ---------- sections ---------- */
.irp-sec { border-bottom: 1px solid var(--irp-line); }
.irp-sec > .irp-wrap { padding-top: 68px; padding-bottom: 68px; }
.irp-sec--light { background: var(--irp-light); }
.irp-sec--white { background: #fff; }
.irp-sec--navy { background: var(--irp-navy); color: #fff; border-bottom: 0; }
.irp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.irp-two--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.irp-sticky { position: sticky; top: 20px; }

/* ---------- steps timeline ---------- */
.irp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.irp-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.irp-step__rail { position: relative; display: flex; justify-content: center; }
.irp-step__n { width: 44px; height: 44px; border-radius: 50%; background: var(--irp-navy); color: #fff; font-family: var(--irp-heading); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; z-index: 1; }
.irp-step__rail::after { content: ''; position: absolute; top: 44px; bottom: -26px; width: 2px; background: #DCE3E8; }
.irp-step:last-child .irp-step__rail::after { display: none; }
.irp-step__body { padding-top: 8px; }
.irp-step__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 5px; }
.irp-step__title { font-family: var(--irp-heading); font-weight: 700; font-size: 20px; }
.irp-step__when { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--irp-primary); }
.irp-step__body p { font-size: 17px; line-height: 1.55; color: var(--irp-body); margin: 0; }

/* ---------- cards ---------- */
.irp-card { background: #fff; border: 1px solid var(--irp-line); border-radius: var(--irp-radius); padding: 28px; }
.irp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.irp-checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--irp-light); border: 1px solid var(--irp-line); border-radius: var(--irp-radius); padding: 12px 14px; font-size: 16px; line-height: 1.45; }
.irp-checks li::before { content: ''; flex: none; width: 18px; height: 18px; border: 2px solid var(--irp-navy); border-radius: 4px; margin-top: 2px; }
.irp-checks li span { color: var(--irp-body); }
.irp-card .irp-btn { margin-top: 18px; }

/* ---------- yellow band ---------- */
.irp-yellow { background: var(--irp-warning); overflow: hidden; }
.irp-yellow__inner { max-width: 1320px; margin: 0 auto; padding: 44px 24px; display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: center; }
.irp-yellow__doc { flex: 0 0 auto; width: 120px; height: 150px; background: #fff; border-radius: 6px; box-shadow: 0 10px 24px rgba(30,45,59,.22); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.irp-yellow__doc b { font-family: var(--irp-heading); font-weight: 800; font-size: 12px; line-height: 1.2; color: var(--irp-navy); }
.irp-yellow__lines { display: flex; flex-direction: column; gap: 4px; }
.irp-yellow__lines span { height: 4px; background: var(--irp-line); border-radius: 2px; }
.irp-yellow__lines span:nth-child(2) { width: 80%; }
.irp-yellow__lines span:nth-child(3) { width: 60%; }
.irp-yellow__doc small { font-size: 10px; font-weight: 700; color: var(--irp-primary); }
.irp-yellow__text { flex: 1 1 380px; min-width: 0; }
.irp-yellow__text h2 { font-family: var(--irp-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--irp-primary); margin: 0 0 10px; max-width: 26ch; }
.irp-yellow__text p { font-style: oblique; font-size: 16px; line-height: 1.5; color: var(--irp-primary); margin: 0; max-width: 62ch; }
.irp-yellow__actions { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.irp-yellow__actions .irp-btn { display: flex; }

/* ---------- claim file ---------- */
.irp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.irp-col { border-radius: var(--irp-radius); padding: 26px; border: 1px solid var(--irp-line); background: #fff; }
.irp-col--navy { background: var(--irp-navy); border-color: var(--irp-navy); color: #fff; }
.irp-col__kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; opacity: .8; }
.irp-col__title { font-family: var(--irp-heading); font-weight: 800; font-size: 24px; line-height: 1.15; margin: 0 0 16px; }
.irp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.irp-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.irp-col li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--irp-primary); }
.irp-col--navy li::before { background: var(--irp-accent); }
.irp-col li span { color: var(--irp-body); }
.irp-col--navy li span { color: var(--irp-light); }
.irp-note { margin-top: 18px; background: #fff; border: 1px solid var(--irp-line); border-radius: var(--irp-radius); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.irp-note p { font-size: 17px; line-height: 1.5; max-width: 70ch; margin: 0; }
.irp-note p b { font-family: var(--irp-heading); }
.irp-note .irp-btn { white-space: nowrap; }

/* ---------- FAQ ---------- */
.irp-faq__img { margin-top: 28px; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; border-radius: var(--irp-radius); overflow: hidden; background: var(--irp-light); border: 1px solid var(--irp-line); }
.irp-faq__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.irp-faq__list { border-top: 1px solid var(--irp-line); }
.irp-faq__item { border-bottom: 1px solid var(--irp-line); }
.irp-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 18px 0; cursor: pointer; font: inherit; color: var(--irp-navy); }
.irp-faq__q span { font-family: var(--irp-heading); font-weight: 700; font-size: 19px; line-height: 1.3; }
.irp-faq__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--irp-light); color: var(--irp-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: transform .18s, background-color .18s; }
.irp-faq__q[aria-expanded="true"] .irp-faq__icon { background: var(--irp-primary); color: #fff; transform: rotate(45deg); }
.irp-faq__a { display: none; }
.irp-faq__a p { font-size: 17px; line-height: 1.55; color: var(--irp-body); margin: 0 0 20px; }
.irp-faq__item.is-open .irp-faq__a { display: block; }

/* ---------- workers ---------- */
.irp-points { display: flex; flex-direction: column; gap: 10px; }
.irp-point { background: rgba(255,255,255,.06); border: 1px solid rgba(128,183,227,.3); border-radius: var(--irp-radius); padding: 16px 18px; }
.irp-point b { display: block; font-family: var(--irp-heading); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.irp-point span { font-size: 16px; line-height: 1.5; color: var(--irp-light); }

/* ---------- motion ---------- */
@keyframes irpHeroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes irpSlideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.irp-anim { animation: irpHeroIn .7s cubic-bezier(.2,.7,.3,1) both; }
.irp-anim--1 { animation-duration: .6s; }
.irp-anim--2 { animation-delay: .08s; }
.irp-anim--3 { animation-delay: .16s; }
.irp-anim--4 { animation-delay: .24s; }
html.js-reveal .irp [data-reveal] { opacity: 0; }
html.js-reveal .irp [data-reveal].is-shown { opacity: 1; animation: irpSlideUp .55s cubic-bezier(.2,.7,.3,1) both; }
html.js-reveal .irp [data-reveal].is-shown.no-anim { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .irp *, .irp *::before, .irp *::after { animation: none !important; transition: none !important; }
  html.js-reveal .irp [data-reveal] { opacity: 1; }
}
@media print {
  .irp [data-reveal] { opacity: 1 !important; animation: none !important; }
  .irp-faq__a { display: block !important; }
}


/* ======================================================================
   ICA build additions — appended, never merged (append-only CSS rule).
   ====================================================================== */

/* --- reveal fail-open ---------------------------------------------------
   The site's SAL leaves [data-sal] at opacity:0 when its observer does not
   fire, and the design's own reveal hides content behind html.js-reveal.
   Neither is loaded here; guarantee the design's [data-reveal] blocks and
   .irp-anim entrance classes are always visible. */
.irp [data-reveal], .irp .irp-anim { opacity: 1 !important; transform: none !important; animation: none !important; }

/* --- theme collision: heading colour --------------------------------------
   The design sets colour on inverted sections and lets headings inherit; the
   ICA theme sets `color` on h1/h2/h3 directly, and a direct rule beats an
   inherited value. Restate the design's intent, scoped to inverted contexts. */
.irp-hero .irp-h1, .irp-hero .irp-hero__lede, .irp-hero .irp-kicker, .irp-hero .irp-hero__link, .irp-hero .irp-hero__worker { color: #fff; }
.irp-sec--navy .irp-h2, .irp-sec--navy .irp-h3, .irp-sec--navy .irp-sub { color: #fff; }
.irp-band__item b, .irp-point b { color: #fff; }
.irp-card--navy .irp-h3, .irp-card--navy .irp-list, .irp-col--navy .irp-col__title, .irp-col--navy ul { color: #fff; }

/* --- band numbering as a CSS counter ---------------------------------------
   MODX has no lpad modifier; a counter renumbers if an editor reorders rows. */
.irp-band__grid { counter-reset: irpband; }
.irp-band__item { counter-increment: irpband; }
.irp-band__n::before { content: counter(irpband, decimal-leading-zero); }
.irp-steps { counter-reset: irpstep; }
.irp-step { counter-increment: irpstep; }
.irp-step__n::before, .irp-step__num::before { content: counter(irpstep, decimal-leading-zero); }

/* --- free-text body region ([[*content]]) ----------------------------- */
.irp-freetext { font-size: 16px; line-height: 1.6; color: #495356; }
.irp-freetext p:last-child { margin-bottom: 0; }
