/* Calculators: one component for the three dental calculators (insurance verification cost, no show cost,
   virtual assistant cost), driven by assets/js/calculators.js. Family "calc" (styles: calc).
   A calculator page: .hero.hero--calc (crumbs, title, words), then .calc-section holding the .calc. Inside a .calc:
   a stage with two cards (your numbers, the estimate), the actions, and the sources. Every control is a 48px target;
   number boxes are 17px so phones never zoom. */
.hero--calc { padding-bottom: 8px; }
.calc-section { padding: 28px 0 var(--sp-section); }
.calc__clip { position: fixed; top: 0; left: 0; opacity: 0; }

.calc {
  --calc-ink: var(--ink);
  --calc-ink2: var(--muted);
  --calc-hair: var(--line);
  --calc-fill: var(--band);
  --calc-fill2: #edf1f6;
  --calc-track: var(--line-2);
  --calc-acc: var(--blue);
  --calc-acch: var(--blue-deep);
  --calc-acct: var(--blue-tint);
  --calc-link: var(--blue);
  --calc-linkh: var(--blue-hover);
  --calc-n1: #46566a;
  --calc-n2: #8e9bab;
  --calc-n3: #c9d2de;
  --calc-bad: #c8102e;
  container-type: inline-size;
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--calc-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.calc [hidden] { display: none !important; }
.calc p, .calc ul, .calc ol, .calc li, .calc dl, .calc dt, .calc dd, .calc label, .calc summary, .calc details { margin: 0; padding: 0; font-family: inherit; letter-spacing: inherit; text-align: left; }
.calc div { line-height: inherit; }

/* Layout: a gray stage holding the two cards (your numbers, the estimate), then the actions and the sources */
.calc .calc__stage { padding: 8px; border-radius: 28px; background: var(--calc-fill); }
.calc .calc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.calc .calc__card { min-width: 0; padding: 26px 20px 24px; border-radius: 22px; background: var(--white); }
.calc .calc__card--in { display: flex; flex-direction: column; }
.calc .calc__card--in > .calc__fixed { margin-top: auto; }
.calc .calc__h { margin: 0 0 4px; font-size: 21px; line-height: 1.24; font-weight: 800; letter-spacing: -.021em; color: var(--calc-ink); }
.calc .calc__help { margin: 0 0 26px; font-size: 14px; line-height: 1.43; color: var(--calc-ink2); }

/* A field: label and number box on one line, the slider under them, then the hint and the error */
.calc .calc__field { margin: 0 0 26px; padding: 0; border: 0; }
.calc .calc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.calc .calc__label { display: block; font-size: 15px; line-height: 1.33; font-weight: 500; letter-spacing: -.01em; color: var(--calc-ink); cursor: default; }
.calc .calc__val { display: inline-flex; align-items: baseline; justify-content: flex-end; flex: 0 0 auto; gap: 0; min-height: 48px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--calc-fill); color: var(--calc-ink); cursor: text; transition: background-color .2s ease, box-shadow .2s ease; }
.calc .calc__val:hover { background: var(--calc-fill2); }
.calc .calc__val:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--calc-acc), 0 0 0 6px rgba(26, 86, 219, .16); }
.calc .calc__val input { display: inline-block; width: 3ch; min-width: 1ch; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; font-family: inherit; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: inherit; text-align: right; font-variant-numeric: normal; -moz-appearance: textfield; appearance: textfield; }
.calc .calc__val .calc__pre + input { text-align: left; }
.calc .calc__val input::-webkit-outer-spin-button, .calc .calc__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc .calc__pre, .calc .calc__suf { flex: 0 0 auto; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--calc-ink2); white-space: nowrap; }
.calc .calc__pre { margin-right: 1px; font-size: 17px; font-weight: 600; color: var(--calc-ink); }
.calc .calc__suf { margin-left: 5px; }
.calc .calc__suf--sym { margin-left: 1px; font-size: 17px; font-weight: 600; color: var(--calc-ink); }
.calc input.calc__range { --f: .5; display: block; width: 100%; height: 44px; margin: -2px 0 -4px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.calc input.calc__range::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: 2px; background: linear-gradient(to right, var(--calc-acc) 0, var(--calc-acc) calc(14px + (100% + -28px) * var(--f)), var(--calc-track) calc(14px + (100% + -28px) * var(--f)), var(--calc-track) 100%); }
.calc input.calc__range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .05); cursor: grab; -webkit-appearance: none; appearance: none; transition: transform .15s ease, box-shadow .15s ease; }
.calc input.calc__range:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.calc input.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(26, 86, 219, .3), 0 3px 8px rgba(0, 0, 0, .16); }
.calc input.calc__range::-moz-range-track { height: 4px; border: 0; border-radius: 2px; background: var(--calc-track); }
.calc input.calc__range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--calc-acc); }
.calc input.calc__range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .05); cursor: grab; }
.calc input.calc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(26, 86, 219, .3), 0 3px 8px rgba(0, 0, 0, .16); }
.calc input.calc__range:disabled { cursor: default; opacity: .35; }
.calc .calc__hint { display: block; margin: 4px 0 0; font-size: 13px; line-height: 1.38; font-weight: 400; color: var(--calc-ink2); }
.calc .calc__err { display: none; margin: 4px 0 0; font-size: 13px; line-height: 1.38; font-weight: 500; color: var(--calc-bad); }
.calc .calc__field.is-bad .calc__val { box-shadow: 0 0 0 2px var(--calc-bad); }
.calc .calc__field.is-bad .calc__err { display: block; }
.calc .calc__field.is-off .calc__top, .calc .calc__field.is-off .calc__hint { opacity: .4; }

