/*
 * Free tools (/tools/ and /tools/<slug>/), templates/free-tools.php, free-tool.php, inc/tools/*.php.
 * Type scale as on the alternative pages: 13 / 15 / 17 / 18px, headings from main.css.
 */
.page-tool, .page-tools-hub { --ok: #15803d; --ok-bg: #ecfdf3; --bad: #b42328; --bad-bg: #fdecec; }

/* ---------- The tool: form + results ---------- */
.tl-app { padding-top: clamp(2rem, 5vw, 3rem) !important; }
.tl-app__grid { display: grid; gap: 1.5rem; align-items: start; }
.tl-form, .tl-out { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.tl-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.tl-form > *, .tl-pair > *, .tl-app__grid > * { min-width: 0; }
.tl-form__title { margin: 0; font-size: 1.16rem; }
.tl-field { display: grid; gap: .4rem; min-width: 0; }
.tl-field > label { font-size: .9375rem; font-weight: 650; color: var(--ink); }
.tl-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.tl-row { display: flex; gap: .5rem; min-width: 0; }
.tl-row > .tl-input { flex: 1; }
.tl-input { display: flex; align-items: stretch; min-width: 0; border: 1.5px solid #cfd8e6; border-radius: var(--r-sm); background: var(--white); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.tl-input:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
.tl-input:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.tl-input input { flex: 1; width: 100%; min-width: 0; min-height: 3rem; padding: .6rem .85rem; border: 0; border-radius: inherit; background: transparent; font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--ink); outline: none; }
.tl-input__affix { display: grid; place-items: center; padding: 0 .75rem; font-size: .9375rem; font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; }
.tl-input--pre .tl-input__affix { border-right: 1px solid var(--line); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.tl-input--post .tl-input__affix:last-child { border-left: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tl-select { width: 100%; margin: 0; min-height: 3rem; box-sizing: border-box; height: 3.19rem; padding: .6rem 2.2rem .6rem .85rem; border: 1.5px solid #cfd8e6; border-radius: var(--r-sm); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .7rem center / 1rem no-repeat; font-size: 1rem; color: var(--ink); appearance: none; cursor: pointer; }
.tl-select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
.tl-select--small { width: 5rem; flex: none; }
.tl-hint { font-size: .8125rem; color: var(--muted); }
.tl-err { margin: 0; padding: .45rem .7rem; border-radius: var(--r-sm); background: var(--bad-bg); color: var(--bad); font-size: .875rem; font-weight: 600; }

.tl-out { position: relative; }
.tl-out__label { margin: 0; font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-out__big { margin: .25rem 0 0; font-family: var(--font-head); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-out__sub { margin: .35rem 0 1.25rem; font-size: .9375rem; color: var(--muted); }
.tl-out.is-empty .tl-out__big, .tl-out.is-empty .tl-stats, .tl-out.is-empty .tl-split { opacity: .35; }
.tl-split { display: flex; height: .8rem; border-radius: 99px; overflow: hidden; background: var(--surface); }
.tl-split > span { transition: width .45s var(--ease); }
.tl-split__d { width: var(--d); background: var(--sun); }
.tl-split__p { width: var(--p); background: var(--blue-600); }
.tl-split__i { flex: 1; background: #9db7ec; }
.tl-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .6rem 0 1.25rem; font-size: .8125rem; color: var(--muted); }
.tl-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.tl-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; }
.tl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; margin: 0; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.tl-stats div { min-width: 0; }
.tl-stats dt { font-size: .8125rem; color: var(--muted); }
.tl-stats dd { margin: .1rem 0 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl-stats small { display: block; font-size: .75rem; color: var(--muted); }
.tl-stats__wide { grid-column: 1 / -1; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--sun-50); }
.tl-stats__wide[hidden] { display: none; }
.tl-out__tools { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.tl-out__tools .sc-iconbtn, .sc-iconbtn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .5rem .8rem; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.sc-iconbtn:hover { background: var(--surface); color: var(--blue-700); }
.sc-iconbtn .icon { width: 1.05rem; height: 1.05rem; color: var(--blue-600); }

/* Field groups, two-part bar (costs vs profit), loss and over-target states. */
.tl-group { display: grid; gap: 1rem; margin: 0; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.tl-group legend { padding: 0 0 .25rem; font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-split__c { width: var(--c); background: #8796ad; }
.tl-split__g { flex: 1; background: var(--ok); }
.tl-out.is-loss .tl-out__big { color: var(--bad); }
.tl-out.is-loss .tl-split__g { background: var(--bad); }
.tl-stats__max { background: var(--ok-bg) !important; }
.tl-stats__max.is-over { background: var(--sun-50) !important; }
.tl-stats__max small { font-size: .8125rem; }

/* Funnel (lead ROI): one row per step with a bar, the count and the cost per item. */
.tl-form__note { margin: -.4rem 0 0; }
.tl-legend-note { font-weight: 500; letter-spacing: 0; text-transform: none; }
.tl-funnel__title { margin: 1.4rem 0 .75rem; font-size: 1rem; }
.tl-funnel { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.tl-funnel li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2.75rem; grid-template-areas: "name bar n" "name cost cost"; align-items: center; gap: .15rem .6rem; font-size: .875rem; }
.tl-funnel__name { grid-area: name; font-weight: 600; color: var(--ink); }
.tl-funnel__bar { grid-area: bar; height: .6rem; border-radius: 99px; background: var(--surface); overflow: hidden; }
.tl-funnel__bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue-600); transition: width .45s var(--ease); }
.tl-funnel li:last-child .tl-funnel__bar i { background: var(--ok); }
.tl-funnel__n { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.tl-funnel__cost { grid-area: cost; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Website cost estimator: feature checkboxes, level badge, lists. */
.tl-checks { list-style: none; display: grid; gap: .6rem; margin: 0; padding: 0; }
.tl-check { position: relative; display: flex; align-items: flex-start; gap: .75rem; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.tl-check:hover { border-color: #b9c8e2; }
.tl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tl-check__box { display: grid; place-items: center; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; border: 1.5px solid #b9c5d8; border-radius: 6px; background: var(--white); color: transparent; transition: all .15s var(--ease); }
.tl-check__box .icon { width: .85rem; height: .85rem; }
.tl-check input:checked + .tl-check__box { border-color: var(--blue-600); background: var(--blue-600); color: var(--white); }
.tl-check input:focus-visible + .tl-check__box { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.tl-check:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.tl-check__text { display: grid; gap: .1rem; min-width: 0; }
.tl-check__text strong { font-size: .9375rem; color: var(--ink); }
.tl-check__text small { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.tl-check__tag { display: none; margin-left: auto; padding: .05rem .5rem; border-radius: 99px; background: var(--sun-50); color: #7a5300; font-size: .6875rem; font-weight: 700; white-space: nowrap; align-self: center; }
.is-common .tl-check__tag { display: inline-block; }
.tl-level { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 99px; font-size: .6875rem; letter-spacing: .04em; vertical-align: .1em; }
.tl-level--simple { background: var(--ok-bg); color: var(--ok); }
.tl-level--standard { background: var(--blue-50); color: var(--blue-700); }
.tl-level--advanced { background: #eef0ff; color: #4338ca; }
.tl-level--custom { background: var(--sun-50); color: #7a5300; }
.tl-out__big--range { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.tl-out__h { margin: 1.25rem 0 .5rem; font-size: .9375rem; }
.tl-ticks { list-style: none; display: grid; gap: .4rem; margin: 0; padding: 0; }
.tl-ticks li { position: relative; padding-left: 1.4rem; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.tl-ticks li::before { content: ''; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.tl-ticks--plus li::before { content: '+'; top: 0; left: .1rem; width: auto; height: auto; border: 0; transform: none; color: #9a5b00; font-weight: 800; }
.tl-more { margin-top: .9rem; }
.tl-more summary { font-size: .9375rem; font-weight: 650; color: var(--blue-700); cursor: pointer; }
.tl-more .tl-ticks { margin-top: .6rem; }
.tl-custom { margin-top: .25rem; }
.tl-custom[hidden] { display: none; }
.tl-monthly { list-style: none; display: grid; gap: .35rem; margin: 0; padding: 0; }
.tl-monthly li { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--text); }
.tl-monthly b { font-weight: 650; color: var(--ink); text-align: right; }
.tl-out__cta { width: 100%; margin-top: 1.4rem; }
.tl-out__fine { margin: .6rem 0 0; font-size: .8125rem; color: var(--muted); text-align: center; }

/* MAO: where the ARV goes (offer, fee, repairs, the buyer's costs and profit), and the what-if list. */
.tl-water { display: flex; height: .8rem; border-radius: 99px; overflow: hidden; background: var(--surface); }
.tl-water > span { transition: width .45s var(--ease); }
.tl-water__m { width: var(--m); background: var(--ok); }
.tl-water__f { width: var(--f); background: var(--sun); }
.tl-water__r { width: var(--r); background: #f59e0b; }
.tl-water__b { width: var(--b); background: #a9c2f2; }
.tl-legend .tl-water__r { background: #f59e0b; }
.tl-whatif b.is-neg { color: var(--bad); }

/* CRM workflow planner: picker bar, ten editable sections, print view. */
.wf-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.wf-bar__pick { display: grid; gap: .5rem; min-width: min(100%, 18rem); }
.wf-bar__tools { display: flex; flex-wrap: wrap; gap: .25rem; }
.wf-status { margin: .75rem 0 0; font-size: .875rem; color: var(--muted); min-height: 1.3em; }
.wf-title { margin: 1.25rem 0 1rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.wf-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.wf-sec { min-width: 0; }
.wf-sec { padding: 1.15rem 1.15rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.wf-sec--pipeline { border-color: var(--blue-100); background: linear-gradient(180deg, var(--blue-50), var(--white) 60%); }
.wf-sec__head { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.wf-sec__n { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue-600); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .9375rem; }
.wf-sec__head h3 { margin: .1rem 0 .15rem; font-size: 1.05rem; }
.wf-sec__head p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.wf-list { list-style: none; display: grid; gap: .35rem; margin: 0; padding: 0; }
.wf-item { display: flex; align-items: flex-start; gap: .5rem; }
.wf-item__dot { flex: none; width: .4rem; height: .4rem; margin: 1rem .3rem 0; border-radius: 50%; background: #9aa8bd; }
.wf-item__n { margin-top: .5rem; display: grid; place-items: center; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--white); border: 1px solid var(--blue-100); font-size: .75rem; font-weight: 750; color: var(--blue-700); }
.wf-item__input { flex: 1; width: 100%; min-width: 0; min-height: 2.4rem; padding: .45rem .6rem; resize: none; overflow: hidden; line-height: 1.45; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; font: inherit; font-size: .9375rem; color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.wf-item__input:hover { border-color: var(--line); background: var(--white); }
.wf-item__input:focus { outline: none; border-color: var(--blue-600); background: var(--white); box-shadow: 0 0 0 3px rgba(47, 111, 228, .15); }
.wf-item__tools { display: flex; gap: .15rem; margin-top: .2rem; opacity: .55; transition: opacity .15s var(--ease); }
.wf-item:hover .wf-item__tools, .wf-item:focus-within .wf-item__tools { opacity: 1; }
.wf-btn { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: 700 .9rem/1 var(--font); color: var(--text); cursor: pointer; }
.wf-btn:hover { border-color: var(--blue-600); color: var(--blue-700); }
.wf-btn:disabled { opacity: .35; cursor: default; }
.wf-btn--x:hover { border-color: var(--bad); color: var(--bad); }
.wf-add { margin-top: .5rem; padding: .35rem .6rem; border: 1px dashed var(--line); border-radius: var(--r-sm); background: transparent; font: 650 .875rem/1.3 var(--font); color: var(--blue-700); cursor: pointer; }
.wf-add:hover { border-color: var(--blue-600); background: var(--blue-50); }
.wf-print { display: none; }
@media (hover: none) { .wf-item__tools { opacity: 1; } }
/* Two columns; the follow-up schedule and the pipeline span the width, their items flowing into columns. */
@media (min-width: 48rem) {
	.wf-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.wf-sec--follow, .wf-sec--pipeline { grid-column: 1 / -1; }
	.wf-sec--follow .wf-list { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); column-gap: 1.25rem; }
	.wf-sec--pipeline .wf-list { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); column-gap: 1.25rem; }
}
@media print {
	.wf-board, .wf-bar, .wf-status { display: none !important; }
	.wf-print { display: block; font-size: 11pt; }
	.wf-print h2 { font-size: 16pt; margin: 0 0 8pt; }
	.wf-print h3 { font-size: 12pt; margin: 10pt 0 3pt; break-after: avoid; }
	.wf-print ul, .wf-print ol { margin: 0 0 0 16pt; padding: 0; }
	.wf-print li { margin: 1pt 0; }
	.wf-title { display: none; }
}

/* Sliders (tools/sliders.js): a typed field with a filled range under it. */
.tl-slide { display: grid; gap: .45rem; min-width: 0; }
.tl-range { width: 100%; height: 1.6rem; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --p: 50%; }
.tl-range:focus { outline: none; }
.tl-range::-webkit-slider-runnable-track { height: .4rem; border-radius: 99px; background: linear-gradient(90deg, var(--blue-600) var(--p), #dfe6f1 var(--p)); }
.tl-range::-moz-range-track { height: .4rem; border-radius: 99px; background: #dfe6f1; }
.tl-range::-moz-range-progress { height: .4rem; border-radius: 99px; background: var(--blue-600); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin-top: -.425rem; border: 3px solid var(--white); border-radius: 50%; background: var(--blue-600); box-shadow: 0 1px 4px rgba(15, 30, 60, .3); transition: transform .15s var(--ease); }
.tl-range::-moz-range-thumb { width: 1.05rem; height: 1.05rem; border: 3px solid var(--white); border-radius: 50%; background: var(--blue-600); box-shadow: 0 1px 4px rgba(15, 30, 60, .3); }
.tl-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.tl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(47, 111, 228, .3); }
.tl-range--center::-webkit-slider-runnable-track { background: #dfe6f1; }
.pa-badge { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 99px; background: var(--blue-50); font-size: .8125rem; font-weight: 750; color: var(--blue-700); font-variant-numeric: tabular-nums; }
/* Price per acre: tabs, comp rows, dot plot. */
.pa-tabs { display: inline-flex; gap: 4px; margin: 0 0 1.25rem; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); box-shadow: var(--shadow); }
.pa-tabs button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .45rem 1.1rem; border: 0; border-radius: 99px; background: transparent; font: 650 .9375rem/1.2 var(--font); color: var(--text); cursor: pointer; }
.pa-tabs button .icon { width: 1rem; height: 1rem; }
.pa-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.pa-tabs button:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
[role=tabpanel][hidden] { display: none !important; }
.pc-rows { list-style: none; display: grid; gap: .5rem; margin: 0; padding: 0; }
.pc-row { display: grid; grid-template-columns: 1.4rem minmax(0, 1.3fr) minmax(0, 1fr) auto 2rem; align-items: center; gap: .5rem; }
.pc-row__n { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--blue-50); font-size: .75rem; font-weight: 750; color: var(--blue-700); }
.pc-row .tl-input input { min-height: 2.6rem; font-size: .9375rem; }
.pc-row__per { min-width: 5.5rem; font-size: .8125rem; font-weight: 650; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pc-plot { margin: .25rem 0 1.25rem; }
.pc-plot__line { position: relative; height: 1.6rem; margin: 0 .6rem; }
.pc-plot__line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #dfe6f1; }
.pc-plot__line i { position: absolute; top: 50%; width: .8rem; height: .8rem; margin: -.4rem 0 0 -.4rem; border: 2px solid var(--white); border-radius: 50%; background: #a9c2f2; box-shadow: 0 0 0 1px #a9c2f2; transition: left .4s var(--ease); }
.pc-plot__line b { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--blue-600); transition: left .4s var(--ease); }
.pc-plot__ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pa-tip { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--surface); font-size: .875rem; color: var(--text); }
.pa-tip .icon { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--blue-600); }
.pa-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue-700); text-decoration: underline; cursor: pointer; }
@media (max-width: 39.99rem) { .pc-row { grid-template-columns: 1.4rem minmax(0, 1fr) minmax(0, .8fr) 2rem; } .pc-row__per { grid-column: 2 / -1; text-align: left; } }
/* Seller net sheet: breakdown bar, item list, what-if strip. */
.sn-bar { display: flex; height: .9rem; border-radius: 99px; overflow: hidden; background: var(--surface); }
.sn-bar span { transition: width .45s var(--ease); }
.sn-c-loans { background: #8796ad; } .sn-c-comm { background: var(--blue-600); } .sn-c-close { background: var(--sun); } .sn-c-other { background: #f59e0b; } .sn-c-net { background: var(--ok); }
.tl-legend i.sn-c-loans, .tl-legend i.sn-c-comm, .tl-legend i.sn-c-close, .tl-legend i.sn-c-other, .tl-legend i.sn-c-net { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; }
.sn-items { list-style: none; display: grid; gap: .35rem; margin: 0; padding: 0; font-size: .875rem; }
.sn-items li { display: flex; justify-content: space-between; gap: 1rem; color: var(--text); }
.sn-items li span { display: inline-flex; align-items: center; gap: .45rem; }
.sn-items i { display: inline-block; flex: none; width: .55rem; height: .55rem; border-radius: 2px; }
.sn-items b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.sn-items__net { margin-top: .3rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .9375rem; }
.sn-items__net b { color: #15803d; font-weight: 800; }
.sn-w { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: 0; padding: 0; }
.sn-w li { display: grid; justify-items: center; gap: .25rem; padding: .5rem .25rem; border-radius: var(--r-sm); text-align: center; }
.sn-w li.is-now { background: var(--blue-50); }
.sn-w__bar { display: flex; align-items: flex-end; width: 1.5rem; height: 3.5rem; }
.sn-w__bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #a7d8b4; transition: height .4s var(--ease); }
.sn-w li.is-now .sn-w__bar i { background: var(--ok); }
.sn-w__bar i.is-neg { background: var(--bad); }
.sn-w b { font-size: .8125rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.sn-w small { font-size: .6875rem; line-height: 1.3; color: var(--muted); }
@media (max-width: 39.99rem) {
	.sn-w { gap: .2rem; }
	.sn-w li { padding: .45rem .1rem; min-width: 0; }
	.sn-w b { font-size: .6875rem; letter-spacing: -.01em; }
	/* Slider pairs stack on phones, so a label that wraps never pushes its neighbour out of line. */
	.tl-pair:has(.tl-slide) { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Schedule ---------- */
.tl-sched { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.tl-sched__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.tl-sched__head h2 { margin: 0; font-size: 1.16rem; }
.tl-sched__scroll { max-height: 26rem; overflow: auto; }
.tl-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tl-table th, .tl-table td { padding: .6rem 1rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tl-table th:first-child { text-align: left; }
.tl-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: .8125rem; font-weight: 700; color: var(--muted); }
.tl-table tbody th { font-weight: 650; color: var(--ink); }
.tl-table tbody tr:hover { background: #fbfcfe; }

/* ---------- How it works ---------- */
.tl-how__grid { display: grid; gap: 2rem; }
.tl-how h3 { margin-top: 1.5rem; }
.tl-how p { color: var(--text); }
.tl-formula, .tl-limits { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.tl-formula__title, .tl-limits__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-formula ul, .tl-limits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.tl-formula code { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55; color: var(--ink); white-space: normal; }
.tl-limits { margin-top: 1rem; border-color: #f3e2b5; background: var(--sun-50); }
.tl-limits__title .icon { width: 1.05rem; height: 1.05rem; color: #9a5b00; }
.tl-limits li { position: relative; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.6; color: var(--text); }
.tl-limits li::before { content: ''; position: absolute; left: 0; top: .65em; width: .4rem; height: .4rem; border-radius: 50%; background: #c79a2e; }

/* ---------- Next step ---------- */
.tl-next__box { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); border: 1px solid var(--blue-100); border-radius: calc(var(--r-lg) + 4px); background: radial-gradient(28rem 16rem at 100% 0%, rgba(47, 111, 228, .12), transparent 70%), var(--blue-50); }
.tl-next__box h2 { margin-bottom: .6rem; max-width: 20em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.tl-next__box p:last-child { margin: 0; color: var(--text); font-size: 1.0625rem; }
.tl-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.tl-next__box > div:first-child p:last-child { max-width: 36rem; }

/* ---------- Tool cards and the hub ---------- */
.tl-cards { list-style: none; display: grid; gap: 1rem; margin: 0; }
.tl-card { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
a.tl-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tl-card > .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-left: auto; color: var(--blue-600); }
.tl-card__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-100); }
.tl-card__icon .icon { width: 1.3rem; height: 1.3rem; }
.tl-card__text { display: grid; gap: .25rem; min-width: 0; }
.tl-card__text strong { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 750; }
.tl-card__text small { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.tl-card--soon { background: var(--surface); }
.tl-card--soon .tl-card__icon { background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tl-card__soon { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-family: var(--font); font-size: .6875rem; font-weight: 650; color: var(--muted); vertical-align: .15em; }
.tl-hub__cat + .tl-hub__cat { margin-top: 2.75rem; }
.tl-hub__head { margin-bottom: 1rem; }
.tl-hub__head h2 { margin: 0 0 .25rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.tl-hub__head p { margin: 0; color: var(--muted); }
.tl-hub__ref { display: flex; align-items: center; gap: .6rem; margin: 2.75rem 0 0; padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--r); color: var(--text); }
.tl-hub__ref .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--sun-600); }

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
	.tl-cards { grid-template-columns: 1fr 1fr; }
	.tl-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
	.tl-app__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
	.tl-out { position: sticky; top: calc(var(--header-h, 4.5rem) + 1rem); }
	.tl-how__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
	/* Text on the left, the actions stacked in a narrow column on the right (the heading keeps its width). */
	.tl-next__box { grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); gap: 3rem; }
	.tl-next__actions { flex-direction: column; align-items: stretch; gap: .9rem; }
	.tl-next__actions .btn { width: 100%; }
	.tl-next__actions .link-arrow { justify-content: space-between; padding: .7rem .9rem; border: 1px solid var(--blue-100); border-radius: var(--r-sm); background: rgba(255, 255, 255, .7); }
	.tl-next__actions .link-arrow:hover { background: var(--white); }
	.tl-cards--small { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 39.99rem) {
	.tl-next__actions .btn { width: 100%; }
	.tl-table th, .tl-table td { padding: .55rem .7rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tl-split > span, .tl-card { transition: none; }
}

/* ---------- Print: the results and the schedule only ---------- */
@media print {
	.site-header, .site-footer, .page-hero__actions, .tl-form, .tl-out__tools, .tl-sched__head button, .tl-next, .cat-links, .faq, .cta-band, .tl-how, .chat, [class*="chat-"] { display: none !important; }
	.tl-app__grid { display: block; }
	.tl-out, .tl-sched { box-shadow: none; border-color: #ccc; }
	.tl-sched__scroll { max-height: none; overflow: visible; }
}

/* Hero size: a gentle grow-in when the page opens. */

/* Tool page hero: the illustration in a framed panel. */
.tl-hero-art { position: relative; padding: clamp(.75rem, .5rem + 1vw, 1.25rem); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px); background: var(--white); box-shadow: var(--shadow-lg); }
.tl-hero-art__note { display: flex; align-items: center; gap: .5rem; margin: .75rem .25rem 0; font-size: .8125rem; color: var(--muted); }
.tl-hero-art__note .icon { width: 1rem; height: 1rem; color: #15803d; }

/* ---------- Hub (redesign) ---------- */
.tl-hub-hero__stack { position: relative; height: 0; padding-bottom: 82%; }
.tl-hub-hero__stack > div { position: absolute; width: 68%; padding: .55rem; border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 2px); background: var(--white); box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); }
.tl-hub-hero__stack > div:nth-child(1) { left: 0; top: 4%; transform: rotate(-4deg); z-index: 1; }
.tl-hub-hero__stack > div:nth-child(2) { right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.tl-hub-hero__stack > div:nth-child(3) { left: 16%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.tl-hub-hero__stack:hover > div:nth-child(1) { transform: rotate(-6deg) translateX(-6px); }
.tl-hub-hero__stack:hover > div:nth-child(2) { transform: rotate(5deg) translateX(6px); }
.tl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; font-size: .9375rem; color: var(--text); }
.tl-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.tl-facts .icon { width: 1.05rem; height: 1.05rem; color: #15803d; }
.tl-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.tl-filter button { min-height: 2.5rem; padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--white); font: inherit; font-size: .9375rem; font-weight: 650; color: var(--text); cursor: pointer; transition: all .15s var(--ease); }
.tl-filter button:hover { border-color: #b9c8e2; color: var(--ink); }
.tl-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tl-filter button span { margin-left: .35rem; font-weight: 500; opacity: .7; }
.tl-why { list-style: none; display: grid; gap: 1.5rem; margin: 0; padding: 0; }
.tl-why li { display: flex; gap: .9rem; align-items: flex-start; }
.tl-why__icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-100); }
.tl-why__icon .icon { width: 1.25rem; height: 1.25rem; }
.tl-why h3 { margin: .25rem 0 .25rem; font-size: 1.05rem; }
.tl-why p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--text); }
/* Small "more tools" cards: a thumbnail of the illustration. */
.tl-card__thumb { flex: none; width: 5.5rem; border-radius: 10px; overflow: hidden; }
@media (min-width: 64rem) { .tl-why { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 63.99rem) { .tl-hub-hero__stack { max-width: 30rem; margin: 1rem auto 0; } }
@media (prefers-reduced-motion: reduce) { .tl-hub-hero__stack > div { transition: none; } }

/* ---------- Rental property, commission and BRRRR calculators ---------- */
.tl-hint--group { margin: .25rem 0 -.25rem; font-weight: 600; color: var(--text); }
.rp-one { font-family: var(--font) !important; font-size: .9375rem !important; font-weight: 650 !important; letter-spacing: 0 !important; }
.sn-items .rp-items__in { padding-bottom: .4rem; margin-bottom: .1rem; border-bottom: 1px dashed var(--line); font-weight: 650; color: var(--ink); }
.sn-items__net.is-neg b { color: var(--bad); }
/* Segmented choice (two radio buttons that look like one switch). */
.tl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; margin: 0 0 1.1rem; border: 1.5px solid #cfd8e6; border-radius: var(--r-sm); background: var(--surface); }
.tl-seg label { position: relative; display: block; margin: 0; cursor: pointer; }
.tl-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-seg span { display: grid; place-items: center; min-height: 2.6rem; padding: .4rem .6rem; border-radius: calc(var(--r-sm) - 3px); font-size: .9375rem; font-weight: 650; line-height: 1.25; text-align: center; color: var(--text); transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.tl-seg input:checked + span { background: var(--white); color: var(--blue-700); box-shadow: 0 1px 3px rgba(11, 26, 51, .12), inset 0 0 0 1px var(--blue-100); }
.tl-seg input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
/* BRRRR: numbered steps, cash in vs cash back, and the "you got it all back" state. */
.br-step { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .5rem; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: .8125rem; font-weight: 800; vertical-align: .05em; }
.tl-out.is-win .tl-out__big { color: #15803d; }
.br-flow { display: grid; gap: .45rem; margin: .9rem 0 1.25rem; }
.br-flow p { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; margin: 0; font-size: .8125rem; color: var(--muted); }
.br-flow b { font-size: .875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.br-flow__track { height: .7rem; border-radius: 99px; background: var(--surface); overflow: hidden; }
.br-flow__track i { display: block; height: 100%; border-radius: 99px; transition: width .45s var(--ease); }
.br-flow__in { background: #8796ad; }
.br-flow__back { background: var(--ok); }
.tl-stats dd.is-neg { color: var(--bad); }
.br-w .sn-w__bar i { background: #a7d8b4; }
.br-w .sn-w__bar i.is-left { background: #fcd38d; }
.br-w li.is-now .sn-w__bar i { background: var(--ok); }
.br-w li.is-now .sn-w__bar i.is-left { background: var(--sun); }
@media (prefers-reduced-motion: reduce) { .tl-seg span, .br-flow__track i { transition: none; } }
