/* CareJobs coded homepage. Scoped to .cjh so the site header/footer stay untouched. */
@font-face { font-family: "CJH Serif"; src: url("fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "CJH Serif"; src: url("fonts/source-serif-4-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CJH Sans"; src: url("fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CJH Sans"; src: url("fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "CJH Sans"; src: url("fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.cjh {
  --bg: #ffffff;
  --tint: #f4f8f6;
  --soft: #e8f3f0;
  --ink: #14231d;
  --ink-2: #3f4f48;
  --muted: #66746e;
  --line: #e1e8e4;
  --accent: #124e3a;
  --accent-2: #0d3b2c;
  --accent-ink: #ffffff;
  --serif: "CJH Serif", Georgia, "Times New Roman", serif;
  --sans: "CJH Sans", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-pill: 999px;
  --wrap: 1160px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Neutralize theme leaks at zero specificity so component rules always win. */
:where(.cjh) :where(h1, h2, h3, p, ul, ol, li, figure, hr, details, summary) { margin: 0; padding: 0; border: 0; }
:where(.cjh) :where(ul, ol) { list-style: none; }
:where(.cjh) :where(a) { color: inherit; text-decoration: none; }
:where(.cjh) :where(input, select, button) { font: inherit; color: inherit; }
.cjh *, .cjh *::before, .cjh *::after { box-sizing: border-box; }
/* Theme list styles beat :where(); this reset sits at (0,1,1) so component classes (0,2,0) still win. */
.cjh ul, .cjh ol { margin: 0; padding: 0; list-style: none; }
.cjh li { margin: 0; padding: 0; list-style: none; }
.cjh li::marker { content: none; }

.cjh-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.cjh-section { padding-block: 56px; border-top: 1px solid var(--line); }

/* Type */
.cjh .cjh-h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); max-width: 18ch; }
.cjh .cjh-h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); }
.cjh .cjh-h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--ink); }
.cjh .cjh-accent { color: var(--accent); }
.cjh .cjh-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cjh .cjh-small { font-size: 14px; color: var(--ink-2); }
.cjh .cjh-muted { color: var(--muted); }
.cjh .cjh-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 15px; color: var(--accent); }
.cjh .cjh-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cjh .cjh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* Buttons */
.cjh .cjh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; text-transform: none; letter-spacing: 0; line-height: 1; font-family: var(--sans); transition: background-color .15s, transform .1s; }
.cjh .cjh-btn:active { transform: translateY(1px); }
.cjh .cjh-btn--primary { background: var(--accent); color: var(--accent-ink); }
.cjh .cjh-btn--primary:hover { background: var(--accent-2); }
.cjh .cjh-btn--ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.cjh .cjh-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.cjh .cjh-btn--light { background: #ffffff; color: var(--accent); }
.cjh .cjh-btn--light:hover { background: var(--soft); }
.cjh .cjh-btn:focus-visible, .cjh a:focus-visible, .cjh select:focus-visible, .cjh summary:focus-visible { outline: 3px solid #7fb8a3; outline-offset: 2px; }

.cjh .cjh-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* Hero */
.cjh-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 56px; }
.cjh .cjh-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cjh .cjh-live { width: 8px; height: 8px; border-radius: 50%; background: #2f9a6f; box-shadow: 0 0 0 4px rgba(47, 154, 111, .15); }
.cjh .cjh-lede { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

.cjh .cjh-search { margin-top: 28px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 0; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px; box-shadow: 0 6px 24px -12px rgba(18, 78, 58, .25); }
.cjh .cjh-search__field { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 48px; }
.cjh .cjh-search__field + .cjh-search__field { border-left: 1px solid var(--line); }
.cjh .cjh-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cjh .cjh-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 0; height: 100%; box-shadow: none; color: var(--ink); }
.cjh .cjh-search input::placeholder { color: #7d8a85; }

.cjh .cjh-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.cjh .cjh-stats strong { color: var(--ink); font-weight: 700; }
.cjh .cjh-employer { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; color: var(--ink-2); }
.cjh .cjh-employer strong { color: var(--ink); font-weight: 700; }
.cjh .cjh-employer:hover { border-color: var(--accent); }

/* Pay card */
.cjh .cjh-pay { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: #fff; box-shadow: 0 10px 30px -18px rgba(18, 78, 58, .3); }
.cjh .cjh-pay__range { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--accent); }
.cjh .cjh-pay__range span { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); margin-left: 2px; }
.cjh .cjh-bar { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--tint); margin: 16px 0 12px; }
.cjh .cjh-bar__fill { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: #a9d2c2; }
.cjh .cjh-bar__mid { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); }
.cjh .cjh-pay hr { height: 1px; background: var(--line); margin: 20px 0 16px; }
.cjh .cjh-pay__q { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cjh .cjh-pay__pick select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px; }
.cjh .cjh-pay__out { min-height: 22px; margin: 10px 0 12px; font-size: 14px; color: var(--ink-2); }
.cjh .cjh-pay__out strong { color: var(--accent); }

/* Roles */
.cjh .cjh-roles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cjh .cjh-roles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .15s, background-color .15s; }
.cjh .cjh-roles a:hover { border-color: var(--accent); background: var(--tint); }
.cjh .cjh-roles__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.cjh .cjh-roles li:first-child .cjh-roles__badge { background: var(--accent); color: #fff; }
.cjh .cjh-roles__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cjh .cjh-roles__count { font-size: 13px; color: var(--muted); }
.cjh .cjh-types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cjh .cjh-types a { display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--tint); font-weight: 500; font-size: 14px; }
.cjh .cjh-types a span { color: var(--muted); }
.cjh .cjh-types a:hover { background: var(--soft); color: var(--accent); }

