/* Care Beyond 9–5 — Injury Care Associates. All rules scoped under .cb. */
.cb {
  --cb-primary: var(--bs-primary-hex, #0072bc); --cb-primary-dark: #005b96;
  --cb-navy: var(--bs-tertiary-hex, #1e2d3b); --cb-navy-deep: #131e28; --cb-panel: #182631;
  --cb-light: var(--bs-light-hex, #f2f8fc); --cb-ink: var(--bs-heading-color-hex, #212124);
  --cb-body: #495356; --cb-line: var(--bs-secondary-border-hex, #e7e7e7);
  --cb-accent: #80b7e3; --cb-warning: var(--bs-warning-hex, #ffd240);
  --cb-danger: #c0392b; --cb-radius: var(--bs-border-radius, 10px);
  --cb-heading: 'Catamaran', sans-serif; --cb-body-font: 'Nunito Sans', system-ui, sans-serif;
  font-family: var(--cb-body-font); color: var(--cb-ink); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.cb *, .cb *::before, .cb *::after { box-sizing: border-box; }
.cb img { max-width: 100%; }
.cb a:not([class]) { color: var(--cb-navy); } .cb a:not([class]):hover { color: var(--cb-primary); }
.cb button { font: inherit; }
.cb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cb-sec__inner { padding-top: 72px; padding-bottom: 72px; }

/* Type */
.cb-h1 { font-family: var(--cb-heading); font-weight: 800; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.022em; margin: 0 0 20px; max-width: 15ch; text-wrap: balance; }
.cb-h2 { font-family: var(--cb-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; }
.cb-h2--tight { max-width: 18ch; margin-bottom: 0; }
.cb-h2--ink { color: var(--cb-navy); max-width: 22ch; }
.cb-kicker { font-family: var(--cb-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-primary); margin: 0 0 10px; }
.cb-kicker--accent { color: var(--cb-accent); }
.cb-kicker--ink { color: var(--cb-navy); margin-bottom: 8px; }
.cb-sub { font-size: 17px; line-height: 1.55; color: var(--cb-body); margin: 0; max-width: 54ch; }
.cb-sub--invert { color: #a9bfd0; max-width: 52ch; }
.cb-sub--narrow { max-width: 40ch; margin-bottom: 24px; }
.cb-note { font-size: 14px; line-height: 1.5; color: var(--cb-body); margin: 18px 0 0; }
.cb-note--invert { color: #a9bfd0; margin-top: 16px; }
.cb-head--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; align-items: end; margin-bottom: 30px; }
.cb-head--narrow { max-width: 60ch; margin-bottom: 30px; }
.cb-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--cb-primary); text-decoration: none; transition: gap .18s, color .18s; }
.cb-link:hover { color: var(--cb-primary-dark); gap: 14px; }

/* Buttons */
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 14px 26px; border-radius: var(--cb-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; }
.cb-btn--primary { background: var(--cb-primary); border-color: var(--cb-primary); color: #fff; box-shadow: 0 10px 26px rgba(0,114,188,.4); }
.cb-btn--primary:hover { background: var(--cb-primary-dark); border-color: var(--cb-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,114,188,.5); }
.cb-btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cb-btn--ghost:hover { border-color: var(--cb-warning); color: var(--cb-warning); background: rgba(255,210,64,.08); }
.cb-btn--ink { background: transparent; border-color: var(--cb-navy); color: var(--cb-navy); }
.cb-btn--ink:hover { background: var(--cb-navy); color: #fff; }
.cb-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.cb-hero { position: relative; background: var(--cb-navy-deep); color: #fff; overflow: hidden; min-height: min(86vh, 720px); display: flex; align-items: center; }
.cb-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; filter: saturate(.75) brightness(.62); animation: cbDrift 26s ease-in-out infinite alternate; }
.cb-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,30,40,.97) 0%, rgba(19,30,40,.9) 44%, rgba(19,30,40,.5) 80%, rgba(19,30,40,.7) 100%); }
.cb-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(19,30,40,0) 0%, rgba(19,30,40,.9) 100%); }
.cb-hero__inner { position: relative; width: 100%; padding-top: 96px; padding-bottom: 104px; }
.cb-hero__col { max-width: 680px; }
.cb-hero__lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #dbe7f0; max-width: 53ch; margin: 0 0 30px; }
.cb-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 16px 7px 12px; font-family: var(--cb-heading); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #cfe3f3; margin: 0 0 18px; }
.cb-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cb-warning); animation: cbPulse 2.2s ease-out infinite; }
.cb-pill__sep { opacity: .5; }
.cb-hero__facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cb-hero__facts li { position: relative; padding-left: 15px; font-family: var(--cb-heading); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: #e4eef6; }
.cb-hero__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cb-warning); }
.cb-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.7); font-family: var(--cb-heading); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; animation: cbScrollHint 2.4s ease-in-out infinite; }
.cb-scroll__arrow { font-size: 16px; line-height: 1; }