/* Choice of role (segmented control) and the on/off switch */
.calc .calc__seg { display: flex; gap: 0; padding: 3px; border-radius: 12px; background: var(--calc-fill2); }
.calc label.calc__opt { position: relative; display: block; flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 1.2; font-weight: 500; cursor: pointer; }
.calc .calc__opt input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.calc .calc__opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; border-radius: 9px; background: transparent; font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; color: var(--calc-ink); text-align: center; white-space: nowrap; transition: background-color .2s ease, box-shadow .2s ease; }
.calc .calc__opt input:checked + span { background: var(--white); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
.calc .calc__opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--calc-acc); }
.calc label.calc__switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin: 0 0 18px; font-size: 15px; line-height: 1.33; font-weight: 500; color: var(--calc-ink); cursor: pointer; }
.calc .calc__switch input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.calc .calc__switch-ui { position: relative; flex: 0 0 auto; display: block; width: 51px; height: 31px; border-radius: 16px; background: var(--calc-track); transition: background-color .25s ease; }
.calc .calc__switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--white); box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .25s ease; }
.calc .calc__switch input:checked + .calc__switch-ui { background: var(--calc-acc); }
.calc .calc__switch input:checked + .calc__switch-ui::after { transform: translateX(20px); }
.calc .calc__switch input:focus-visible + .calc__switch-ui { box-shadow: 0 0 0 4px rgba(26, 86, 219, .3); }

/* The two drop downs: "Adjust assumptions" and "Where these numbers come from" */
.calc details.calc__more { margin: 4px 0 22px; border-top: 1px solid var(--calc-hair); border-bottom: 1px solid var(--calc-hair); }
.calc .calc__more summary, .calc .calc__src summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 15px; line-height: 1.33; font-weight: 500; color: var(--calc-link); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.calc .calc__more summary::-webkit-details-marker, .calc .calc__src summary::-webkit-details-marker { display: none; }
.calc .calc__more summary::marker, .calc .calc__src summary::marker { content: ""; }
.calc .calc__more summary::after, .calc .calc__src summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); transition: transform .25s ease, margin .25s ease; }
.calc .calc__more[open] summary::after, .calc .calc__src[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.calc .calc__more summary:hover, .calc .calc__src summary:hover { color: var(--calc-linkh); }
.calc .calc__more summary:focus-visible, .calc .calc__src summary:focus-visible { outline: 2px solid var(--calc-acc); outline-offset: 2px; border-radius: 6px; }
.calc .calc__more-in { padding: 8px 0 2px; }
.calc .calc__fixed { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--calc-fill); font-size: 13.5px; line-height: 1.45; color: var(--calc-ink2); }
.calc .calc__fixed b { font-weight: 600; color: var(--calc-ink); }