/* Chips */
.cjh-chips-wrap { padding-bottom: 56px; }
.cjh .cjh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cjh .cjh-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; color: var(--ink-2); }
.cjh .cjh-chips a:hover { border-color: var(--accent); color: var(--accent); }

/* Latest + sidebar */
.cjh-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cjh .cjh-jobs { border-top: 1px solid var(--line); }
.cjh .cjh-job { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.cjh .cjh-job:hover { background: var(--tint); }
.cjh .cjh-job__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--accent); background: #fff; }
.cjh .cjh-job__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cjh .cjh-job__title { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }
.cjh .cjh-job:hover .cjh-job__title { color: var(--accent); }
.cjh .cjh-job__meta { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cjh .cjh-job__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cjh .cjh-job__pay { font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.cjh .cjh-more { margin-top: 24px; }

.cjh .cjh-split__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.cjh .cjh-panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: #fff; }
.cjh .cjh-rank { margin: 14px 0 14px; }
.cjh .cjh-rank a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--tint); }
.cjh .cjh-rank a:hover .cjh-rank__name { color: var(--accent); }
.cjh .cjh-rank__n { font-size: 13px; color: var(--muted); }
.cjh .cjh-rank__name { font-weight: 500; }
.cjh .cjh-rank__count { font-size: 14px; color: var(--muted); }
.cjh .cjh-agencies { margin: 14px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.cjh .cjh-agencies li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; font-weight: 500; }
.cjh .cjh-agencies__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 700; }

/* Band */
.cjh-band { background: var(--accent); color: #e7f1ed; }
.cjh-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 48px; }
.cjh .cjh-band .cjh-h2 { color: #fff; }
.cjh .cjh-band p { margin-top: 8px; max-width: 56ch; font-size: 17px; }

/* Directory */
.cjh .cjh-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
.cjh .cjh-dir__list { margin: 12px 0 14px; }
.cjh .cjh-dir__list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.cjh .cjh-dir__list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cjh .cjh-dir__list span { color: var(--muted); font-size: 14px; }

/* FAQ */
.cjh-faq { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.cjh .cjh-faq__intro .cjh-link { margin-top: 14px; }
.cjh .cjh-faq__list { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cjh .cjh-faq__list details + details { border-top: 1px solid var(--line); }
.cjh .cjh-faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.cjh .cjh-faq__list summary::-webkit-details-marker { display: none; }
.cjh .cjh-faq__list summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.cjh .cjh-faq__list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.cjh .cjh-faq__list details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 68ch; }

/* Responsive */
@media (max-width: 1080px) {
  .cjh .cjh-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cjh .cjh-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cjh-hero, .cjh-split, .cjh-faq { grid-template-columns: 1fr; gap: 32px; }
  .cjh .cjh-split__side { position: static; }
  .cjh-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cjh-wrap { padding-inline: 18px; }
  .cjh-section { padding-block: 40px; }
  .cjh-hero { padding-top: 28px; }
  .cjh .cjh-lede { font-size: 17px; }
  .cjh .cjh-search { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .cjh .cjh-search__field + .cjh-search__field { border-left: 0; border-top: 1px solid var(--line); }
  .cjh .cjh-search .cjh-btn { width: 100%; margin-top: 6px; }
  .cjh .cjh-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cjh .cjh-dir { grid-template-columns: 1fr; gap: 24px; }
  .cjh .cjh-job { grid-template-columns: minmax(0, 1fr) auto; }
  .cjh .cjh-job__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cjh * { transition: none !important; }
}

/* Count-up and bar entrance (only when JS runs; no-JS shows final state). */
.cjh [data-cjh-count] { font-variant-numeric: tabular-nums; font-weight: inherit; }
.cjh-anim .cjh [data-cjh-count] { display: inline-block; text-align: left; }
.cjh-anim .cjh .cjh-bar__fill { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) .15s; }
.cjh-anim .cjh .cjh-bar__mid { opacity: 0; transform: translateX(-50%) scaleY(.2); transition: opacity .4s ease 1.1s, transform .5s cubic-bezier(.16, 1, .3, 1) 1.1s; }
.cjh-anim .cjh .cjh-bar.is-in .cjh-bar__fill { transform: scaleX(1); }
.cjh-anim .cjh .cjh-bar.is-in .cjh-bar__mid { opacity: 1; transform: translateX(-50%) scaleY(1); }