/* Sections */
.cb-sec { border-bottom: 1px solid var(--cb-line); }
.cb-sec--white { background: #fff; }
.cb-sec--light { background: var(--cb-light); }
.cb-sec--navy { background: var(--cb-navy-deep); color: #fff; border-bottom: 0; }
.cb-sec--navy .cb-sec__inner { padding-top: 76px; padding-bottom: 76px; }
.cb-grid { display: grid; gap: 14px; }
.cb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.cb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards */
.cb-card { background: #fff; border: 1px solid var(--cb-line); border-radius: 12px; padding: 26px; transition: transform .22s, box-shadow .22s, border-color .22s; }
.cb-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(30,45,59,.12); border-color: var(--cb-primary); }
.cb-card__tag { font-family: var(--cb-heading); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-danger); margin: 0 0 12px; }
.cb-card__title { font-family: var(--cb-heading); font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0 0 7px; }
.cb-card__body { font-size: 15px; line-height: 1.55; color: var(--cb-body); margin: 0; }
.cb-card--stat .cb-card__title { font-size: 19px; margin-bottom: 6px; }
.cb-stat { font-family: var(--cb-heading); font-weight: 800; font-size: 38px; line-height: 1; color: var(--cb-primary); margin: 0 0 12px; }

/* Coverage clock */
.cb-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px; margin-bottom: 22px; width: fit-content; max-width: 100%; }
.cb-tab { font-family: var(--cb-heading); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: #cfe3f3; transition: background-color .18s, color .18s; }
.cb-tab.is-active { background: var(--cb-warning); color: var(--cb-navy); }
.cb-clock { display: flex; gap: 3px; align-items: flex-end; margin-bottom: 10px; }
.cb-hour { flex: 1 1 0; min-width: 0; border: 0; padding: 0; cursor: pointer; border-radius: 4px; opacity: .42; transition: height .18s, opacity .18s, outline-color .18s; outline: 2px solid transparent; outline-offset: 2px; }
.cb-hour.is-active { opacity: 1; outline-color: #fff; }
.cb-hour--clinic { background: #2e9e5b; height: 64px; } .cb-hour--clinic.is-active { height: 78px; }
.cb-hour--early, .cb-hour--evening { background: var(--cb-primary); height: 46px; } .cb-hour--early.is-active, .cb-hour--evening.is-active { height: 60px; }
.cb-hour--weekend { background: #8e6bd1; height: 46px; } .cb-hour--weekend.is-active { height: 60px; }
.cb-hour--closed { background: #5a6b78; height: 26px; } .cb-hour--closed.is-active { height: 40px; }
.cb-clock__axis { display: flex; justify-content: space-between; font-family: var(--cb-heading); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7b909f; margin: 0 0 26px; }
.cb-panelgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
.cb-panel { background: var(--cb-panel); padding: 30px 30px 34px; }
.cb-panel__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.cb-panel__time { font-family: var(--cb-heading); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.02em; color: #fff; }
.cb-badge { font-family: var(--cb-heading); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: var(--cb-primary); color: #fff; }
.cb-badge--clinic { background: #2e9e5b; } .cb-badge--closed { background: #5a6b78; } .cb-badge--weekend { background: #8e6bd1; }
.cb-panel__title { font-family: var(--cb-heading); font-weight: 800; font-size: 20px; line-height: 1.25; margin: 0 0 8px; color: #fff; }
.cb-panel__body { font-size: 16px; line-height: 1.6; color: #c6d6e2; margin: 0; max-width: 44ch; }
.cb-panel__label { font-family: var(--cb-heading); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-warning); margin: 0 0 12px; }
.cb-rows { margin: 0; display: grid; gap: 12px; }
.cb-rows > div { display: grid; grid-template-columns: minmax(0, 10ch) minmax(0, 1fr); gap: 16px; align-items: baseline; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.cb-rows dt { font-family: var(--cb-heading); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-accent); }
.cb-rows dd { margin: 0; font-size: 15px; line-height: 1.5; color: #e4eef6; }

/* Shift patterns */
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cb-chip { font-family: var(--cb-heading); font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; border-radius: 999px; padding: 11px 20px; border: 1px solid #d8e3ea; background: #fff; color: var(--cb-navy); transition: background-color .18s, border-color .18s, color .18s; }
.cb-chip:hover { border-color: var(--cb-navy); }
.cb-chip.is-active { background: var(--cb-navy); border-color: var(--cb-navy); color: #fff; }
.cb-shift { background: #fff; border: 1px solid var(--cb-line); border-radius: 14px; padding: 30px 32px 34px; }
.cb-shift__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.cb-shift__title { font-family: var(--cb-heading); font-weight: 800; font-size: 24px; line-height: 1.2; margin: 0; }
.cb-shift__note { font-size: 15px; line-height: 1.5; color: var(--cb-body); margin: 0; max-width: 52ch; }
.cb-ticks { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--cb-line); list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; }
.cb-ticks li { position: relative; padding-left: 31px; font-size: 16px; line-height: 1.45; }
.cb-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--cb-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* Two-path comparison */
.cb-path { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--cb-line); }
.cb-path--good { border-color: var(--cb-primary); box-shadow: 0 18px 44px rgba(0,114,188,.14); }
.cb-path__head { padding: 22px 26px; background: #f4f5f6; color: var(--cb-body); }
.cb-path--good .cb-path__head { background: var(--cb-navy); color: #fff; }
.cb-path__kicker { font-family: var(--cb-heading); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin: 0 0 6px; }
.cb-path__title { font-family: var(--cb-heading); font-weight: 800; font-size: 23px; line-height: 1.2; margin: 0; }
.cb-steps { margin: 0; padding: 22px 26px 10px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cb-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.5; }
.cb-steps__time { font-family: var(--cb-heading); font-weight: 800; font-size: 13px; letter-spacing: .04em; white-space: nowrap; padding: 4px 10px; border-radius: 6px; background: #f4f5f6; color: var(--cb-body); }
.cb-path--good .cb-steps__time { background: #eaf4fb; color: var(--cb-primary); }
.cb-path__foot { margin: auto 0 0; padding: 18px 26px 22px; font-family: var(--cb-heading); font-weight: 800; font-size: 16px; line-height: 1.4; background: #fbeeec; color: #8c3a2f; }
.cb-path--good .cb-path__foot { background: rgba(255,210,64,.28); color: var(--cb-navy); }

/* FAQ */
.cb-faqgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 56px; align-items: start; }
.cb-faqs { display: flex; flex-direction: column; gap: 8px; }
.cb-faq { background: #fff; border: 1px solid var(--cb-line); border-radius: var(--cb-radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cb-faq.is-open { border-color: var(--cb-primary); box-shadow: 0 10px 28px rgba(0,114,188,.12); }
.cb-faq h3 { margin: 0; }
.cb-faq__q { 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(--cb-heading); font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--cb-navy); transition: color .2s; }
.cb-faq__q:hover { color: var(--cb-primary); }
.cb-faq__icon { flex: none; font-family: var(--cb-heading); font-weight: 700; font-size: 26px; line-height: 1; color: var(--cb-primary); transition: transform .25s; }
.cb-faq.is-open .cb-faq__icon { transform: rotate(45deg); }
.cb-faq__a { padding: 0 20px 20px; font-size: 16px; line-height: 1.6; color: var(--cb-body); max-width: 70ch; }
.cb-faq__a p { margin: 0; }
.cb-js .cb-faq:not(.is-open) .cb-faq__a { display: none; }
.cb-aside { border: 1px solid var(--cb-line); border-left: 5px solid var(--cb-warning); border-radius: var(--cb-radius); padding: 22px 24px; background: #f8fbfd; max-width: 420px; }
.cb-aside__kicker { font-family: var(--cb-heading); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-body); margin: 0 0 8px; }
.cb-aside__title { font-family: var(--cb-heading); font-weight: 800; font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.cb-aside__body { font-size: 15px; line-height: 1.55; color: var(--cb-body); margin: 0 0 14px; }

/* Final CTA */
.cb-cta { background: var(--cb-warning); }
.cb-cta__inner { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; padding-top: 60px; padding-bottom: 60px; }
.cb-cta__col { flex: 1 1 380px; min-width: 0; }
.cb-cta__lede { font-size: 18px; line-height: 1.55; color: var(--cb-navy); margin: 0; max-width: 56ch; }
.cb-cta__actions { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.cb-cta__actions .cb-btn { display: flex; }

/* Motion */
@keyframes cbIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes cbDrift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.16) translate3d(-2%,-1.5%,0); } }
@keyframes cbPulse { 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 cbScrollHint { 0%,100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(7px); opacity: 1; } }
.cb-anim { animation: cbIn .75s cubic-bezier(.2,.7,.3,1) both; }
.cb-anim--2 { animation-delay: .08s; } .cb-anim--3 { animation-delay: .18s; } .cb-anim--4 { animation-delay: .28s; } .cb-anim--5 { animation-delay: .38s; }
.cb-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.cb-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .cb-sec__inner { padding-top: 56px; padding-bottom: 56px; }
  .cb-hero__inner { padding-top: 72px; padding-bottom: 84px; }
  .cb-shift { padding: 24px 22px 28px; }
  .cb-panel { padding: 24px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb *, .cb *::before, .cb *::after { animation: none !important; transition: none !important; }
  .cb-js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .cb-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cb-js .cb-faq .cb-faq__a { display: block !important; }
}


/* === care-beyond-9-5 — 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 (Bootstrap `h1 { color: var(--bs-heading-color) }`)
   and a direct rule beats the design's inherited colour, so headings on the navy
   hero, the navy clock and the navy route header would render #212124 on navy.
   Restore inheritance, then restate the two headings the design colours itself. */
.cb .cb-h1,
.cb .cb-h2,
.cb .cb-card__title,
.cb .cb-shift__title,
.cb .cb-path__title,
.cb .cb-aside__title { color: inherit; }
.cb .cb-h2--ink { color: var(--cb-navy); }
.cb .cb-panel__title { color: #fff; }

/* The design never uses [hidden] on an element it also gives a display value,
   but the theme might; make the attribute win (shift panels, the protocol callout). */
.cb [hidden] { display: none !important; }

/* Richtext TVs (content, types-content, form-content) and richtext MIGX fields
   emit their own <p>. They render inside a div rather than a <p> so the markup
   stays valid; restate the paragraph styling the design put on the <p>. */
.cb .cb-freetext > p { font: inherit; color: inherit; margin: 0 0 .75em; }
.cb .cb-freetext > :last-child,
.cb .cb-path__foot > :last-child,
.cb .cb-faq__a > :last-child { margin-bottom: 0; }
.cb .cb-path__foot > p { margin: 0; }
.cb .cb-faq__a > p + p { margin-top: .75em; }

/* Coverage clock without JS (or before it runs): the strip, toggle, axis and
   panel are empty shells, so hide them and show the five band cards, which carry
   every word. care-beyond.js adds .cb-clock-on to #clock once the clock works. */
.cb-sec--navy:not(.cb-clock-on) .cb-tabs,
.cb-sec--navy:not(.cb-clock-on) .cb-clock,
.cb-sec--navy:not(.cb-clock-on) .cb-clock__axis,
.cb-sec--navy:not(.cb-clock-on) .cb-panelgrid { display: none; }
.cb-clock-on .cb-bands { display: none; }
.cb-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
.cb-band .cb-panel__head { margin-bottom: 10px; }
.cb-band .cb-rows { margin-top: 18px; }
.cb-hour:focus-visible { outline-color: var(--cb-warning); }

/* Shift patterns without JS: all four panels stack; the chip row is empty. */
.cb-shifts { display: grid; gap: 14px; }
.cb-chips:empty { display: none; }
.cb-chip:focus-visible, .cb-tab:focus-visible { outline: 2px solid var(--cb-warning); outline-offset: 2px; }