/* The estimate: the big figure, the comparison bars, the tiles */
.calc .calc__kick { margin: 0 0 2px; font-size: 15px; line-height: 1.33; font-weight: 500; color: var(--calc-ink2); }
.calc .calc__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 14px; font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: -.035em; color: var(--calc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .calc__unit { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--calc-ink); }
.calc .calc__pill { display: inline-block; margin: 0 0 28px; padding: 6px 13px; border-radius: 999px; background: var(--calc-acct); font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--calc-acch); }
.calc .calc__cmp { margin: 0 0 22px; padding: 22px 0 0; border-top: 1px solid var(--calc-hair); }
.calc .calc__subhead { margin: 0 0 14px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .01em; color: var(--calc-ink2); }
.calc .calc__row { margin: 0 0 20px; }
.calc .calc__row:last-child { margin-bottom: 0; }
.calc .calc__row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.calc .calc__name { font-size: 15px; line-height: 1.33; font-weight: 600; color: var(--calc-ink); }
.calc .calc__amt { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--calc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .calc__row--us .calc__amt { color: var(--calc-link); }
.calc .calc__track { display: flex; gap: 0; width: 100%; height: 14px; border-radius: 7px; background: var(--calc-fill); overflow: hidden; }
.calc .calc__track i { display: block; flex: 0 0 auto; width: 0; height: 100%; border-right: 2px solid var(--white); font-style: normal; transition: width .45s cubic-bezier(.25, .1, .25, 1); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.calc .calc__track i:last-of-type { border-right: 0; }
.calc .calc__n1 { background: var(--calc-n1); }
.calc .calc__n2 { background: var(--calc-n2); }
.calc .calc__n3 { background: var(--calc-n3); }
.calc .calc__acc { background: var(--calc-acc); }
.calc .calc__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; list-style: none; }
.calc .calc__legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.38; color: var(--calc-ink2); list-style: none; }
.calc .calc__legend b { font-weight: 600; color: var(--calc-ink); font-variant-numeric: tabular-nums; }
.calc .calc__dot { flex: 0 0 auto; display: inline-block; width: 8px; height: 8px; border-radius: 50%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.calc .calc__cap { margin: 8px 0 0; font-size: 13px; line-height: 1.38; color: var(--calc-ink2); }
.calc .calc__tset { margin: 0 0 24px; }
.calc .calc__tset .calc__tiles { margin: 0; }
.calc .calc__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
.calc .calc__tile { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px 15px; border-radius: 16px; background: var(--calc-fill); }
.calc .calc__tile dt { margin: 0 0 3px; font-size: 13px; line-height: 1.3; font-weight: 400; color: var(--calc-ink2); }
.calc .calc__tile dd { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--calc-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc .calc__tile--key dd { color: var(--calc-link); }
.calc .calc__note { margin: 0 0 24px; padding: 14px 16px; border-radius: 14px; background: var(--calc-acct); font-size: 13.5px; line-height: 1.45; color: var(--calc-ink); }
.calc .calc__note b { font-weight: 600; color: var(--calc-ink); }
.calc .calc__note a, .calc .calc__list a { color: var(--calc-acch); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.calc .calc__card--out > :nth-last-child(2) { margin-bottom: 0; }
.calc .calc__live { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Actions under the cards, and the sources */
.calc .calc__foot { padding: 22px 12px 0; }
.calc .calc__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; }
.calc .calc__btn { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 100%; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--blue); box-shadow: none; font-family: inherit; font-size: 16.5px; line-height: 1.2; font-weight: 700; letter-spacing: 0; color: var(--white); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.calc .calc__btn:hover { background: var(--blue-hover); color: var(--white); }
.calc .calc__btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(26, 86, 219, .35); }
.calc .calc__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; flex: 1 1 100%; }
.calc .calc__link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 15.5px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--calc-link); text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc .calc__link:hover { color: var(--calc-linkh); text-decoration: underline; text-underline-offset: 3px; }
.calc .calc__link:focus-visible { outline: 2px solid var(--calc-acc); outline-offset: 2px; border-radius: 6px; }
.calc .calc__link svg { display: block; flex: 0 0 auto; width: 15px; height: 15px; }
.calc .calc__fine { max-width: 560px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.45; color: var(--calc-ink2); text-align: center; }
.calc details.calc__src { padding: 0 14px; }
.calc .calc__src summary { justify-content: center; gap: 10px; min-height: 56px; font-size: 14px; }
.calc .calc__list { margin: 0 0 8px; padding: 20px 22px 20px 40px; border-radius: 22px; background: var(--white); font-size: 13.5px; line-height: 1.55; color: var(--calc-ink2); list-style: decimal; }
.calc .calc__list li { margin: 0 0 10px; padding: 0 0 0 4px; list-style: decimal; }
.calc .calc__list li:last-child { margin-bottom: 0; }
.calc .calc__list b { font-weight: 600; color: var(--calc-ink); }

