/* FREE TOOLS (2026-10-20): the three calculators (/tools/...) and their hub (/tools). Same language as the rest of the
   site: inputs on white cards over bone, results on ink, one aqua. Results move as you type; every chart is drawn from
   the numbers on screen. Nothing is hidden waiting for an animation (Ian's iPhone has Reduce Motion on). */

.tl-hero { padding-bottom: clamp(34px, 4.4vw, 56px); }
.tl-hero .pg-lede { max-width: 58ch; }
.tl-hero .pg-acts { justify-content: center; }
.tl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the calculator section ---------- */
.tl-sec { background: var(--bone); padding: clamp(26px, 3.6vw, 52px) var(--gut) clamp(64px, 7vw, 104px); }
.tl-in { max-width: var(--max); margin: 0 auto; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.tl-form { min-width: 0; }
.tl-card { margin: 0; padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 28px) 8px; border: 0; border-radius: 22px; background: #fff; min-width: 0; }
.tl-card + .tl-card { margin-top: 12px; }
.tl-card legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.tl-card legend + *, .tl-card > .tl-item, .tl-card > .tl-f { clear: both; }
.tl-legend-note { clear: both; margin: 4px 0 6px; font-size: 14px; line-height: 1.45; color: var(--mute); }

/* one input: label and box on a line, the slider under it, a hint under that */
.tl-f { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.tl-card legend + .tl-f, .tl-legend-note + .tl-f { border-top: 0; padding-top: 10px; }
.tl-f-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tl-f-top label { font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.tl-hint { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.tl-hint a { color: var(--aqua-ink); font-weight: 600; border-bottom: 1.5px solid currentColor; }
.tl-x { position: relative; flex: none; width: 148px; }
.tl-x::before { content: '$'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font: 600 16px/1 var(--sans); color: var(--mute); pointer-events: none; }
.tl-x.tl-n::before { content: none; }
.tl-x.tl-pct::before { content: '%'; left: auto; right: 13px; }
.tl-x input { width: 100%; min-width: 0; height: 48px; padding: 0 12px 0 28px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 700 17px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.tl-x.tl-n input { padding-left: 13px; }
.tl-x.tl-pct input { padding: 0 32px 0 13px; }
.tl-x input::-webkit-outer-spin-button, .tl-x input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tl-x input:focus-visible { outline: 3px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua-ink); }
.tl-x input:disabled { background: var(--bone); color: var(--mute); }

/* the slider: a dark-aqua fill on a bone track (the bright aqua is too light on white to see), a big thumb for a thumb */
.tl-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 10px 0 0; padding: 0; background: transparent; cursor: pointer; --p: 0%; }
.tl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--aqua-ink) var(--p), var(--bone-2) var(--p)); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(12, 12, 13, .2); }
.tl-range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--bone-2); }
.tl-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--aqua-ink); }
.tl-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.tl-range:focus-visible { outline: none; }
.tl-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--aqua); outline-offset: 2px; }
.tl-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--aqua); outline-offset: 2px; }
.tl-range:disabled { cursor: default; opacity: .4; }
.tl-ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }

/* pills you can tap: presets, and the cost-per-conversion choices */
.tl-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.tl-presets-k { margin-right: 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
.tl-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); transition: background .15s, color .15s; }
.tl-pill:hover { background: var(--bone-2); }
.tl-pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tl-pill[aria-pressed="true"]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.tl-pill:focus-visible, .tl-chip:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
/* nurse pay: flat or a split of the price; the split pills show only on a split (hidden loses to display: flex) */
.tl-splits { margin: 12px 0 0; }
.tl-splits[hidden] { display: none; }
.tl-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tl-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: #fff; text-align: left; transition: background .15s, color .15s; }
.tl-chip:hover { background: var(--bone-2); }
.tl-chip b { font: 700 1.15rem/1 var(--wide); letter-spacing: -.03em; }
.tl-chip span { font-size: 13px; line-height: 1.3; color: var(--mute); }
.tl-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tl-chip[aria-pressed="true"] span { color: #c9c8cd; }
.tl-chip[aria-pressed="true"] b { color: var(--aqua); }

/* a startup line: tick it in or out, its amount, its slider between the guide's low and high */
.tl-item { padding: 14px 0 12px; border-top: 1px solid var(--line); }
.tl-card legend + .tl-item, .tl-legend-note + .tl-item { border-top: 0; padding-top: 8px; }
.tl-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tl-check { display: flex; align-items: flex-start; gap: 12px; min-width: 0; cursor: pointer; }
.tl-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.tl-item-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.tl-item-note { margin: 4px 0 0 34px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.tl-item .tl-range, .tl-item .tl-ends { margin-left: 34px; width: calc(100% - 34px); }
.tl-item.off .tl-item-name { color: var(--mute); }
.tl-item.off .tl-item-name::after { content: ' (left out)'; font-weight: 600; }

/* ---------- the results, on ink ---------- */
.tl-out { position: relative; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--ink); color: var(--bone); min-width: 0; }
.tl-out-k { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.tl-big { margin-top: 12px; font: 800 clamp(2.6rem, 4.9vw, 4.5rem)/1 var(--wide); letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl-big.tl-good { color: var(--aqua); }
.tl-bad { color: #ff9b8a !important; }
.tl-sub { margin-top: 10px; color: #c9c8cd; font-size: 15px; line-height: 1.45; }
.tl-kpis { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.tl-kpis > div { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-d); min-width: 0; }
.tl-kpis > div:nth-child(even) { padding: 14px 0 14px 16px; border-left: 1px solid var(--line-d); }
.tl-kpis dt { font-size: 13px; line-height: 1.3; font-weight: 600; color: #c9c8cd; }
.tl-kpis dd { margin-top: 6px; font: 700 clamp(1.25rem, 1.8vw, 1.6rem)/1.1 var(--wide); letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.tl-kpis dd small { display: block; margin-top: 5px; font: 500 12.5px/1.35 var(--sans); letter-spacing: 0; color: var(--mute-d); }
.tl-block { margin-top: 24px; }
.tl-block-h { margin-bottom: 12px; font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); }
.tl-block-note { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: #c9c8cd; }
.tl-acts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tl-acts .btn { gap: 10px; }
.tl-acts .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-acts .more { color: #fff; }
.tl-acts .more:hover { color: var(--aqua); }
.tl-est { margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--mute-d); }

/* ranked bars: biggest first (startup lines, the clients' cost per conversion) */
.tl-rank { display: flex; flex-direction: column; gap: 2px; }
.tl-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 12px; padding: 3px 0; }
.tl-rank .n { font-size: 13.5px; line-height: 1.3; color: #e4e1da; }
.tl-rank b { font-weight: 700; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.tl-rank i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tl-rank i span { display: block; height: 100%; width: var(--w, 0%); border-radius: 4px; background: var(--aqua); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.tl-rank li.dim i span { background: #55555b; }
.tl-rank li.dim .n { color: #c9c8cd; }
.tl-rank li.on .n { color: #fff; font-weight: 700; }

/* where a startup total lands against the guide's four kinds of launch */
.tl-rail { position: relative; display: grid; gap: 7px; padding-top: 24px; }
.tl-rail-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: center; }
.tl-rail-row > span { font-size: 12.5px; line-height: 1.2; color: #c9c8cd; }
.tl-rail-row > span small { display: block; font-size: 11.5px; color: var(--mute-d); }
.tl-rail-row.on > span { color: #fff; font-weight: 700; }
.tl-rail-t { position: relative; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.tl-rail-t i { position: absolute; top: 0; bottom: 0; left: var(--a); width: var(--w); min-width: 6px; border-radius: 7px; background: rgba(34, 224, 207, .32); }
.tl-rail-row.on .tl-rail-t i { background: var(--aqua); }
.tl-rail-mark { position: absolute; top: 0; bottom: -4px; left: calc(128px + (100% - 128px) * var(--x, 0)); width: 2px; margin-left: -1px; background: #fff; transition: left .35s cubic-bezier(.2, .8, .2, 1); }
.tl-rail-mark b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

/* the profit line and its labels (drawn by tools.js at the size it is shown, so the words stay readable) */
.tl-curve { display: block; width: 100%; height: 230px; overflow: visible; }
.tl-curve text { font: 600 12px var(--sans); fill: #9b9aa0; }
.tl-curve .lab { font-weight: 700; fill: #fff; }
.tl-curve .lab-aqua { font-weight: 700; fill: var(--aqua); }
.tl-curve .lab-bad { font-weight: 700; fill: #ff9b8a; }

/* where a month's money goes: one bar, four parts */
.tl-split { display: flex; gap: 2px; height: 20px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.tl-split i { display: block; height: 100%; flex: 0 0 auto; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.tl-key { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.tl-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 13.5px; color: #c9c8cd; }
.tl-key li::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--c); transform: translateY(1px); }
.tl-key b { color: #fff; font-variant-numeric: tabular-nums; }
.c-nurse { --c: #c9c8cd; } .c-sup { --c: #8a8990; } .c-fixed { --c: #55555b; } .c-profit { --c: var(--aqua); } .c-loss { --c: #ff9b8a; }
.tl-split .c-nurse, .tl-split .c-sup, .tl-split .c-fixed, .tl-split .c-profit { background: var(--c); }

/* ad leads into booked visits */
.tl-funnel { display: grid; gap: 10px; }
.tl-funnel > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tl-funnel p { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #c9c8cd; }
.tl-funnel p b { color: #fff; font-variant-numeric: tabular-nums; }
.tl-funnel i { display: block; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tl-funnel i span { display: block; height: 100%; width: var(--w, 100%); border-radius: 6px; background: #55555b; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.tl-funnel > div + div i span { background: var(--aqua); }

/* the phone bar: on a phone the results sit under the inputs, so the main number rides along at the bottom */
.tl-mini { display: none; }
@media (max-width: 900px) {
  html { scroll-padding-bottom: 96px; }
  .tl-mini { position: sticky; bottom: 10px; z-index: 5; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #c9c8cd; font-size: 13.5px; line-height: 1.3; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: opacity .2s, visibility .2s; }
  .tl-mini b { font-family: var(--wide); font-size: 17px; letter-spacing: -.02em; color: var(--aqua); font-variant-numeric: tabular-nums; }
  .tl-mini.tl-mini-off { opacity: 0; visibility: hidden; }
}

/* how it counts, under the calculator */
.tl-how { margin-top: clamp(18px, 2.2vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(20px, 3vw, 48px); padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 28px); border-radius: 22px; border: 1.5px dashed rgba(10, 118, 108, .4); font-size: 14.5px; line-height: 1.55; color: #3f3e3b; }
.tl-how h3 { font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 8px; }
.tl-how p + p, .tl-how ul + p { margin-top: .6em; }
.tl-how ul { margin-top: .4em; }
.tl-how li { position: relative; padding-left: 16px; }
.tl-how li + li { margin-top: .3em; }
.tl-how li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua-ink); }
.tl-how a { color: var(--aqua-ink); font-weight: 600; border-bottom: 1.5px solid currentColor; }
.tl-legal { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--mute); }

/* small changes, worked out live (profit page) */
.tl-levers { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-lever { padding: 20px 22px 22px; border-radius: 20px; background: #fff; }
.tl-lever p:first-child { font-weight: 700; font-size: 15px; line-height: 1.35; }
.tl-lever b { display: block; margin-top: 10px; font: 800 clamp(1.5rem, 2.2vw, 2rem)/1 var(--wide); letter-spacing: -.04em; color: var(--aqua-ink); font-variant-numeric: tabular-nums; }
.tl-lever span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.tl-levers-h { margin-top: clamp(26px, 3vw, 40px); font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }

/* where the numbers come from: client proof (marketing page) */
.tl-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-proof > a { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; background: #fff; transition: transform .2s, box-shadow .2s; }
.tl-proof > a:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -36px rgba(12, 12, 13, .5); }
.tl-proof img { height: 44px; width: auto; object-fit: contain; object-position: left center; }
.tl-proof .who { min-height: 44px; display: flex; align-items: center; font: 700 1.05rem/1.2 var(--wide); letter-spacing: -.02em; }
.tl-proof b { font: 800 clamp(2rem, 3.2vw, 2.8rem)/1 var(--wide); letter-spacing: -.05em; }
.tl-proof p { color: #3f3e3b; font-size: 15px; line-height: 1.5; }
.tl-proof .more { margin-top: auto; width: fit-content; font-size: 14px; }
.tl-quote { max-width: 900px; margin: clamp(30px, 3.6vw, 48px) auto 0; text-align: center; font: 500 clamp(1.2rem, 1.9vw, 1.6rem)/1.3 var(--wide); letter-spacing: -.02em; }
.tl-quote cite { display: block; margin-top: 12px; font: 600 12.5px var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* what these numbers mean: three short blocks with a small icon */
.tl-mean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); }
.tl-mean > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tl-mean svg { width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--aqua-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-mean h3 { font-family: var(--wide); font-weight: 700; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.03em; }
.tl-mean p { margin-top: 8px; color: #3f3e3b; font-size: 15.5px; line-height: 1.55; }
.tl-mean a { color: var(--aqua-ink); font-weight: 600; border-bottom: 1.5px solid currentColor; }

/* related guides and the other tools */
.tl-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); max-width: 1100px; margin: 0 auto; }
.tl-rel h3 { margin-bottom: 8px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.tl-rel ul { border-top: 1px solid var(--line); }
.tl-rel li { border-bottom: 1px solid var(--line); }
.tl-rel li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 16px; line-height: 1.35; transition: color .2s; }
.tl-rel li a::after { content: '\2192'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--aqua-ink); transition: background .2s, color .2s; }
.tl-rel li a:hover { color: var(--aqua-ink); }
.tl-rel li a:hover::after { background: var(--ink); color: var(--aqua); }
.pg-white .tl-rel li a::after { background: var(--bone); }
.tl-rel li a span { display: block; margin-top: 3px; font-weight: 500; font-size: 14px; color: var(--mute); }

/* ---------- the hub: four tools, each with a working preview ---------- */
.th-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th-card { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); border-radius: 26px; background: #fff; min-width: 0; }
.th-k { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.th-k span { color: var(--mute); letter-spacing: .1em; }
.th-card h2 { margin-top: 14px; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.08; }
.th-card h2 a:hover { color: var(--aqua-ink); }
.th-card > p:not(.th-k) { margin-top: 10px; color: #3f3e3b; font-size: 15.5px; line-height: 1.5; max-width: 52ch; }
.th-live { margin: 20px 0 22px; padding: 18px 20px 20px; border-radius: 18px; background: var(--ink); color: var(--bone); }
.th-live-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); }
.th-live-h i { font-style: normal; color: var(--aqua); }
.th-res { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.th-res b { font: 800 clamp(1.9rem, 3vw, 2.6rem)/1 var(--wide); letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
.th-res b.tl-good { color: var(--aqua); }
.th-res span { font-size: 14px; color: #c9c8cd; }
.th-ctl { margin-top: 14px; }
.th-ctl label { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; color: #c9c8cd; }
.th-ctl label output { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.th-live .tl-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--aqua) var(--p), rgba(255, 255, 255, .14) var(--p)); }
.th-live .tl-range::-moz-range-track { background: rgba(255, 255, 255, .14); }
.th-live .tl-range::-moz-range-progress { background: var(--aqua); }
.th-live .tl-range::-webkit-slider-thumb { border-color: var(--aqua); }
.th-live .tl-range::-moz-range-thumb { border-color: var(--aqua); }
.th-live .tl-pill { min-height: 40px; border-color: rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.th-live .tl-pill:hover { border-color: var(--aqua); background: rgba(255, 255, 255, .06); }
.th-live .tl-pill[aria-pressed="true"] { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.th-live .tl-pill[aria-pressed="true"]::before { background: var(--ink); }
.th-live .tl-presets { margin: 14px 0 0; }
.th-stack { margin-top: 14px; display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.th-stack i { display: block; height: 100%; background: var(--aqua); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.th-spark { display: block; width: 100%; height: 64px; margin-top: 12px; overflow: visible; }
.th-card .th-go { margin-top: auto; align-self: flex-start; }
.th-from { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 2px solid var(--ink); }
.th-from > div { padding: 20px 0 0; }
.th-from b { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--wide); letter-spacing: -.05em; }
.th-from p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #3f3e3b; }
.th-from a { color: var(--aqua-ink); font-weight: 600; border-bottom: 1.5px solid currentColor; }

/* the date and address that only appear on paper */
.tl-print-head, .tl-print-foot { display: none; }

/* ---------- smaller screens ---------- */
@media (min-width: 901px) and (min-height: 860px) {
  .tl-sticky { position: sticky; top: 88px; }
}
@media (max-width: 1100px) {
  .tl-proof { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .tl-mean { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-how, .tl-rel { grid-template-columns: 1fr; }
  .tl-levers { grid-template-columns: 1fr; }
  .th-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .th-from { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .tl-card { padding: 16px 14px 6px; border-radius: 18px; }
  .tl-x { width: 128px; }
  .tl-f-top label, .tl-item-name { font-size: 15px; }
  .tl-chips { grid-template-columns: 1fr; }
  .tl-kpis { grid-template-columns: 1fr; }
  .tl-kpis > div:nth-child(even) { padding: 14px 0; border-left: 0; }
  .tl-key { grid-template-columns: 1fr; }
  .tl-rail-row { grid-template-columns: 96px minmax(0, 1fr); }
  .tl-rail-mark { left: calc(104px + (100% - 104px) * var(--x, 0)); }
  .tl-item-note { margin-left: 0; }
  .tl-item .tl-range, .tl-item .tl-ends { margin-left: 0; width: 100%; }
  .tl-out { padding: 20px 16px; border-radius: 20px; }
  .th-live { padding: 16px 14px 18px; }
  .tl-presets .tl-pill { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-rank i span, .tl-rail-mark, .tl-split i, .tl-funnel i span, .th-stack i, .tl-proof > a { transition: none; }
}

/* ---------- on paper ("Print or save as PDF"): the inputs as a short list, the results, the charts, the date ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { font-size: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .drawer, .sfoot, .close, .pg-acts, .tl-acts, .tl-mini, .tl-range, .tl-ends, .tl-presets, .tl-chips, .tl-noprint, .tl-mean-sec, .tl-faq-sec, .tl-rel-sec, .tl-proof-sec { display: none !important; }
  .pg-hero { padding: 0 0 10px !important; background: #fff !important; color: var(--ink) !important; }
  .pg-hero h1 { font-size: 22px !important; margin-top: 4px !important; }
  .pg-hero h1 em { color: var(--aqua-ink) !important; }
  .pg-hero .h1-label { color: var(--aqua-ink) !important; font-size: 12px !important; margin-bottom: 4px !important; }
  .pg-crumb, .pg-lede { display: none !important; }
  .tl-print-head { display: flex !important; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .tl-print-foot { display: block !important; margin-top: 12px; font-size: 10.5px; color: #3f3e3b; }
  .tl-sec { padding: 0 !important; background: #fff !important; }
  .tl-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .tl-sticky { position: static !important; }
  .tl-card { padding: 8px 0 !important; border-radius: 0 !important; background: #fff !important; }
  .tl-card + .tl-card { margin-top: 6px !important; }
  .tl-f, .tl-item { padding: 5px 0 !important; break-inside: avoid; }
  .tl-hint, .tl-item-note, .tl-legend-note { display: none !important; }
  .tl-x { width: 110px !important; }
  .tl-x input { height: 26px !important; border: 0 !important; text-align: right; font-size: 13px !important; padding: 0 0 0 20px !important; }
  .tl-x::before { left: 4px !important; }
  .tl-item.off { display: none !important; }
  .tl-out { padding: 12px !important; border-radius: 10px !important; break-inside: avoid; }
  .tl-big { font-size: 34px !important; }
  .tl-block { margin-top: 12px !important; break-inside: avoid; }
  .tl-how { margin-top: 12px !important; border-style: solid !important; font-size: 11px !important; padding: 10px 12px !important; }
  .tl-levers { grid-template-columns: repeat(3, 1fr) !important; }
  .tl-lever { padding: 10px !important; border: 1px solid var(--line); }
  .tl-levers-h { margin-top: 12px !important; }
  a[href]::after { content: none !important; }
}
