/* Lost-time cost calculator. Shares base pieces with /health-check/health-check.css. */
.cc { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 9vw, 104px) var(--gutter) clamp(64px, 10vw, 120px); }
.cc-head { max-width: 680px; }
.cc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin-bottom: 18px; }

.cc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: start; margin-bottom: clamp(40px, 7vw, 64px); }

.cc-inputs { border-top: 1px solid var(--line); }
.cc-field { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.cc-label-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.cc-label-row label { font-size: 15px; font-weight: 500; }
.cc-num {
  width: 92px; text-align: right; font: 400 22px var(--serif); color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.cc-num::-webkit-outer-spin-button, .cc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-num:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.cc-money { display: inline-flex; align-items: center; gap: 6px; font: 400 22px var(--serif); color: var(--muted); }
.cc-help { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Range slider */
.cc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; --pct: 0%; }
.cc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--brass) var(--pct), var(--line) var(--pct)); }
.cc-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.cc-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brass); }
.cc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 999px; background: var(--surface); border: 2px solid var(--brass); box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .15s var(--ease); }
.cc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: var(--surface); border: 2px solid var(--brass); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cc-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.cc-range:focus { outline: none; }
.cc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brass); outline-offset: 3px; }
.cc-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Result card */
.cc-result { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 36px); }
.cc-result-label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.cc-total { font: 400 clamp(44px, 6vw, 64px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 14px; font-variant-numeric: tabular-nums; word-break: break-word; }
.cc-sub { color: var(--ink); font-size: 16px; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.cc-pin .cc-sub { margin-bottom: 20px; }
.cc-note { font-size: 13px; color: var(--muted); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* Small screens: the figures stay pinned in view above the sliders so people
   can watch them change; the estimate note moves below the sliders. */
@media (max-width: 820px) {
  .cc-grid { grid-template-columns: 1fr; gap: 0; }
  .cc-result { display: contents; }
  .cc-pin {
    order: -1; position: sticky; top: var(--cc-pin-top, 76px); z-index: 5;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 18px; margin-bottom: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  .cc-pin .cc-result-label { margin-bottom: 4px; }
  .cc-pin .cc-total { font-size: 38px; margin-bottom: 6px; }
  .cc-pin .cc-sub { font-size: 14px; margin-bottom: 0; }
  .cc-note { order: 2; border-top: 0; padding-top: 16px; }
}