/* Wider calculators: two cards side by side, larger figure; the estimate stays in view while the long side scrolls */
@container (min-width: 560px) {
  .calc .calc__foot { padding-top: 26px; }
  .calc .calc__acts { flex-wrap: nowrap; }
  .calc .calc__btn { flex: 0 0 auto; min-width: 220px; }
  .calc .calc__links { flex: 0 0 auto; }
  .calc .calc__stage { padding: 10px; border-radius: 30px; }
  .calc .calc__card { padding: 32px 30px 28px; border-radius: 22px; }
  .calc .calc__big { font-size: 64px; }
}
@container (min-width: 780px) {
  .calc .calc__stage { padding: 12px; border-radius: 34px; }
  .calc .calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .calc .calc__card { padding: 38px 36px 34px; border-radius: 24px; }
  .calc .calc__big { font-size: 60px; }
  .calc details.calc__src { padding: 0 24px; }
  .calc .calc__grid.is-stick .calc__card--out { align-self: start; }
  @media (min-height: 760px) {
    .calc .calc__grid.is-stick .calc__card--out { position: sticky; top: 96px; }
  }
}
@container (min-width: 900px) {
  .calc .calc__big { font-size: 66px; }
  .calc .calc__card { padding: 42px 40px 36px; }
}
@media (hover: none) {
  .calc .calc__val:hover { background: var(--calc-fill); }
}
@media (prefers-reduced-motion: reduce) {
  .calc .calc__track i, .calc .calc__val, .calc .calc__opt span, .calc .calc__switch-ui, .calc .calc__switch-ui::after, .calc input.calc__range::-webkit-slider-thumb, .calc .calc__more summary::after, .calc .calc__src summary::after { transition: none; }
}
@media print {
  .calc { max-width: none; padding: 0; }
  .calc .calc__stage { padding: 0; background: var(--white); }
  .calc .calc__card { padding: 12px 0; }
  .calc .calc__acts, .calc .calc__fine, .calc input.calc__range, .calc .calc__help, .calc .calc__err { display: none !important; }
  .calc .calc__val { padding: 0; background: var(--white); }
}


/* Line lengths inside the calculator (spacing standard: 70 characters a line at most, 28 or more on average):
   the small print keeps a measure of its own, and on narrow screens the sources list gets more room */
.calc .calc__hint, .calc .calc__fixed, .calc .calc__help, .calc .calc__note, .calc .calc__kick { max-width: 31em; text-wrap: pretty; }
.calc .calc__fine { max-width: 30em; font-size: 13.5px; text-wrap: balance; }
.calc .calc__list li { max-width: 31em; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.calc .calc__legend li { white-space: nowrap; }
@media (max-width: 479px) {
  .calc details.calc__src { padding: 0; }
  .calc .calc__list { padding: 18px 16px 18px 34px; }
  .calc .calc__list li { font-size: 14px; }
}
