← Demos
Web Pages · Demos

Raise Check KY

by Peter Marra Nov 17, 2026 14 views 229.1 KB
Sandbox · raise-check-ky · no access to your account
View source — the whole page is this one file
<!-- Copyright (c) 2026 Peter Marra. Released under the MIT License. -->
<!--
  Raise Check KY — a Kentucky benefits-cliff planner for working parents.
  Entry for the Kentucky PFM Challenge 2026 (Budgeting category).

  MIT License
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
  associated documentation files (the "Software"), to deal in the Software without restriction, including
  without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
  following conditions: The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
  LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
  EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  USE OR OTHER DEALINGS IN THE SOFTWARE.

  Third-party material: the embedded typeface Atkinson Hyperlegible Next is
  Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors and is used under the
  SIL Open Font License 1.1 (https://openfontlicense.org). No other outside code is used.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Raise Check KY</title>
<meta name="description" content="Will this raise leave you ahead? A Kentucky benefits-cliff planner for working parents on child care assistance, SNAP, or Medicaid.">
<style>
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAC9AABAAAAAAgCgAAC7hAAEAAAAAAAAA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zAxEPHQhgg1LF0pUYp1KHLZIvU6zsolx5Kuek9TtRBW+OrNQrs5XIUSpSZRRqWQWZw4SVL0OQXCgf6CvL1MXWV65Itlz5MgRTPGauVcletI1VNZaeBDUrX+f5baWACwdOQ905ed0E7SRB257AnfANlw+FSApj+ORdXbPwc+UhW3hSnfIaoGvPneaSvWDSWI6RF7sItgdTJmYuVSBbpk4OUlXXvHSrE6qK6x1TUa+Zq2RwkPm6QQsrLTx3Ga5XBKuYqaVntkvs5bW2V5JjBzPZw+zy9Pj+AQxyIzC4JsNemfZZbCSRLLZeEst2XZt2dkYZTaJDpy7d7DNkH8Brn8NFj165+i2x3wGu3pJy2zvw6g4YlGeIF28+fL3mJ1Q+WEFfd7FNxghTaqxXZCZut0CZcXvfbfqmStVqQoIqESEjyl6F/+VqRavTYJJ6LSY7aIJ3YqiozRErzhSNmkwVL0GiJG+ckmy9DfCgIhro47DCswfJFkKbXQ46ImA2FgoDAfQcclgwBqYUafwF0rriiKOOOW6X3c45j4xgja7ZLPPMNd90qV6Y4SxqMGCmlWEC23sfnCAwAt8yW6ULQgsWYiMO0mt0YxpbTrnhI0SMFDlKVAuFWOCWe267Q8dwz0znno0PpQXL0KLHKC9mrNhx4sZzxhdffQvbBAnfw21VE2qn1GZVtdQrFGqbQqVQZtTL9hPPjkZ8aZZ0SKXz0Gt5miQVOZ6h0oM/t59UfUFHGn4CEFuUYsIH+hWHXoMWTeGHlBreS6FS6LOpV4JhvA5H9OF/a2fcg3Ht2scBThrRxhDya6f06smT3FQtlQRxg3YWW0ZlfVPNkDZqDBqvzuZVDX5Il/aIBjNMqhte2lLbs1ZObeXpjz1Auph2PkTkeLcEjkyLivpp9LyPSPQSjthvUVLf4tyc4+0GboBKqI4M+n+mGroC) format("woff2");}
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:700;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAADG8ABAAAAAAgBgAADFbAAEAAAAAAAAAAAAAAAAAAAAAAA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Bp1B81h0nqiY3O0KNg4Xaa3hQf154b1W8p/YH0NkHQcF7/I6rccJmadhqcfyAq877PvQRHr50Ah/7xKc+Iwz6xt4NrydxyWUNrtripFOkHpGR3+W7Jtd8rtEX1DSyaD2Q3XiTZc3tstvsZmXTIcd9dgHuAp1y78pd9Zd69OkPBnrlJQQJvQP4WA3wWGyJpQbNWuZ5RR7z8im2XolSywUNWWGBMguVe+isRXfoPNERhoRD/M8zGcVRGHsx7PF2IpBIWCtaqAR6cV7wIhOsKBWq6Bhc9I6XvOwVrzrsiNe8LkQkpgjrDBuxwahVKt2z2gVhgYU1JhMFMZ546jQaOqoJ+1QzCo9oJAaJReKKL6HEcCWFLzlCKRFLjWQjszHX3XTDV25JvEep3kN8NqQihRwlarToMWLGKi22837xq9/ixI33xvitq66vDtsb2d6UmSkzZkozxRFNotaOmlavxxmWrJZIlVlIwcNiuJCQvJZkEf5V+Iyat16kX+NQmI3e1MfJ/96rY94tFoWxJGK5m5QpzVRF0cyCRyuV0Zb+n77dI/5Z4u51/7lvScxOnoYHRlXX9Pb47GpwhiQUFcsYI3qaWmsP6mI+sVIW5VZ91JIow/6bgrCe+tCO9rpP/p7+KA9/g0Jv08NeuZCE5N8a8OYGdjcN0FdoJJ/pmy2SzwPbm9rV72mlSR2KkjbS08izNacwYwAA) format("woff2");}
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:800;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAADFkABAAAAAAgEgAADEDAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnIb4BQchgIGYD9TVEFURACFAhEICvY03RILg3AAATYCJAOHXAQgBYZWB4ckDAcbnnBFB2rYOIA9w3qVUdQotSo7EmEnFyWs+P+UQMcYRxsHrYKsqjKXnXS4AsKmxDPV1eKhPRzcFQ0xJ+XmbGOD8zNvWOe5n1rRX08t/4qi7Lmw6ZJCanKzfAa2jfxJTl4e4sdBvZlZU2l9dgKYbtNBDu3SVSGR/wfebb0Pu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jYBm2SzETz/BBfBE8QtBPoiTJ+ksxQKo06QbKYCWLFe555L4HHiNVW2rVirdkIEYEyZQlW45cefIVGMxZr/3hzxAqMr/Y3VTSUt5RjmtvqFYo1CaFShHmVS2v+56Snurw8E1QqnQSohUeDM3MYV8+WUn52j6r9PMacYCjYDGlB7ay3+trYn5eFqrYyjCNKVeoFHpvlB3QVq/zQfxtvx29/l5xx/Jf+xvxnbFetL1xcWl7G8ckNUvpyNplTF5t1XVlFk3KfvVqb9O8zVbqPH6BwRJtFe6NDeX/1LR1csLzUw3VzfT4qkPmsD9CoIaGtFZ34Vc6shV+QiNbDWmobtCu0HqzwZGVq6lOIu/6MswKAAA=) format("woff2");}
:root {
  --bg: #EEF1F4; --surface: #FFFFFF; --sunk: #E3E8EE;
  --ink: #17202E; --ink-2: #4A5568; --rule: #CBD3DD;
  --indigo: #24478A; --indigo-soft: #E2E9F6;
  --gold: #E3A92B; --gold-soft: #FBF1D9;
  --red: #B42318; --red-soft: #F6D3CF;
  --green: #1B7044; --green-soft: #CDEBD9;
  --map-up2: #1F7A4A; --map-up1: #B5E0C6; --map-dn1: #F3C4BE; --map-dn2: #B42318;
  --focus: #24478A;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141B; --surface: #161D27; --sunk: #1D2633;
    --ink: #E8EDF3; --ink-2: #A9B4C2; --rule: #2C3646;
    --indigo: #93B2F6; --indigo-soft: #1C2A44;
    --gold: #F2C25B; --gold-soft: #2E2716;
    --red: #FF8E80; --red-soft: #4A2320;
    --green: #74D6A0; --green-soft: #1B3B30;
    --map-up2: #74D6A0; --map-up1: #2F6E50; --map-dn1: #8A4038; --map-dn2: #FF8E80;
    --focus: #93B2F6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F141B; --surface: #161D27; --sunk: #1D2633;
  --ink: #E8EDF3; --ink-2: #A9B4C2; --rule: #2C3646;
  --indigo: #93B2F6; --indigo-soft: #1C2A44;
  --gold: #F2C25B; --gold-soft: #2E2716;
  --red: #FF8E80; --red-soft: #4A2320;
  --green: #74D6A0; --green-soft: #1B3B30;
  --map-up2: #74D6A0; --map-up1: #2F6E50; --map-dn1: #8A4038; --map-dn2: #FF8E80;
  --focus: #93B2F6; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
a { color: var(--indigo); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--rule); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--indigo); color: var(--indigo); background: transparent;
  padding: 8px 14px; border-radius: 8px; line-height: 1.2;
}
.btn:hover { background: var(--indigo-soft); }
.btn .short { display: none; }
.btn.primary { background: var(--indigo); color: var(--surface); }
.btn.primary:hover { filter: brightness(1.08); background: var(--indigo); }
.btn.quiet { border-color: var(--rule); color: var(--ink); }
.dirty-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: middle; }
.is-dirty .dirty-dot { display: inline-block; }
.notice { background: var(--gold-soft); border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.notice .wrap { padding-top: 8px; padding-bottom: 8px; }
.alert { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--red); background: var(--red-soft); color: var(--ink); display: none; }
.alert.show { display: block; }
.alert.ok { border-color: var(--green); background: var(--green-soft); }
svg text.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; max-width: 13ch; }
.lede { color: var(--ink-2); max-width: 46ch; margin: 0 0 12px; }
.built-for { max-width: 46ch; margin: 0 0 22px; font-size: 0.95rem; }
.examples { margin: 0 0 18px; }
.examples .ex-label { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left;
  border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 13px;
}
.chip[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo-soft); font-weight: 700; }
.example-note { font-size: 0.9rem; color: var(--ink-2); margin: 10px 0 0; min-height: 1.4em; }
.example-note .linkbtn, .undo-note .linkbtn { font-weight: 700; }
.undo-note { font-size: 0.9rem; margin: 4px 0 6px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 8px; }
.frame-note { font-weight: 700; padding-top: 6px; }
.alert .alert-btn { margin-left: 6px; padding: 4px 10px; font-size: 0.9rem; }

.verdict { border-left: 6px solid var(--ink-2); padding: 4px 0 4px 18px; }
.verdict.ahead { border-color: var(--green); }
.verdict.behind { border-color: var(--red); }
.verdict .pre { margin: 0; color: var(--ink-2); font-size: 1rem; }
.verdict .big { display: block; font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; }
.verdict.ahead .big { color: var(--green); }
.verdict.behind .big { color: var(--red); }
.verdict .post { margin: 0 0 12px; font-size: 1.05rem; }
.verdict .need { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; }
.verdict .year { margin: 0; color: var(--ink-2); }
.flash { animation: flash 700ms ease-out; }
@keyframes flash { from { background: var(--gold-soft); } to { background: transparent; } }

.chart-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 16px 10px; margin: 0; }
.chart-card h2, .chart-card h3 { font-size: 1.05rem; margin: 0 0 2px; font-weight: 700; }
.chart-card .sub { margin: 0 0 6px; color: var(--ink-2); font-size: 0.9rem; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ink-2); margin: 6px 2px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 10px; display: inline-block; border-radius: 2px; }
.readout { min-height: 1.5em; margin: 8px 2px 2px; font-size: 0.92rem; }

/* ---------- sections ---------- */
section.block { padding: 30px 0; border-top: 1px solid var(--rule); }
h2.sec { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 6px; }
h3.sub-h { font-size: 1.2rem; margin: 28px 0 4px; }
.sec-lede { color: var(--ink-2); margin: 0 0 20px; max-width: 64ch; }
.about .sec { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.about .sec-lede { margin-bottom: 10px; }
.facts { margin: 8px 0 0; padding-left: 20px; }
.facts li { margin: 0 0 10px; max-width: 62ch; }
.facts a { font-size: 0.88rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; margin: 0; }
.step h3 { margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: var(--surface); display: inline-grid; place-items: center; font-size: 0.95rem; font-weight: 800; flex: none; }
.field { margin: 0 0 14px; }
.field > label, .field > .lab { display: block; font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; }
.field.plain > label { font-weight: 400; }
.hint { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 3px; }
input[type="number"], select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 8px 10px; width: 100%;
}
input[type="number"]:focus, select:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px var(--indigo-soft); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.money input { padding-left: 24px; }
.pct { position: relative; }
.pct::after { content: "%"; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-weight: 700; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); flex: none; }
.check .hint { font-weight: 400; }
.kid { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; margin: 0 0 10px; background: var(--bg); }
.no-care { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 0.92rem; }
.kid-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font-weight: 700; font-size: 0.95rem; }
.linkbtn { font: inherit; font-size: 0.88rem; background: none; border: none; color: var(--indigo); cursor: pointer; text-decoration: underline; padding: 2px 0; }
.payblock { border-top: 1px dashed var(--rule); padding-top: 12px; margin-top: 4px; }
.payblock h4 { margin: 0 0 8px; font-size: 1rem; }
.monthly { font-size: 0.9rem; color: var(--ink-2); margin: -4px 0 10px; }
input.calc { border-style: dashed; background: var(--surface); }
.calc-tag { font-weight: 400; font-size: 0.8rem; color: var(--ink-2); margin-left: 4px; }
.warn { font-size: 0.88rem; color: var(--red); margin: 4px 0 0; }
details.adv { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 18px; }
details.adv summary { cursor: pointer; font-weight: 700; }
details.adv .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; margin-top: 12px; }

/* ---------- ledger ---------- */
.two { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
table.ledger { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-size: 0.98rem; }
.ledger th, .ledger td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--rule); }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger thead th { font-size: 0.88rem; color: var(--ink-2); font-weight: 700; background: var(--sunk); }
.ledger tr.sub td { color: var(--ink-2); font-size: 0.9rem; padding-top: 4px; padding-bottom: 4px; }
.ledger tr.sub td:first-child { padding-left: 26px; }
.ledger tr.total td { font-weight: 800; font-size: 1.08rem; border-bottom: none; background: var(--sunk); }
.pos { color: var(--green); } .neg { color: var(--red); }
.why { list-style: none; padding: 0; margin: 0; }
.why li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.why li:first-child { padding-top: 0; }
.why b { display: block; }
.meter { position: relative; height: 10px; background: var(--sunk); border-radius: 5px; margin: 8px 0 4px; }
.meter .lim { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.meter .pin { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--surface); }
.meter .pin.now { background: var(--ink-2); }
.meter .pin.off { background: var(--gold); }
.meter-key { font-size: 0.82rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ---------- make the offer work ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.option { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--indigo); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; }
.option h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; }
.option p { margin: 0 0 10px; }
.option .cost { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-2); }
.option .cost strong { color: var(--ink); }
.option .btn { margin-top: 12px; align-self: flex-start; }
.option.match { border-top-color: var(--gold); }
.option .fine { font-size: 0.85rem; color: var(--ink-2); }
.note-box { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--green); border-radius: 10px; padding: 14px 16px; max-width: 70ch; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.ask-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--red); background: var(--red-soft); max-width: 70ch; }
.ask-preview { margin-top: 16px; }
/* the one-page ask on screen: always black on white, like the printed page */
.paper { background: #fff; color: #000; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); padding: 28px 32px; max-width: 720px; font-size: 0.95rem; }
/* trying one of the options */
.trial-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; max-width: 70ch; }
.trial-bar p { margin: 0; flex: 1 1 26ch; }
.trial-bar:focus { outline: none; }
.trial-bar:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.option.trying { border: 2px solid var(--ink); border-top: 5px solid var(--indigo); }
.option.match.trying { border-top-color: var(--gold); }
.option .trying-tag { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }

/* ---------- bridge budget ---------- */
.plan-settings { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.plan-settings .field { margin: 0; min-width: 170px; flex: 0 1 200px; }
.plan-settings .check { margin: 0 0 6px; }
.take { font-size: 1.15rem; font-weight: 700; max-width: 62ch; margin: 0 0 6px; }
.take-2 { color: var(--ink-2); max-width: 62ch; margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; color: var(--ink-2); }
.stat strong { display: block; font-size: 1.4rem; color: var(--ink); line-height: 1.2; }
.stat strong.pos { color: var(--green); } .stat strong.neg { color: var(--red); }
.events { margin: 14px 0 0; padding: 0; list-style: none; }
.events li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.events .ev { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #17202E; font-size: 0.78rem; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
details.plan-details { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; }
details.plan-details summary { cursor: pointer; font-weight: 700; }
details.plan-details.ics-help { margin: 0 0 18px; }
.ics-help p, .ics-help ul { max-width: 70ch; margin: 10px 0 0; }
.ics-help li { margin: 0 0 6px; }
.ics-msg { margin: -6px 0 14px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--green); background: var(--green-soft); max-width: 70ch; }
table.plan { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.93rem; }
.plan th, .plan td { padding: 7px 8px; border-bottom: 1px solid var(--rule); text-align: right; }
.plan th:first-child, .plan td:first-child, .plan td.do { text-align: left; }
.plan thead th { background: var(--sunk); font-size: 0.85rem; color: var(--ink-2); }
.plan tr.refund td { background: var(--indigo-soft); }

/* ---------- tips & sources ---------- */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tip { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tip h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tip p { margin: 0; color: var(--ink-2); }
table.src { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface); }
.src th, .src td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.src th { background: var(--sunk); font-size: 0.85rem; }
.src td.n { white-space: nowrap; font-weight: 700; }
.limits { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.limits li { margin: 4px 0; }
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 0.9rem; color: var(--ink-2); }
footer p { margin: 0 0 8px; max-width: 80ch; }
.disclaimer { border: 1.5px solid var(--ink-2); border-radius: 10px; padding: 12px 14px; color: var(--ink); margin-bottom: 18px; }
.print-only, .ask-sheet { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .paper { padding: 18px 16px; }
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .ledger th, .ledger td { padding: 8px 8px; }
  .ledger { font-size: 0.9rem; }
  .plan th, .plan td { padding: 6px 5px; }
  .plan { font-size: 0.86rem; }
  .src td.n { white-space: normal; }
  .brand b { font-size: 1.05rem; }
  .tools { width: 100%; }
  .tools .btn { flex: 1 1 0; font-size: 0.9rem; padding: 9px 6px; }
  .btn .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn .short { display: inline; }
  .src thead { display: none; }
  .src tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .src td { display: block; border: none; padding: 2px 10px; }
  .plan-settings .field { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 380px) {
  .kid .row2 { grid-template-columns: 1fr; gap: 8px; }
  .no-care { min-height: 0; }
  .ledger th, .ledger td { padding: 6px 3px; }
  .ledger { font-size: 0.8rem; }
  .ledger td:not(:first-child) { white-space: nowrap; }
  .ledger tr.total td { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* ---------- print: a summary to bring to a meeting ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --sunk: #f1f3f5; --ink: #000; --ink-2: #333; --rule: #bbb; }
  body { font-size: 11pt; }
  .top, .notice, .examples, #about, #numbers, #tips, #sources .src-table, .chips, .no-print, details.adv, .plan-settings, .option .btn, .trial-bar .btn, #trialBar { display: none !important; }
  .print-only { display: block; }
  .hero { padding: 0 0 10px; }
  .hero-grid, .two { grid-template-columns: 1fr 1fr; gap: 18px; }
  h1 { font-size: 20pt; max-width: none; }
  section.block { padding: 12px 0; break-inside: avoid; }
  a { color: #000; }
  body.print-ask main, body.print-ask footer { display: none !important; }
  body.print-ask .ask-sheet { display: block !important; }
}
/* one-page ask for an employer (printed on its own) */
.ask-sheet { max-width: 720px; margin: 0 auto; padding: 24px; font-size: 11.5pt; color: #000; }
.ask-sheet .ask-title { font-size: 20pt; max-width: none; margin: 0 0 4px; }
.paper .ask-title { font-size: 1.5rem; margin: 0 0 4px; }
.ask-sheet .meta, .paper .meta { color: #333; margin: 0 0 18px; }
.ask-sheet ul, .paper ul { padding-left: 20px; }
.ask-sheet li, .paper li { margin: 0 0 12px; }
.ask-sheet .box, .paper .box { border: 1.5px solid #333; border-radius: 8px; padding: 12px 14px; margin: 16px 0; }
.ask-sheet .small { font-size: 9.5pt; color: #333; }
.paper .small { font-size: 0.82rem; color: #333; }
</style>
</head>
<body>

<header class="top">
  <div class="wrap">
    <a class="brand" href="#top" aria-label="Raise Check KY, top of page">
      <!-- barn-quilt block: steps climbing, then one dropping away -->
      <svg viewBox="0 0 40 40" aria-hidden="true">
        <rect width="40" height="40" rx="6" fill="var(--indigo)"/>
        <rect x="4" y="4" width="32" height="32" rx="2" fill="var(--surface)"/>
        <path d="M4 36h8v-8h8v-8h8v-8h8v24z" fill="var(--indigo)"/>
        <path d="M28 12h8v8l-8-8z" fill="var(--gold)"/>
        <path d="M20 20h8v8h-8z" fill="var(--gold)"/>
        <path d="M12 28h8v8h-8z" fill="var(--red)"/>
      </svg>
      <b>Raise Check KY</b>
    </a>
    <div class="tools" id="tools">
      <button class="btn quiet" id="openBtn" type="button"><span class="long">Open saved numbers</span><span class="short" aria-hidden="true">Open</span></button>
      <button class="btn" id="saveBtn" type="button"><span class="long">Save my numbers</span><span class="short" aria-hidden="true">Save</span><span class="dirty-dot" aria-hidden="true"></span></button>
      <button class="btn primary" id="printBtn" type="button"><span class="long">Print summary</span><span class="short" aria-hidden="true">Print</span></button>
      <input type="file" id="fileIn" accept=".json,application/json" hidden>
    </div>
  </div>
</header>
<div class="notice" role="note">
  <div class="wrap">For learning and planning only. This is not financial, tax, or legal advice. Your numbers stay on this device: the page sends nothing anywhere and works offline.</div>
  <div class="wrap frame-note" id="frameNote" hidden>You’re viewing this page inside a preview, so saving, printing, and calendar files may not work here. Open the file in Chrome, Edge, Safari, or Firefox to use everything.</div>
</div>

<main id="top">
<div class="wrap">
  <div class="alert" id="alert" role="alert"></div>

  <section class="hero" aria-labelledby="h1">
    <div class="print-only"><p><strong>My raise check</strong>, prepared <span class="printDate"></span> with Raise Check KY. Estimates only; confirm with your caseworker or kynect.</p></div>
    <div class="hero-grid">
      <div>
        <h1 id="h1">Will this raise leave you ahead?</h1>
        <p class="lede">In Kentucky, a raise or more hours can cost a working parent more in lost child care help, SNAP, health coverage, and tax credits than it adds in pay. See what you’d really have left, find an offer that works, and plan the months in between.</p>
        <p class="built-for"><strong>Built for single-parent households:</strong> one Kentucky parent raising one to five children who gets child care help (CCAP), SNAP, or Medicaid and has been offered a raise, a promotion, or more hours.</p>
        <div class="trial-bar" id="trialTop" tabindex="-1" hidden><p></p><button class="btn" type="button" data-back="top">Back to the original offer</button></div>
        <div class="verdict" id="verdict" aria-live="polite" tabindex="-1">
          <p class="pre" id="vPre">Once every program adjusts, the offer leaves you with</p>
          <span class="big" id="vBig">$0</span>
          <p class="post" id="vPost">every month.</p>
          <p class="need" id="vNeed"></p>
          <p class="year" id="vYear"></p>
        </div>
      </div>
      <div>
        <div class="examples">
          <p class="ex-label" id="exLabel">Start with an example household, then change the numbers to match yours.</p>
          <div class="chips" role="group" aria-labelledby="exLabel" id="chips"></div>
          <p class="example-note" id="exNote" aria-live="polite"></p>
        </div>
        <figure class="chart-card">
          <h2>Money left each month at different pay levels</h2>
          <p class="sub" id="chartSub">Drag or tap the chart to read any point.</p>
          <svg id="cliff" class="chart-svg" viewBox="0 0 640 360" role="img" aria-labelledby="cliffDesc"></svg>
          <p class="sr" id="cliffDesc"></p>
          <div class="legend" aria-hidden="true">
            <span><i class="sw" style="background:var(--indigo)"></i>Money left after bills</span>
            <span><i class="sw" style="background:repeating-linear-gradient(135deg,var(--red) 0 2px,transparent 2px 5px)"></i>Pay that leaves you worse off than today</span>
            <span><i class="sw" style="background:var(--gold)"></i>The offer</span>
          </div>
        </figure>
      </div>
    </div>
  </section>

  <section class="block about" id="about" aria-label="Why this matters and what is different">
    <div class="two">
      <div>
        <h2 class="sec">Why this matters in Kentucky</h2>
        <ul class="facts">
          <li><strong>About 113,000 Kentucky households</strong> are a single parent raising children under 18 (about 88,000 mothers and 25,000 fathers), and <strong>about 316,000 Kentucky children, roughly one in three,</strong> live in a single-parent family. <a href="https://kybtn.mgcafe.uky.edu/sites/kybtn.ca.uky.edu/files/2024_profile_Kentucky.pdf" target="_blank" rel="noopener noreferrer">University of Kentucky</a>, <a href="https://assets.aecf.org/m/resourcedoc/2026-KCDB-profile-KY.pdf" target="_blank" rel="noopener noreferrer">KIDS COUNT 2026</a></li>
          <li><strong>About 23,400 Kentucky families a month</strong> got child care help (CCAP) from July to December 2025. In those six months, <strong>1,161 families</strong> who had earned past the income limit were in CCAP’s six-month transition, the exact cliff this page helps plan for. <a href="https://apps.legislature.ky.gov/CommitteeDocuments/369/44493/06%2017%202026%204.%20CCDF%20Half%20Year%2012.2025.pdf" target="_blank" rel="noopener noreferrer">DCBS report</a></li>
          <li>A 2024 study for the state found about <strong>19,600 families on Medicaid and 3,349 families getting child care help</strong> close to a cliff. If families hold their pay down to avoid cliffs, they give up <strong>more than $54 million</strong> in earnings in the first year. <a href="https://www.nccp.org/wp-content/uploads/2024/08/Kentucky-Benefits-Cliff-Report.pdf" target="_blank" rel="noopener noreferrer">NCCP study for the Kentucky Workforce Innovation Board</a></li>
        </ul>
      </div>
      <div>
        <h2 class="sec">What this adds to Kentucky’s own tool</h2>
        <p class="sec-lede">The state’s <a href="https://kcews.ky.gov/Reports/FRS" target="_blank" rel="noopener noreferrer">Family Resource Simulator</a> shows where cliffs fall for a sample family as income rises, and it covers more programs than this page. Raise Check is for the moment you have a real offer in hand:</p>
        <ul class="facts">
          <li><strong>Your offer, month by month.</strong> It shows when each change actually hits, including the six-month child care transition, your renewals, and the tax refund each March.</li>
          <li><strong>What to ask for instead.</strong> It finds the lowest raise, the closest hours, or an employer child care payment with Kentucky’s state match that would work, shows what each costs your employer, and prints a one-page ask for HR.</li>
          <li><strong>A plan for the gap.</strong> It shows how much to set aside or use each month, and gives you a calendar file with every deadline.</li>
        </ul>
      </div>
    </div>
  </section>

  <section class="block" id="numbers" aria-labelledby="numH">
    <h2 class="sec" id="numH">Your numbers</h2>
    <p class="sec-lede">Rough numbers are fine, and everything updates as you type. Your renewal months are on your notices from kynect or your caseworker.</p>
    <form class="steps" id="form" novalidate onsubmit="return false">
      <fieldset class="step">
        <h3><span class="num" aria-hidden="true">1</span>Your household</h3>
        <p class="hint" style="margin:-4px 0 12px">For single-parent households: you and one to five children under 18.</p>
        <div class="field">
          <span class="lab" id="kidsLab">Your children</span>
          <div id="kids" aria-labelledby="kidsLab"></div>
          <p class="undo-note" id="kidUndo" role="status" hidden><span></span> <button type="button" class="linkbtn">Undo</button></p>
          <button type="button" class="linkbtn" id="addKid">Add a child</button>
          <span class="hint">Enter what child care would cost each month with no help. We filled in Kentucky center averages by age. Use your provider’s price if you know it, or $0 if you don’t pay for care. Children 13 and older don’t need a child care price.</span>
        </div>
        <div class="field">
          <label for="careDaysPerWeek">Days of child care each week</label>
          <input type="number" id="careDaysPerWeek" min="1" max="7" step="1" inputmode="numeric">
        </div>
        <div class="field">
          <label for="childSupport">Child support you receive each month</label>
          <div class="money"><input type="number" id="childSupport" min="0" max="10000" step="10" inputmode="decimal"></div>
          <span class="hint">Leave at $0 if you don’t get any. Kentucky’s child care help and SNAP count it as income; Medicaid, KCHIP, kynect, and taxes don’t.</span>
        </div>
        <div class="field">
          <label for="localChoice">Where you work</label>
          <select id="localChoice">
            <option value="fayette">Lexington-Fayette (2.25% local tax)</option>
            <option value="louisville">Louisville Metro (2.20% local tax)</option>
            <option value="none">Somewhere with no local tax</option>
            <option value="other">Somewhere else (enter the rate)</option>
          </select>
          <span class="hint">Most Kentucky cities and counties take an occupational tax from each paycheck.</span>
        </div>
        <div class="field" id="otherRateField">
          <label for="localRate">Local occupational tax rate (%)</label>
          <input type="number" id="localRate" min="0" max="5" step="0.01" inputmode="decimal">
        </div>
        <div class="row2">
          <div class="field"><label for="rent">Rent</label><div class="money"><input type="number" id="rent" min="0" step="10" inputmode="decimal"></div></div>
          <div class="field"><label for="utilities">Utilities</label><div class="money"><input type="number" id="utilities" min="0" step="5" inputmode="decimal"></div></div>
        </div>
        <div class="field"><label for="otherBills">Other monthly bills</label><div class="money"><input type="number" id="otherBills" min="0" step="10" inputmode="decimal"></div><span class="hint">Car, phone, and debt payments. These don’t change whether the offer helps, only how much you have left.</span></div>
        <label class="check"><input type="checkbox" id="paysHeatCool"><span>I pay for heating or cooling<span class="hint">SNAP gives an extra allowance for this.</span></span></label>
      </fieldset>

      <fieldset class="step">
        <h3><span class="num" aria-hidden="true">2</span>Help you get now</h3>
        <label class="check"><input type="checkbox" id="onCCAP"><span>Child Care Assistance Program (CCAP)</span></label>
        <label class="check"><input type="checkbox" id="onSNAP"><span>SNAP food benefits</span></label>
        <p class="hint" style="margin:-4px 0 14px">You don’t need to enter health coverage or tax credits. We figure them from your income: Medicaid, KCHIP for the kids, or a kynect plan with a tax credit.</p>
        <label class="check"><input type="checkbox" id="jobInsurance"><span>My job offers health insurance<span class="hint">If it does, you usually can’t get a kynect tax credit.</span></span></label>
        <div class="row2" id="jobFields">
          <div class="field"><label for="jobPremiumSelf">Your share for you</label><div class="money"><input type="number" id="jobPremiumSelf" min="0" step="5" inputmode="decimal"></div></div>
          <div class="field"><label for="jobPremiumKids">Extra to add kids</label><div class="money"><input type="number" id="jobPremiumKids" min="0" step="5" inputmode="decimal"></div></div>
        </div>
        <div class="field">
          <span class="lab">Your next renewal month</span>
          <span class="hint" style="margin:0 0 8px">If your new pay stays under the reporting limits, the change waits until your renewal. Not sure of the month? Pick one about six months from now.</span>
          <div class="row2">
            <div class="field plain" style="margin:0"><label for="renewCCAPMonth">Child care (CCAP)</label><select id="renewCCAPMonth" class="month-sel"></select></div>
            <div class="field plain" style="margin:0"><label for="renewSNAPMonth">SNAP review</label><select id="renewSNAPMonth" class="month-sel"></select></div>
          </div>
          <div class="field plain" style="margin:10px 0 0"><label for="renewMedicaidMonth">Kids’ Medicaid or KCHIP</label><select id="renewMedicaidMonth" class="month-sel"></select></div>
        </div>
      </fieldset>

      <fieldset class="step">
        <h3><span class="num" aria-hidden="true">3</span>Your pay and the offer</h3>
        <p class="hint" style="margin:-6px 0 12px">Enter hourly pay or yearly salary, whichever you know. We figure out the other from your hours.</p>
        <div class="payblock" style="border:none;padding-top:0;margin-top:0">
          <h4>Today</h4>
          <div class="row2">
            <div class="field"><label for="nowWage">Hourly pay <span class="calc-tag" id="nowWageTag" hidden>figured</span></label><div class="money"><input type="number" id="nowWage" min="0" max="500" step="0.01" inputmode="decimal"></div></div>
            <div class="field"><label for="nowSalary">Yearly salary <span class="calc-tag" id="nowSalaryTag" hidden>figured</span></label><div class="money"><input type="number" id="nowSalary" min="0" max="2080000" step="100" inputmode="decimal"></div></div>
          </div>
          <div class="row2">
            <div class="field"><label for="nowHours">Hours a week</label><input type="number" id="nowHours" min="1" max="80" step="1" inputmode="decimal"></div>
          </div>
          <p class="monthly" id="nowMonthly"></p>
          <p class="warn" id="ccapWarn" hidden></p>
        </div>
        <div class="payblock">
          <h4>The offer</h4>
          <div class="row2">
            <div class="field"><label for="offerWage">Hourly pay <span class="calc-tag" id="offerWageTag" hidden>figured</span></label><div class="money"><input type="number" id="offerWage" min="0" max="500" step="0.01" inputmode="decimal"></div></div>
            <div class="field"><label for="offerSalary">Yearly salary <span class="calc-tag" id="offerSalaryTag" hidden>figured</span></label><div class="money"><input type="number" id="offerSalary" min="0" max="2080000" step="100" inputmode="decimal"></div></div>
          </div>
          <div class="row2">
            <div class="field"><label for="offerHours">Hours a week</label><input type="number" id="offerHours" min="1" max="80" step="1" inputmode="decimal"></div>
          </div>
          <p class="monthly" id="offerMonthly"></p>
          <p class="warn" id="hoursWarn" hidden></p>
          <div class="field"><label for="employerCare">Your employer’s monthly payment toward child care</label><div class="money"><input type="number" id="employerCare" min="0" max="625" step="5" inputmode="decimal"></div>
            <span class="hint">Usually $0. If your income is above the limit for child care help, Kentucky matches what your employer pays through the Employee Child Care Assistance Partnership. See “Make the offer work.”</span>
            <p class="warn" id="eccapWarn" hidden></p></div>
          <div class="field"><label for="startKey">The new pay starts in</label><select id="startKey"></select></div>
        </div>
      </fieldset>
    </form>
    <details class="adv">
      <summary>kynect plan prices (these only matter at higher incomes)</summary>
      <p class="hint">The tax credit usually caps your premium at a share of income, so these rarely change the answer. Use your real quote from kynect.ky.gov if you have one.</p>
      <div class="grid">
        <div class="field"><label for="benchAdult">Benchmark silver plan for you</label><div class="money"><input type="number" id="benchAdult" min="0" step="10" inputmode="decimal"></div></div>
        <div class="field"><label for="benchChild">Benchmark silver plan for each child</label><div class="money"><input type="number" id="benchChild" min="0" step="10" inputmode="decimal"></div></div>
      </div>
    </details>
  </section>

  <section class="block" aria-labelledby="ledH">
    <div class="two">
      <div>
        <h2 class="sec" id="ledH">Today and with the offer, line by line</h2>
        <p class="sec-lede">A typical month, once every program has caught up with the new pay.</p>
        <table class="ledger" id="ledger"></table>
        <p class="hint" id="ledgerNote" style="margin-top:8px"></p>
      </div>
      <div>
        <h2 class="sec">Why it comes out this way</h2>
        <p class="sec-lede">Each program has an income limit. Here’s where your pay sits against each one, today and with the offer.</p>
        <ul class="why" id="why"></ul>
      </div>
    </div>
  </section>

  <section class="block" id="counter" aria-labelledby="coH">
    <h2 class="sec" id="coH">Make the offer work</h2>
    <div class="trial-bar" id="trialBar" hidden><p></p><button class="btn" type="button" data-back="bar">Back to the original offer</button></div>
    <p class="sec-lede" id="coLede"></p>
    <div class="options" id="options"></div>
    <div class="ask-row no-print" id="askRow">
      <button class="btn primary" id="askBtn" type="button">Print a one-page ask for your employer</button>
      <button class="btn quiet" id="askPeek" type="button" aria-expanded="false" aria-controls="askPreview">See the page first</button>
      <span class="hint" style="margin:0">It lists these options and what each one costs your employer. Your benefits are left off the page.</span>
    </div>
    <p class="ask-msg no-print" id="askMsg" role="status" hidden></p>
    <div class="ask-preview no-print" id="askPreview" hidden>
      <div class="paper" id="askView" aria-label="Preview of the one-page ask"></div>
    </div>
    <div class="no-print">
      <h3 class="sub-h" id="mapH">Every mix of pay and hours</h3>
      <p class="sec-lede">Each square compares a full month at that pay and schedule with today. Tap or hover over a square to read it. Below 20 hours a week, Kentucky’s child care help stops.</p>
      <figure class="chart-card">
        <svg id="hoursMap" class="chart-svg" viewBox="0 0 640 360" role="img" aria-labelledby="mapDesc"></svg>
        <p class="sr" id="mapDesc"></p>
        <p class="readout" id="mapRead" aria-live="polite">Tap a square to see that pay and schedule.</p>
        <div class="legend" aria-hidden="true">
          <span><i class="sw" style="background:var(--map-up2)"></i>$150+ ahead</span>
          <span><i class="sw" style="background:var(--map-up1)"></i>Up to $150 ahead</span>
          <span><i class="sw" style="background:var(--map-dn1)"></i>Up to $150 behind</span>
          <span><i class="sw" style="background:var(--map-dn2)"></i>$150+ behind</span>
          <span><i class="sw" style="background:transparent;border:2.5px solid var(--gold)"></i>The offer</span>
        </div>
      </figure>
    </div>
  </section>

  <section class="block" id="bridge" aria-labelledby="brH">
    <h2 class="sec" id="brH">Your bridge budget</h2>
    <p class="sec-lede">Keep living on today’s budget for the next two years. In months when the new pay brings in more, set the extra aside. In months when it brings in less, use what you saved. Each change is counted in the month it actually hits, and each tax refund arrives in March for the year before.</p>
    <div class="plan-settings">
      <div class="field"><label for="savings">Savings you already have for this</label><div class="money"><input type="number" id="savings" min="0" step="50" inputmode="decimal"></div></div>
      <div class="field"><label for="raisePct">Yearly raise you expect at the new job</label><div class="pct"><input type="number" id="raisePct" min="0" max="15" step="0.5" inputmode="decimal"></div></div>
      <label class="check"><input type="checkbox" id="reminders"><span>Monthly savings reminders</span></label>
      <button class="btn" id="icsBtn" type="button">Save these dates as a calendar file</button>
    </div>
    <p class="ics-msg no-print" id="icsMsg" role="status" hidden></p>
    <details class="plan-details ics-help no-print">
      <summary>How the calendar file works</summary>
      <p>The button saves a calendar file called raise-check-dates.ics to your downloads. It’s made on this device, and nothing is sent anywhere.</p>
      <p>It holds the dates that matter for this offer: when the new pay starts, the deadline to report it, the months each benefit changes, your renewal months, and when each tax refund should arrive and about how much. With “Monthly savings reminders” checked, it also adds one reminder a month saying how much to set aside or how much to use from savings. <span id="icsCount"></span></p>
      <p>To add the dates:</p>
      <ul>
        <li><strong>iPhone or iPad:</strong> open the file from your downloads (the arrow in Safari, or the Files app). Calendar opens and shows the dates to add.</li>
        <li><strong>Mac:</strong> double-click the file, or in Calendar choose File, then Import.</li>
        <li><strong>Google Calendar:</strong> on a computer, open Google Calendar and go to Settings, then Import &amp; export, and choose the file. The phone app can’t import files, but the dates show up on your phone once they’re added.</li>
        <li><strong>Outlook:</strong> on the web, go to Calendar, then Add calendar, then Upload from file. In the Outlook app on a computer, open the file.</li>
      </ul>
      <p>Each date is an all-day event whose name starts with “Raise Check” or “Bridge budget,” so it’s easy to find and delete later. The dates don’t update on their own: if your numbers change, save a new file.</p>
    </details>
    <p class="take" id="brTake"></p>
    <p class="take-2" id="brTake2"></p>
    <div class="stats" id="brStats"></div>
    <figure class="chart-card">
      <h3>Each month compared with staying put, and your savings for this</h3>
      <p class="sub">Bars show how much more or less you have than on today’s budget. The line shows your savings for this after each month.</p>
      <svg id="bridgeChart" class="chart-svg" viewBox="0 0 640 380" role="img" aria-labelledby="bridgeDesc"></svg>
      <p class="sr" id="bridgeDesc"></p>
      <p class="readout no-print" id="brRead" aria-live="polite">Tap a month to read it.</p>
      <div class="legend" aria-hidden="true">
        <span><i class="sw" style="background:var(--green)"></i>More than staying put</span>
        <span><i class="sw" style="background:var(--red)"></i>Less than staying put</span>
        <span><i class="sw" style="background:var(--indigo)"></i>Refund month</span>
        <span><i class="sw" style="background:var(--ink);height:3px"></i>Savings for this</span>
      </div>
    </figure>
    <ul class="events" id="events"></ul>
    <details class="plan-details no-print">
      <summary>Month-by-month plan</summary>
      <div style="overflow-x:auto"><table class="plan" id="planTable"></table></div>
    </details>
  </section>

  <section class="block" id="tips" aria-labelledby="tipH">
    <h2 class="sec" id="tipH">Good to know</h2>
    <p class="sec-lede">General information about how Kentucky’s programs work, so you know what to ask. Your caseworker or a kynector can tell you what applies to you.</p>
    <div class="tips" id="tipList"></div>
  </section>

  <section class="block" id="sources" aria-labelledby="srcH">
    <h2 class="sec" id="srcH">The rules behind every number</h2>
    <p class="sec-lede">Checked against official sources in November 2026. Rules can change, usually in January, April, July, or October.</p>
    <div class="src-table" style="overflow-x:auto"><table class="src" id="srcTable"></table></div>
    <h3 style="margin:22px 0 4px;font-size:1.1rem">What this page leaves out</h3>
    <ul class="limits">
      <li>Built for single-parent households: one parent with one to five children under 18. Two-parent households, other adults in the home, and income other than pay and child support (such as SSI) aren’t included yet.</li>
      <li>Housing vouchers, K-TAP, WIC, LIHEAP, and school meals aren’t included. Their income limits can create more cliffs.</li>
      <li>Paychecks assume your W-4 accounts for the child tax credit, so other credits (the earned income credit, child care credits, and Kentucky’s credits) come back in your refund. The new federal tip and overtime deductions aren’t counted, and a salary is treated as straight pay for the hours you enter.</li>
      <li>During CCAP’s six-month transition, the state pays half its usual rate to your provider. We assume your provider’s price is at or below the state’s maximum rate, so you’d pay about half the full price.</li>
      <li>The employer match assumes that your employer joins the program, that state funds are available, and that your employer pays its share through a dependent care plan so it isn’t taxed. The match starts after CCAP’s transition ends.</li>
      <li>The bridge budget compares the offer with today’s budget, assuming no raises at your current job. For months 13 to 24, it assumes every program has caught up with the new pay.</li>
      <li>Health costs include premiums only, not deductibles or copays. kynect premiums use the 2026 tax credit table; the 2027 table is slightly higher.</li>
      <li>All timing is an estimate. Your agency’s notices and processing times decide the real dates.</li>
    </ul>
  </section>
</div>
</main>

<footer>
  <div class="wrap">
    <p class="disclaimer"><strong>Educational use only.</strong> Raise Check KY is an educational tool built for the 2026 Kentucky PFM Challenge. It gives estimates, not financial, tax, legal, or benefits advice, and it is not affiliated with or endorsed by the Commonwealth of Kentucky, the Cabinet for Health and Family Services, kynect, the University of Kentucky, or Globefin. Always confirm your benefits with your caseworker, kynect (1-855-459-6328), or a kynector before making a decision.</p>
    <p>Who it’s for: Kentucky single parents who get child care help, SNAP, or Medicaid and are weighing a raise, a promotion, or more hours. It’s also for the caseworkers, HR staff, and employers who help them decide.</p>
    <p>Privacy: there are no accounts, no tracking, and no outside services. Saved files and calendar files are created on your device, and nothing leaves it.</p>
    <p>Made by Peter Marra, University of Kentucky. Released under the MIT License. Typeface: Atkinson Hyperlegible Next, by the Braille Institute, under the SIL Open Font License.</p>
  </div>
</footer>

<div class="ask-sheet" id="askSheet"></div>

<script>
// ---------------------------------------------------------------------------
// Raise Check KY — calculation engine (v2)
// Every number below comes from an official 2026 source listed in the page's sources table.
// ---------------------------------------------------------------------------
var RULES = {
  // HHS poverty guidelines. 2026 guidelines drive SNAP (FY2027), Medicaid, KCHIP and
  // Kentucky's family size tax credit (guidelines available June 30 of the tax year).
  // 2025 guidelines drive 2026 kynect premium tax credits.
  fpg2026: { base: 15960, perPerson: 5680 },
  fpg2025: { base: 15650, perPerson: 5500 },

  snap: {
    // USDA FY2027 COLA memo, effective Oct 1, 2026 – Sep 30, 2027 (48 states + DC)
    maxAllotment: { 1: 306, 2: 562, 3: 808, 4: 1023, 5: 1217, 6: 1463 },
    standardDeduction: { 1: 217, 2: 217, 3: 217, 4: 229, 5: 268, 6: 308 },
    netLimit: { 1: 1330, 2: 1804, 3: 2277, 4: 2750, 5: 3224, 6: 3697 },   // 100% FPL
    reportAt: { 1: 1729, 2: 2345, 3: 2960, 4: 3575, 5: 4191, 6: 4806 },   // 130% FPL
    shelterCap: 769,
    minBenefit: 25,          // households of 1–2
    earnedIncomeDeduction: 0.20,
    grossLimitPctFPL: 2.00,  // Kentucky broad-based categorical eligibility
    heatCoolAllowance: 402   // Kentucky heating/cooling standard utility allowance, FY2027 (DFS Operations Manual MS 5490, rev. 10/1/26)
  },

  ccap: {
    // 922 KAR 2:160 (eff. 11-18-2024) and CHFS CCAP fact sheet (2025 SMI)
    limit85SMI: { 2: 4639, 3: 5731, 4: 6822, 5: 7914, 6: 9005 },
    copayBase: { 2: 4, 3: 3, 4: 2, 5: 1, 6: 0 },  // $/day in the $1,600–$1,899.99 band
    copayStartIncome: 1600,
    copayBandWidth: 300,
    copayMaxLargeFamily: 25,
    transitionalMonths: 6,
    transitionalStateShare: 0.5,
    minWeeklyHours: 20,      // §4(1)(a): employment averaging 20 hours a week
    weeksPerMonth: 52 / 12
  },

  // Employee Child Care Assistance Partnership, KRS 199.885(7) (as amended eff. Apr 14, 2026).
  // Only for families above 85% of state median income (below that, families go to CCAP).
  // Match = share of the employer's contribution, by household income as a share of 100% SMI.
  eccap: {
    bands: [[1.00, 1.00], [1.20, 0.90], [1.40, 0.80], [1.60, 0.70], [1.80, 0.60]],
    above: 0.50,
    maxMonthlyEmployer: 625  // $7,500 a year: the 2026 tax-free limit for employer-paid dependent care (IRC §129)
  },

  health: {
    adultMedicaidPctFPL: 1.38,   // includes Kentucky's 5% income disregard
    kidsCoveragePctFPL: 2.18,    // Medicaid + KCHIP for children under 19
    // Rev. Proc. 2025-25 applicable percentage table for 2026 (enhanced credits expired)
    ptcTable: [
      [0.00, 1.33, 2.10, 2.10],
      [1.33, 1.50, 3.14, 4.19],
      [1.50, 2.00, 4.19, 6.60],
      [2.00, 2.50, 6.60, 8.44],
      [2.50, 3.00, 8.44, 9.96],
      [3.00, 4.00, 9.96, 9.96]
    ],
    ptcCeilingPctFPL: 4.00
  },

  tax: {
    // IRS Rev. Proc. 2025-32 (tax year 2026), head of household
    standardDeduction: 24150,
    brackets: [
      [17700, 0.10], [67450, 0.12], [105700, 0.22], [201750, 0.24],
      [256200, 0.32], [640600, 0.35], [Infinity, 0.37]
    ],
    ctcPerChild: 2200,
    ctcRefundableMaxPerChild: 1700,
    ctcEarnedThreshold: 2500,
    ctcPhaseInRate: 0.15,
    eitc: {
      1: { rate: 0.34, max: 4427, phaseOutStart: 23890, phaseOutRate: 0.1598 },
      2: { rate: 0.40, max: 7316, phaseOutStart: 23890, phaseOutRate: 0.2106 },
      3: { rate: 0.45, max: 8231, phaseOutStart: 23890, phaseOutRate: 0.2106 }
    },
    // Child and dependent care credit, IRC §21 as amended for 2026 (nonrefundable)
    cdctc: { cap1: 3000, cap2: 6000, top: 50, phaseStart: 15000, step: 2000, mid: 35, phase2Start: 75000, floor: 20 },
    fica: 0.0765,
    kyRate: 0.035,               // Kentucky flat rate, 2026
    kyStandardDeduction: 3360,
    kyDepCareShare: 0.20,        // Kentucky child and dependent care credit: 20% of the federal credit
    // Kentucky family size tax credit, KRS 141.066: income as a share of the poverty threshold -> share of tax forgiven
    kyFamilySize: [[1.00, 1.00], [1.04, 0.90], [1.08, 0.80], [1.12, 0.70], [1.16, 0.60],
                   [1.20, 0.50], [1.24, 0.40], [1.27, 0.30], [1.30, 0.20], [1.33, 0.10]]
  },

  refundMonth: 2   // March: the IRS releases refunds with the EITC or ACTC in late Feb / early March (PATH Act)
};

var KY = (function () {
  function fpg(table, size) { return table.base + table.perPerson * (size - 1); }
  function monthlyPctFPL(pct, size) { return Math.ceil(pct * fpg(RULES.fpg2026, size) / 12); }
  function clampSize(obj, size) { var keys = Object.keys(obj).map(Number); var mx = Math.max.apply(null, keys); return obj[Math.min(size, mx)]; }
  function monthlyGross(wage, hours) { return wage * hours * 52 / 12; }
  function bandLookup(bands, ratio, above) {
    for (var i = 0; i < bands.length; i++) if (ratio <= bands[i][0] + 1e-9) return bands[i][1];
    return above;
  }

  // ---------------- taxes (annual) ----------------
  function federalIncomeTax(taxable) {
    var tax = 0, lower = 0;
    for (var i = 0; i < RULES.tax.brackets.length; i++) {
      var upper = RULES.tax.brackets[i][0], rate = RULES.tax.brackets[i][1];
      if (taxable > lower) tax += (Math.min(taxable, upper) - lower) * rate;
      lower = upper;
    }
    return tax;
  }
  function eitc(wages, kids) {
    var p = RULES.tax.eitc[Math.min(Math.max(kids, 1), 3)];
    var phaseIn = Math.min(p.rate * wages, p.max);
    var reduce = p.phaseOutRate * Math.max(0, wages - p.phaseOutStart);
    return Math.max(0, phaseIn - reduce);
  }
  function cdctcRate(agi) {
    var c = RULES.tax.cdctc, pct = c.top;
    if (agi > c.phaseStart) pct = Math.max(c.mid, c.top - Math.ceil((agi - c.phaseStart) / c.step));
    if (agi > c.phase2Start) pct = Math.max(c.floor, c.mid - Math.ceil((agi - c.phase2Start) / c.step));
    return pct / 100;
  }
  function familySizeDecimal(wages, kids) {
    var size = Math.min(4, 1 + kids);
    var ratio = wages / fpg(RULES.fpg2026, size);
    return bandLookup(RULES.tax.kyFamilySize, ratio, 0);
  }
  // careOOP: child care the family paid itself this year; employerCare: employer-paid care excluded from wages (IRC §129)
  function taxes(annualWages, kids, localRate, careOOP, employerCare) {
    var t = RULES.tax, w = annualWages;
    var kc = typeof kids === 'number' ? { n: kids, ctc: kids, care: kids } : kids;
    careOOP = careOOP || 0; employerCare = employerCare || 0;
    var fica = w * t.fica;
    var fedBefore = federalIncomeTax(Math.max(0, w - t.standardDeduction));
    // child and dependent care credit (comes before the child tax credit; nonrefundable)
    var cap = Math.max(0, (kc.care >= 2 ? t.cdctc.cap2 : t.cdctc.cap1) - employerCare);
    var cdctc = kc.care > 0 ? Math.min(Math.min(careOOP, cap, w) * cdctcRate(w), fedBefore) : 0;
    var remaining = fedBefore - cdctc;
    var ctc = t.ctcPerChild * kc.ctc;
    var ctcNonRef = Math.min(ctc, remaining);
    var actc = Math.min(ctc - ctcNonRef, t.ctcRefundableMaxPerChild * kc.ctc,
                        Math.max(0, t.ctcPhaseInRate * (w - t.ctcEarnedThreshold)));
    var fedLiability = remaining - ctcNonRef;
    var fedWithheld = Math.max(0, fedBefore - ctc);   // W-4 step 3 covers the child tax credit only
    var e = eitc(w, kc.n);
    var kyBefore = Math.max(0, w - t.kyStandardDeduction) * t.kyRate;
    var fstc = kyBefore * familySizeDecimal(w, kc.n);
    var kyDep = Math.min(kyBefore - fstc, t.kyDepCareShare * cdctc);
    var kyLiability = kyBefore - fstc - kyDep;
    var local = w * (localRate / 100);
    var childCredits = (fedWithheld - fedLiability) + actc;
    var kyCredits = kyBefore - kyLiability;
    return {
      fica: fica, federal: fedWithheld, state: kyBefore, local: local,
      refund: childCredits + e + kyCredits,
      eitc: e, childCredits: childCredits, kyCredits: kyCredits,
      cdctc: cdctc, actc: actc, fstc: fstc, kyDep: kyDep, fedLiability: fedLiability, kyLiability: kyLiability
    };
  }

  // ---------------- child care (CCAP and ECCAP) ----------------
  function ccapLimit(size) { return clampSize(RULES.ccap.limit85SMI, Math.max(2, size)); }
  function smi(size) { return ccapLimit(size) / 0.85; }
  function eccapRate(gross, size) { return bandLookup(RULES.eccap.bands, gross / smi(size), RULES.eccap.above); }
  function dailyCopay(gross, size) {
    var c = RULES.ccap;
    if (gross < c.copayStartIncome) return 0;
    var band = Math.floor((gross - c.copayStartIncome) / c.copayBandWidth);
    var copay;
    if (size <= 6) copay = band + c.copayBase[Math.max(2, size)];
    else copay = band + c.copayBase[6] - (size - 6);
    copay = Math.max(0, copay);
    if (size > 5) copay = Math.min(copay, c.copayMaxLargeFamily);
    return copay;
  }
  // Ages 13 and up never need child care. The child tax credit stops at 17 (IRC 24(c)); the care credit covers children under 13 (IRC 21(b)).
  var TEEN_AGES = { teen: true, teen17: true };
  function needsCare(k) { return !TEEN_AGES[k.age]; }
  function kidCounts(inp) {
    var n = inp.kids.length;
    return { n: n, ctc: inp.kids.filter(function (k) { return k.age !== 'teen17'; }).length, care: inp.kids.filter(needsCare).length };
  }
  // Child support received: counted by CCAP (922 KAR 2:160 counts all gross income not listed as excluded) and by SNAP (unearned income);
  // not counted for Medicaid, KCHIP, or kynect (MAGI) or for taxes.
  function support(inp) { return Math.max(0, +inp.childSupport || 0); }
  function fullCarePrice(inp) { return inp.kids.reduce(function (s, k) { return s + (needsCare(k) ? (+k.price || 0) : 0); }, 0); }
  function careDaysPerMonth(inp) { return inp.careDaysPerWeek * RULES.ccap.weeksPerMonth; }
  // mode: 'copay' | 'transitional' | 'full' | 'none' (not on CCAP)
  function careCost(inp, mode, copayIncome) {
    var full = fullCarePrice(inp);
    if (mode === 'full' || mode === 'none') return full;
    if (mode === 'transitional') return full * (1 - RULES.ccap.transitionalStateShare);
    var size = 1 + inp.kids.length;
    return Math.min(full, dailyCopay(copayIncome + support(inp), size) * careDaysPerMonth(inp));
  }
  // Employer contribution + state match, when the family pays full price and is above the CCAP limit
  function eccapHelp(inp, gross, mode, employer) {
    var size = 1 + inp.kids.length, full = fullCarePrice(inp);
    var out = { active: false, employerPaid: 0, statePaid: 0, rate: 0 };
    if (!(employer > 0) || full <= 0) return out;
    var income = gross + support(inp);
    if (!(mode === 'full' || mode === 'none') || income <= ccapLimit(size)) return out;
    var rate = eccapRate(income, size);
    var e = Math.min(employer, RULES.eccap.maxMonthlyEmployer, full / (1 + rate));
    out.active = true; out.rate = rate; out.employerPaid = e; out.statePaid = e * rate;
    return out;
  }

  // ---------------- SNAP ----------------
  function snapBenefit(gross, size, care, inp) {
    var s = RULES.snap;
    var grossLimit = monthlyPctFPL(s.grossLimitPctFPL, size);
    var out = { eligible: false, benefit: 0, grossLimit: grossLimit, net: 0, reason: '' };
    var unearned = support(inp);
    if (gross + unearned > grossLimit) { out.reason = 'gross'; return out; }
    var adjusted = gross * (1 - s.earnedIncomeDeduction) + unearned - clampSize(s.standardDeduction, size) - care;
    adjusted = Math.max(0, adjusted);
    var shelter = (+inp.rent || 0) + (inp.paysHeatCool ? s.heatCoolAllowance : 0);
    var excess = Math.min(s.shelterCap, Math.max(0, shelter - adjusted / 2));
    var net = Math.max(0, adjusted - excess);
    out.net = net;
    if (net > clampSize(s.netLimit, size)) { out.reason = 'net'; return out; }
    var benefit = clampSize(s.maxAllotment, size) - Math.ceil(0.3 * net);
    if (size <= 2) benefit = Math.max(benefit, s.minBenefit);
    if (benefit <= 0) { out.reason = 'zero'; return out; }
    out.eligible = true; out.benefit = Math.floor(benefit);
    return out;
  }

  // ---------------- health coverage ----------------
  function applicablePct(pctFPL) {
    var tbl = RULES.health.ptcTable;
    for (var i = 0; i < tbl.length; i++) {
      var r = tbl[i];
      if (pctFPL < r[1] || i === tbl.length - 1) {
        var lo = Math.max(r[0], 0);
        var frac = r[1] > lo ? Math.min(1, Math.max(0, (pctFPL - lo) / (r[1] - lo))) : 0;
        if (i === 0) frac = 0;
        return (r[2] + (r[3] - r[2]) * frac) / 100;
      }
    }
    return 0.0996;
  }
  function adultMedicaidLimit(size) { return monthlyPctFPL(RULES.health.adultMedicaidPctFPL, size); }
  function kidsCoverageLimit(size) { return monthlyPctFPL(RULES.health.kidsCoveragePctFPL, size); }
  function healthPremium(gross, size, inp, adultCovered, kidsCovered) {
    var nKids = inp.kids.length;
    if (adultCovered && kidsCovered) return { premium: 0, label: 'Medicaid for you and the kids' };
    if (inp.jobInsurance) {
      var p = (adultCovered ? 0 : +inp.jobPremiumSelf || 0) + (kidsCovered ? 0 : +inp.jobPremiumKids || 0);
      var jl = !adultCovered && !kidsCovered ? 'your job\u2019s plan for you and the kids'
             : !adultCovered ? 'your job\u2019s plan for you, with KCHIP or Medicaid for the kids'
             : 'Medicaid for you, with the kids on your job\u2019s plan';
      return { premium: p, label: jl };
    }
    var annual = gross * 12;
    var pct = annual / fpg(RULES.fpg2025, size);
    var bench = (adultCovered ? 0 : +inp.benchAdult || 0) + (kidsCovered ? 0 : (+inp.benchChild || 0) * nKids);
    var label = (!adultCovered && kidsCovered) ? 'a kynect plan for you, with KCHIP or Medicaid for the kids'
              : (adultCovered ? 'Medicaid for you, with a kynect plan for the kids' : 'a kynect plan for the whole family');
    if (pct > RULES.health.ptcCeilingPctFPL) return { premium: bench, label: label + ' (with no tax credit, because income is above 400% of poverty)' };
    var expected = annual * applicablePct(pct) / 12;
    return { premium: Math.min(bench, expected), label: label };
  }

  // ---------------- a whole month ----------------
  // basis: what each program is going by this month, the child care mode, and any employer child care contribution
  function month(inp, gross, basis) {
    var size = 1 + inp.kids.length, kids = kidCounts(inp), cs = support(inp);
    var care = careCost(inp, basis.careMode, basis.copayIncome);
    var ec = eccapHelp(inp, gross, basis.careMode, basis.employerCare || 0);
    if (ec.active) care = Math.max(0, care - ec.employerPaid - ec.statePaid);
    var t = taxes(gross * 12, kids, inp.localRate, care * 12, ec.employerPaid * 12);
    var snap = inp.onSNAP ? (basis.snapOverride != null ? { benefit: basis.snapOverride, eligible: basis.snapOverride > 0 } :
               snapBenefit(basis.snapIncome, size, care, inp)) : { benefit: 0, eligible: false };
    var adultCovered = basis.adultIncome <= adultMedicaidLimit(size);
    var kidsCovered = basis.kidsIncome <= kidsCoverageLimit(size);
    var h = healthPremium(gross, size, inp, adultCovered, kidsCovered);
    var takeHome = gross - (t.fica + t.federal + t.state + t.local) / 12;
    var credits = t.refund / 12;
    var bills = (+inp.rent || 0) + (+inp.utilities || 0) + (+inp.otherBills || 0);
    var cash = takeHome + cs + snap.benefit - care - h.premium - bills;
    return {
      gross: gross, fica: t.fica / 12, federal: t.federal / 12, state: t.state / 12, local: t.local / 12,
      takeHome: takeHome, credits: credits, eitc: t.eitc / 12, childCredits: t.childCredits / 12, kyCredits: t.kyCredits / 12,
      snap: snap.benefit, care: care, careMode: basis.careMode, eccap: ec,
      health: h.premium, healthLabel: h.label, adultCovered: adultCovered, kidsCovered: kidsCovered,
      bills: bills, childSupport: cs, cash: cash, left: cash + credits
    };
  }

  function ccapOK(inp, gross, hours) {
    return gross + support(inp) <= ccapLimit(1 + inp.kids.length) && hours >= RULES.ccap.minWeeklyHours;
  }
  // Fully adjusted ("steady state") month at a given gross income
  function steady(inp, gross, hours, employerCare) {
    if (hours == null) hours = inp.offerHours;
    var mode = 'none';
    if (inp.onCCAP) mode = ccapOK(inp, gross, hours) ? 'copay' : 'full';
    return month(inp, gross, { careMode: mode, copayIncome: gross, snapIncome: gross, adultIncome: gross, kidsIncome: gross,
                               employerCare: employerCare || 0 });
  }
  function scenarioGross(inp, which) {
    return which === 'now' ? monthlyGross(inp.nowWage, inp.nowHours) : monthlyGross(inp.offerWage, inp.offerHours);
  }
  function nowState(inp) { return steady(inp, scenarioGross(inp, 'now'), inp.nowHours, 0); }
  function offerState(inp) { return steady(inp, scenarioGross(inp, 'offer'), inp.offerHours, inp.employerCare || 0); }

  // ---------------- the 12 months after the offer starts ----------------
  function timeline(inp) {
    var size = 1 + inp.kids.length;
    var g0 = scenarioGross(inp, 'now'), g1 = scenarioGross(inp, 'offer');
    var now = nowState(inp);
    var limit = ccapLimit(size), snapReport = clampSize(RULES.snap.reportAt, size);
    var adultLim = adultMedicaidLimit(size);
    var hoursTooLow = inp.offerHours < RULES.ccap.minWeeklyHours, cs = support(inp);
    var months = [];
    for (var m = 1; m <= 12; m++) {
      var careMode, copayIncome = g0, events = [];
      if (!inp.onCCAP) careMode = 'none';
      else if (g1 + cs > limit) {
        if (m === 1) careMode = 'copay';
        else if (m <= 1 + RULES.ccap.transitionalMonths) careMode = 'transitional';
        else careMode = 'full';
        if (m === 2) events.push('ccap-transition');
        if (m === 2 + RULES.ccap.transitionalMonths) events.push('ccap-ends');
      } else if (hoursTooLow) {
        careMode = m === 1 ? 'copay' : 'full';
        if (m === 2) events.push('ccap-hours');
      } else {
        careMode = 'copay';
        copayIncome = m >= inp.renewCCAP ? g1 : g0;
        if (m === inp.renewCCAP && dailyCopay(g1 + cs, size) !== dailyCopay(g0 + cs, size)) events.push('ccap-renew');
      }
      var snapIncome = g0, snapOverride = null;
      var mustReport = g1 + cs > snapReport && g0 + cs <= snapReport;
      var snapChanged = mustReport ? m >= 2 : m >= inp.renewSNAP;
      if (snapChanged) snapIncome = g1; else snapOverride = inp.onSNAP ? now.snap : 0;
      if (inp.onSNAP && ((mustReport && m === 2) || (!mustReport && m === inp.renewSNAP))) events.push(mustReport ? 'snap-report' : 'snap-renew');
      var adultIncome = m >= 2 ? g1 : g0;
      if (m === 2 && g0 <= adultLim && g1 > adultLim) events.push('medicaid-adult');
      var kidsIncome = m >= inp.renewMedicaid ? g1 : g0;
      if (m === inp.renewMedicaid && g0 <= kidsCoverageLimit(size) && g1 > kidsCoverageLimit(size)) events.push('kchip-ends');
      var row = month(inp, g1, { careMode: careMode, copayIncome: copayIncome, snapIncome: snapIncome, snapOverride: snapOverride,
                                 adultIncome: adultIncome, kidsIncome: kidsIncome, employerCare: inp.employerCare || 0 });
      if (row.eccap.active && (m === 1 || !months[m - 2].eccap.active)) events.push('eccap-starts');
      row.m = m; row.events = events; row.diff = row.left - now.left;
      months.push(row);
    }
    return { now: now, months: months };
  }

  // ---------------- bridge budget: 24 months of real cash, refunds in March ----------------
  // opts: { startYear, startMonth (0-11), raisePct, savings }
  function bridge(inp, opts) {
    var H = 24, kids = kidCounts(inp);
    var g0 = scenarioGross(inp, 'now'), g1 = scenarioGross(inp, 'offer');
    var r = Math.max(0, (+opts.raisePct || 0) / 100);
    var now = nowState(inp), tl = timeline(inp);
    var baseCash = now.cash;
    var baseTax = taxes(12 * g0, kids, inp.localRate, 12 * now.care, 0);
    var offer = [];
    for (var t = 1; t <= H; t++) {
      var c = opts.startMonth + t - 1, row, gross;
      if (t <= 12) { row = tl.months[t - 1]; gross = g1; }
      else { gross = g1 * Math.pow(1 + r, Math.floor((t - 1) / 12)); row = steady(inp, gross, inp.offerHours, inp.employerCare || 0); }
      offer.push({ t: t, year: opts.startYear + Math.floor(c / 12), mon: c % 12, gross: gross, care: row.care,
                   employerPaid: row.eccap.employerPaid, cash: row.cash, events: t <= 12 ? row.events.slice() : [] });
    }
    if (r > 0) offer[12].events.push('raise');
    function offerTaxYear(Y) {
      var wages = 0, care = 0, emp = 0;
      for (var mon = 0; mon < 12; mon++) {
        var idx = (Y - opts.startYear) * 12 + mon - opts.startMonth;   // 0-based horizon index
        if (idx < 0) { wages += g0; care += now.care; }
        else if (idx < H) { wages += offer[idx].gross; care += offer[idx].care; emp += offer[idx].employerPaid; }
        else { wages += offer[H - 1].gross; care += offer[H - 1].care; emp += offer[H - 1].employerPaid; }
      }
      return taxes(wages, kids, inp.localRate, care, emp);
    }
    var bal = +opts.savings || 0, lowest = { balance: bal, t: 0 }, saved = 0, used = 0, out = [];
    offer.forEach(function (o) {
      var refundOffer = 0, refundBase = 0, refundYear = null;
      if (o.mon === RULES.refundMonth) {
        refundYear = o.year - 1;
        refundOffer = offerTaxYear(refundYear).refund;
        refundBase = baseTax.refund;
        o.events.push('refund');
      }
      var diff = (o.cash + refundOffer) - (baseCash + refundBase);
      bal += diff;
      if (diff > 0) saved += diff; else used -= diff;
      if (bal < lowest.balance) lowest = { balance: bal, t: o.t };
      out.push({ t: o.t, year: o.year, mon: o.mon, cash: o.cash, baseCash: baseCash, refund: refundOffer, baseRefund: refundBase,
                 refundYear: refundYear, diff: diff, balance: bal, events: o.events });
    });
    // When do yearly raises keep you at or above today's level for good? (checks 15 years of raises)
    var nowLeft = now.left, ok = [];
    for (var k = 0; k <= 15; k++) ok.push(steady(inp, g1 * Math.pow(1 + r, k), inp.offerHours, inp.employerCare || 0).left >= nowLeft - 0.5);
    var past = null;
    for (k = 0; k <= 15; k++) { if (ok.slice(k).every(Boolean)) { past = k; break; } }
    var pastCliff = past == null ? null : { years: past, t: 12 * past + 1,
      year: opts.startYear + Math.floor((opts.startMonth + 12 * past) / 12), mon: (opts.startMonth + 12 * past) % 12 };
    if (pastCliff && pastCliff.years > 0 && pastCliff.t <= H) out[pastCliff.t - 1].events.push('past-cliff');
    return { months: out, baseCash: baseCash, baseRefund: baseTax.refund, start: +opts.savings || 0, end: bal,
             lowest: lowest, shortfall: Math.max(0, -lowest.balance), saved: saved, used: used,
             total: bal - (+opts.savings || 0), pastCliff: pastCliff, raisePct: r * 100 };
  }

  // ---------------- break-even & cliff map ----------------
  function curve(inp, hours, from, to, step) {
    var pts = [];
    for (var w = from; w <= to + 1e-9; w += step) {
      var wr = Math.round(w * 100) / 100;
      pts.push({ wage: wr, left: steady(inp, monthlyGross(wr, hours), hours, inp.employerCare || 0).left });
    }
    return pts;
  }
  function breakEven(inp) {
    var nowLeft = nowState(inp).left;
    var hours = inp.offerHours;
    var start = Math.max(7.25, Math.min(inp.nowWage, inp.offerWage));
    var end = Math.max(inp.nowWage, inp.offerWage) + 20;
    var pts = curve(inp, hours, start, end, 0.05);
    var zs = zones(pts, nowLeft);
    var offerLeft = offerState(inp).left;
    var behind = offerLeft < nowLeft - 0.5;
    var needWage = null, nextZone = null, i;
    if (behind) {
      for (i = 0; i < zs.length; i++) {
        if (inp.offerWage >= zs[i].from - 0.001 && inp.offerWage <= zs[i].to + 0.051) {
          if (zs[i].to < pts[pts.length - 1].wage) {
            for (var c = Math.round(zs[i].to * 100); c <= Math.round(zs[i].to * 100) + 6; c++) {
              if (steady(inp, monthlyGross(c / 100, hours), hours, inp.employerCare || 0).left >= nowLeft) { needWage = c / 100; break; }
            }
          }
          break;
        }
      }
    } else {
      for (i = 0; i < zs.length; i++) if (zs[i].from > inp.offerWage) { nextZone = zs[i]; break; }
    }
    return { nowLeft: nowLeft, offerLeft: offerLeft, behind: behind, needWage: needWage,
             nextZone: nextZone, dangerZones: zs, scanTo: end, hours: hours };
  }
  function zones(pts, nowLeft) {
    var out = [], cur = null;
    pts.forEach(function (p) {
      var bad = p.left < nowLeft - 0.5;
      if (bad && !cur) cur = { from: p.wage, to: p.wage, worst: p.left - nowLeft };
      else if (bad) { cur.to = p.wage; cur.worst = Math.min(cur.worst, p.left - nowLeft); }
      else if (cur) { out.push(cur); cur = null; }
    });
    if (cur) out.push(cur);
    return out;
  }

  // ---------------- counteroffer options ----------------
  function counteroffers(inp) {
    var size = 1 + inp.kids.length;
    var now = nowState(inp), nowLeft = now.left;
    var g1 = scenarioGross(inp, 'offer'), off = offerState(inp);
    var be = breakEven(inp);
    var res = { behind: be.behind, nowLeft: nowLeft, offerLeft: off.left, pay: null, hours: null, eccap: null };
    var perHourMonthly = inp.offerHours * 52 / 12;
    if (be.behind && be.needWage) {
      var atPay = steady(inp, monthlyGross(be.needWage, inp.offerHours), inp.offerHours, inp.employerCare || 0);
      res.pay = { wage: be.needWage, raise: be.needWage - inp.offerWage,
                  employerCost: (be.needWage - inp.offerWage) * perHourMonthly * (1 + RULES.tax.fica), left: atPay.left };
    }
    // hours: closest weekly hours (20 to 60) at the offered pay that leave you at least even
    var best = null;
    for (var h = RULES.ccap.minWeeklyHours; h <= 60; h++) {
      var s = steady(inp, monthlyGross(inp.offerWage, h), h, inp.employerCare || 0);
      if (s.left >= nowLeft + 0.5) {
        var dist = Math.abs(h - inp.offerHours);
        if (!best || dist < best.dist || (dist === best.dist && h < best.hours)) best = { hours: h, dist: dist, left: s.left };
      }
    }
    if (be.behind && best && best.hours !== inp.offerHours) res.hours = best;
    // employer child care contribution with Kentucky's match (only above the CCAP limit)
    var full = fullCarePrice(inp);
    if (full > 0 && g1 > ccapLimit(size)) {
      var rate = eccapRate(g1, size), found = null;
      var base = inp.employerCare || 0;
      if (be.behind) {
        for (var e = base + 5; e <= RULES.eccap.maxMonthlyEmployer + 1e-9; e += 5) {
          if (steady(inp, g1, inp.offerHours, e).left >= nowLeft) { found = e; break; }
        }
      }
      var maxHelp = steady(inp, g1, inp.offerHours, RULES.eccap.maxMonthlyEmployer).left - nowLeft;
      res.eccap = { applies: true, rate: rate, amount: found, match: found ? Math.min(found, full / (1 + rate)) * rate : 0,
                    maxGap: maxHelp, already: base };
    } else {
      res.eccap = { applies: false };
    }
    return res;
  }

  // Where each program's line sits for this household (monthly gross)
  function limits(inp) {
    var size = 1 + inp.kids.length;
    return {
      size: size,
      ccap: ccapLimit(size),
      smi: smi(size),
      snapGross: monthlyPctFPL(RULES.snap.grossLimitPctFPL, size),
      snapReport: clampSize(RULES.snap.reportAt, size),
      adultMedicaid: adultMedicaidLimit(size),
      kids: kidsCoverageLimit(size)
    };
  }

  return {
    monthlyGross: monthlyGross, taxes: taxes, eitc: eitc, federalIncomeTax: federalIncomeTax,
    cdctcRate: cdctcRate, familySizeDecimal: familySizeDecimal, eccapRate: eccapRate, eccapHelp: eccapHelp,
    dailyCopay: dailyCopay, ccapLimit: ccapLimit, careCost: careCost, fullCarePrice: fullCarePrice,
    snapBenefit: snapBenefit, applicablePct: applicablePct, healthPremium: healthPremium,
    adultMedicaidLimit: adultMedicaidLimit, kidsCoverageLimit: kidsCoverageLimit,
    steady: steady, nowState: nowState, offerState: offerState, timeline: timeline, bridge: bridge,
    curve: curve, breakEven: breakEven, counteroffers: counteroffers, limits: limits, scenarioGross: scenarioGross,
    kidCounts: kidCounts, needsCare: needsCare
  };
})();


</script>
<script>
(function () {
  'use strict';
  var APP_ID = 'raise-check-ky', FORMAT = 2;
  var AGES = {
    infant:    { label: 'Under 1', price: 800 },
    toddler:   { label: 'Age 1 to 2', price: 700 },
    preschool: { label: 'Age 3 to 5', price: 600 },
    school:    { label: 'Age 6 to 12 (before and after school)', price: 500 },
    teen:      { label: 'Age 13 to 16', price: 0, noCare: true },
    teen17:    { label: 'Age 17', price: 0, noCare: true }
  };
  var MAX_KIDS = 5;
  var LOCAL = { fayette: 2.25, louisville: 2.20, none: 0 };
  var MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
  var TODAY = new Date();
  var DEF_START_MONTH = (TODAY.getMonth() + 1) % 12;
  var DEF_START_YEAR = TODAY.getFullYear() + (TODAY.getMonth() === 11 ? 1 : 0);

  var COMMON = { careDaysPerWeek: 5, paysHeatCool: true, jobInsurance: false, jobPremiumSelf: 0, jobPremiumKids: 0,
                 benchAdult: 590, benchChild: 350, employerCare: 0, childSupport: 0, savings: 0, raisePct: 3, reminders: true, nowBasis: 'hourly', offerBasis: 'hourly',
                 startMonth: DEF_START_MONTH, startYear: DEF_START_YEAR };
  // renewals are given as "months after the new pay starts" and turned into calendar months
  var EXAMPLES = [
    { key: 'nurse', label: 'Lexington nurse, one toddler',
      note: 'An LPN offered a charge-nurse job: $24.50 to $27.50 an hour. She gets child care help for her 18-month-old.',
      data: { kids: [{ age: 'toddler', price: 785 }], nowWage: 24.5, nowHours: 40, offerWage: 27.5, offerHours: 40,
              localChoice: 'fayette', localRate: 2.25, rent: 1050, utilities: 180, otherBills: 400,
              onCCAP: true, onSNAP: false, renew: [6, 6, 6] } },
    { key: 'aide', label: 'Eastern Kentucky home health aide, two kids',
      note: 'A home health aide offered full-time hours and a raise: from 32 to 40 hours a week and from $13.75 to $16.00 an hour. The local tax rate is just an example.',
      data: { kids: [{ age: 'preschool', price: 600 }, { age: 'school', price: 500 }], nowWage: 13.75, nowHours: 32, offerWage: 16, offerHours: 40,
              localChoice: 'other', localRate: 1.0, rent: 700, utilities: 160, otherBills: 350,
              onCCAP: true, onSNAP: true, renew: [6, 4, 8] } },
    { key: 'warehouse', label: 'Louisville warehouse worker, three kids',
      note: 'A warehouse worker offered a shift-lead job: $17.00 to $24.00 an hour. The paychecks look better, but watch the tax refund.',
      data: { kids: [{ age: 'infant', price: 920 }, { age: 'preschool', price: 690 }, { age: 'school', price: 580 }], nowWage: 17, nowHours: 40, offerWage: 24, offerHours: 40,
              localChoice: 'louisville', localRate: 2.2, rent: 1100, utilities: 170, otherBills: 375,
              onCCAP: true, onSNAP: true, renew: [6, 4, 8] } },
    { key: 'mine', label: 'My own numbers',
      note: 'A plain starting point. Change every number to match your household.',
      data: { kids: [{ age: 'preschool', price: 600 }], nowWage: 15, nowHours: 40, offerWage: 17, offerHours: 40,
              localChoice: 'none', localRate: 0, rent: 900, utilities: 150, otherBills: 300,
              onCCAP: true, onSNAP: true, renew: [6, 6, 6] } }
  ];

  var S = null, currentExample = null, dirty = false, last = null;
  // mine: your own numbers, kept while you look at an example ("My own numbers" brings them back)
  // exEdited: an example you've changed while your own numbers are kept
  var mine = null, exEdited = false, kidUndo = null;
  var $ = function (id) { return document.getElementById(id); };
  function clone(o) { return JSON.parse(JSON.stringify(o)); }
  function relToMonth(start, rel) { return (start + rel - 1) % 12; }
  function monthToRel(start, mon) { return ((mon - start + 12) % 12) + 1; }
  function fromExample(ex) {
    var d = clone(COMMON), e = clone(ex.data);
    for (var k in e) if (k !== 'renew') d[k] = e[k];
    d.renewCCAPMonth = relToMonth(d.startMonth, e.renew[0]);
    d.renewSNAPMonth = relToMonth(d.startMonth, e.renew[1]);
    d.renewMedicaidMonth = relToMonth(d.startMonth, e.renew[2]);
    syncPay(d, 'now'); syncPay(d, 'offer');
    return d;
  }
  // Keep hourly pay and yearly salary in step. Whichever the person typed last is the one held fixed.
  function syncPay(s, which) {
    var h = s[which + 'Hours'] || 1;
    if (s[which + 'Basis'] === 'salary') {
      s[which + 'Wage'] = s[which + 'Salary'] / (h * 52);
      // a salary at very few hours can work out above the $500-an-hour cap; hold it there so the math and charts stay sane
      if (s[which + 'Wage'] > RANGES[which + 'Wage'][1]) { s[which + 'Wage'] = RANGES[which + 'Wage'][1]; s[which + 'Salary'] = s[which + 'Wage'] * h * 52; }
    }
    else s[which + 'Salary'] = s[which + 'Wage'] * h * 52;
  }
  function salaryOf(wage, hours) { return wage * hours * 52; }
  // the salary that matches the break-even wage, rounded up so it never falls short
  function paySalary(co, hours) { return Math.ceil(salaryOf(co.pay.wage, hours) - 0.005); }
  // pay in the person's own terms: '$62,151 a year' or '$29.88 an hour'
  function payText(wage, hours, basis) {
    return basis === 'salary' ? money(Math.ceil(salaryOf(wage, hours) - 0.005)) + ' a year' : wageFmt(wage) + ' an hour';
  }
  // a band of pay that would leave the family worse off, in the person's own terms
  function zoneText(z, hours, basis) {
    return basis === 'salary'
      ? 'a salary between ' + money(salaryOf(z.from, hours)) + ' and ' + money(salaryOf(z.to, hours))
      : 'pay between ' + wageFmt(z.from) + ' and ' + wageFmt(z.to) + ' an hour';
  }
  // what the engine sees: renewals as months after the start
  function toEngine(s) {
    var o = clone(s);
    o.renewCCAP = monthToRel(s.startMonth, s.renewCCAPMonth);
    o.renewSNAP = monthToRel(s.startMonth, s.renewSNAPMonth);
    o.renewMedicaid = monthToRel(s.startMonth, s.renewMedicaidMonth);
    return o;
  }

  // ---------- formatting ----------
  function money(n, opts) {
    opts = opts || {};
    var r = Math.round(Math.abs(n));
    var s = '$' + r.toLocaleString('en-US');
    if (opts.sign) return (n > 0.5 ? '+' : n < -0.5 ? '\u2212' : '') + s;
    return (n < -0.5 ? '\u2212' : '') + s;
  }
  function wageFmt(w) { return '$' + w.toFixed(2); }
  function monthName(mon, year) { return MONTHS[mon] + ' ' + year; }
  function esc(s) { return String(s).replace(/[&<>"']/g, function (c) { return ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]; }); }

  // ---------- dirty tracking + unsaved warning ----------
  function setDirty(v) { dirty = v; document.body.classList.toggle('is-dirty', v); }
  window.addEventListener('beforeunload', function (e) {
    if (!dirty && !(mine && mine.dirty)) return;
    e.preventDefault(); e.returnValue = '';
    return '';
  });

  // ---------- form <-> state ----------
  var NUM_FIELDS = ['careDaysPerWeek','localRate','rent','utilities','otherBills','jobPremiumSelf','jobPremiumKids',
                    'nowWage','nowHours','offerWage','offerHours','benchAdult','benchChild','employerCare','savings','raisePct',
                    'nowSalary','offerSalary','childSupport'];
  var PAY_FIELDS = { nowWage: ['now', 'hourly'], offerWage: ['offer', 'hourly'], nowSalary: ['now', 'salary'], offerSalary: ['offer', 'salary'],
                     nowHours: ['now', null], offerHours: ['offer', null] };
  var BOOL_FIELDS = ['paysHeatCool','onCCAP','onSNAP','jobInsurance','reminders'];
  var MONTH_FIELDS = ['renewCCAPMonth','renewSNAPMonth','renewMedicaidMonth'];
  var RANGES = {
    careDaysPerWeek: [1, 7], localRate: [0, 5], rent: [0, 20000], utilities: [0, 5000], otherBills: [0, 50000],
    jobPremiumSelf: [0, 5000], jobPremiumKids: [0, 5000], nowWage: [0, 500], nowHours: [1, 80], offerWage: [0, 500], nowSalary: [0, 2080000], offerSalary: [0, 2080000],
    offerHours: [1, 80], benchAdult: [0, 5000], benchChild: [0, 5000], employerCare: [0, 625], childSupport: [0, 10000], savings: [0, 1000000], raisePct: [0, 15]
  };
  var INTS = { careDaysPerWeek: 1 };
  var LABELS = { careDaysPerWeek: 'days of child care', localRate: 'local tax rate', rent: 'rent', utilities: 'utilities',
    otherBills: 'other bills', jobPremiumSelf: 'job insurance cost', jobPremiumKids: 'cost to add kids',
    nowWage: 'today\u2019s hourly pay', nowHours: 'today\u2019s hours', offerWage: 'the offer\u2019s hourly pay', offerHours: 'the offer\u2019s hours',
    benchAdult: 'kynect price for you', benchChild: 'kynect price per child', employerCare: 'employer child care payment',
    savings: 'savings', raisePct: 'yearly raise', paysHeatCool: 'heating or cooling', onCCAP: 'child care assistance',
    onSNAP: 'SNAP', jobInsurance: 'job insurance', reminders: 'calendar reminders',
    nowSalary: 'today\u2019s yearly salary', offerSalary: 'the offer\u2019s yearly salary', childSupport: 'child support received',
    renewCCAPMonth: 'child care renewal month', renewSNAPMonth: 'SNAP review month', renewMedicaidMonth: 'Medicaid renewal month' };

  function fmtField(f, v) {
    if (f === 'nowWage' || f === 'offerWage') return Number(v).toFixed(2);
    if (f === 'nowSalary' || f === 'offerSalary') return String(Math.round(v));
    return v;
  }
  // show which of the two pay fields is figured from the other
  function markCalc() {
    ['now', 'offer'].forEach(function (w) {
      var sal = S[w + 'Basis'] === 'salary';
      $(w + 'Wage').classList.toggle('calc', sal);
      $(w + 'Salary').classList.toggle('calc', !sal);
      $(w + 'WageTag').hidden = !sal;
      $(w + 'SalaryTag').hidden = sal;
    });
  }
  function fillSelects() {
    Array.prototype.forEach.call(document.querySelectorAll('.month-sel'), function (sel) {
      sel.innerHTML = MONTHS.map(function (m, i) { return '<option value="' + i + '">' + m + '</option>'; }).join('');
    });
  }
  function fillStart() {
    var sel = $('startKey'), opts = [], y = TODAY.getFullYear(), m = TODAY.getMonth(), seen = {};
    for (var i = 0; i <= 12; i++) { var mm = (m + i) % 12, yy = y + Math.floor((m + i) / 12); opts.push([yy, mm]); seen[yy + '-' + mm] = 1; }
    if (S && !seen[S.startYear + '-' + S.startMonth]) opts.unshift([S.startYear, S.startMonth]);
    sel.innerHTML = opts.map(function (o) { return '<option value="' + o[0] + '-' + o[1] + '">' + monthName(o[1], o[0]) + '</option>'; }).join('');
  }
  function writeForm() {
    NUM_FIELDS.forEach(function (f) { $(f).value = fmtField(f, S[f]); });
    BOOL_FIELDS.forEach(function (f) { $(f).checked = !!S[f]; });
    MONTH_FIELDS.forEach(function (f) { $(f).value = S[f]; });
    $('localChoice').value = S.localChoice;
    fillStart();
    $('startKey').value = S.startYear + '-' + S.startMonth;
    renderKids();
    syncVisibility();
    markCalc();
  }
  function syncVisibility() {
    $('otherRateField').hidden = S.localChoice !== 'other';
    $('jobFields').hidden = !S.jobInsurance;
  }
  function readNum(f) {
    var raw = $(f).value, v = parseFloat(raw);
    if (raw === '' || isNaN(v)) return S[f];
    var r = RANGES[f]; v = Math.min(r[1], Math.max(r[0], v));
    if (INTS[f]) v = Math.round(v);
    return v;
  }
  function clearKidUndo() { kidUndo = null; var u = $('kidUndo'); if (u) u.hidden = true; }
  function renderKids() {
    var box = $('kids'); box.innerHTML = '';
    S.kids.forEach(function (k, i) {
      var d = document.createElement('div'); d.className = 'kid';
      var opts = Object.keys(AGES).map(function (a) { return '<option value="' + a + '"' + (k.age === a ? ' selected' : '') + '>' + AGES[a].label + '</option>'; }).join('');
      d.innerHTML =
        '<div class="kid-head"><span>Child ' + (i + 1) + '</span>' +
        (S.kids.length > 1 ? '<button type="button" class="linkbtn" data-rm="' + i + '">Remove</button>' : '') + '</div>' +
        '<div class="row2">' +
          '<div><label class="sr" for="kidAge' + i + '">Child ' + (i + 1) + ' age</label><select id="kidAge' + i + '" data-age="' + i + '">' + opts + '</select></div>' +
          (AGES[k.age].noCare
            ? '<div class="no-care">No child care at this age</div>'
            : '<div><label class="sr" for="kidPrice' + i + '">Child ' + (i + 1) + ' monthly price of care</label><div class="money"><input type="number" min="0" step="10" inputmode="decimal" id="kidPrice' + i + '" data-price="' + i + '" value="' + k.price + '"></div></div>') +
        '</div>';
      box.appendChild(d);
    });
    $('addKid').hidden = S.kids.length >= MAX_KIDS;
  }

  var priceMemo = typeof WeakMap === 'function' ? new WeakMap() : null;
  var pending = null;
  function scheduleUpdate() { if (pending) return; pending = requestAnimationFrame(function () { pending = null; update(false); }); }
  function onChange(e) {
    var t = e.target;
    if (t.dataset && t.dataset.age !== undefined) {
      var i = +t.dataset.age, old = S.kids[i], from = AGES[old.age], to = AGES[t.value];
      // Teens never pay for care. Moving a child to a teen age and back brings back the price that was there;
      // otherwise a typical price follows the age, and a price the person typed in stays.
      if (to.noCare && !from.noCare) { if (priceMemo) priceMemo.set(old, { age: old.age, price: +old.price }); old.price = 0; }
      else if (from.noCare && !to.noCare) {
        var mem = priceMemo && priceMemo.get(old);
        old.price = !mem ? to.price : mem.age === t.value || mem.price !== AGES[mem.age].price ? mem.price : to.price;
      }
      else if (+old.price === from.price) old.price = to.price;
      old.age = t.value; renderKids();
    } else if (t.dataset && t.dataset.price !== undefined) {
      var p = parseFloat(t.value); if (!isNaN(p)) S.kids[+t.dataset.price].price = Math.min(10000, Math.max(0, p));
    } else if (t.id === 'localChoice') {
      S.localChoice = t.value;
      if (t.value !== 'other') { S.localRate = LOCAL[t.value]; $('localRate').value = S.localRate; }
    } else if (t.id === 'startKey') {
      var parts = t.value.split('-'); S.startYear = +parts[0]; S.startMonth = +parts[1];
    } else if (MONTH_FIELDS.indexOf(t.id) >= 0) {
      S[t.id] = +t.value;
    } else if (BOOL_FIELDS.indexOf(t.id) >= 0) {
      S[t.id] = t.checked;
    } else if (PAY_FIELDS[t.id]) {
      var who = PAY_FIELDS[t.id][0], basis = PAY_FIELDS[t.id][1];
      S[t.id] = readNum(t.id);
      if (basis) S[who + 'Basis'] = basis;
      syncPay(S, who);
      // refresh the figured field, never the one being typed in
      [who + 'Wage', who + 'Salary'].forEach(function (f) { if (f !== t.id) $(f).value = fmtField(f, S[f]); });
      if (e.type === 'change') t.value = fmtField(t.id, S[t.id]);
      markCalc();
    } else if (NUM_FIELDS.indexOf(t.id) >= 0) {
      S[t.id] = readNum(t.id);
      if (e.type === 'change') t.value = fmtField(t.id, S[t.id]);
    } else return;
    syncVisibility(); setDirty(true); clearKidUndo(); edited(); trialEdited(t.id); scheduleUpdate();
  }

  // ---------- examples ----------
  function renderChips() {
    var box = $('chips'); box.innerHTML = '';
    EXAMPLES.forEach(function (ex) {
      var b = document.createElement('button'); b.type = 'button'; b.className = 'chip'; b.textContent = ex.label;
      b.dataset.key = ex.key; b.setAttribute('aria-pressed', 'false');
      b.addEventListener('click', function () { pickExample(ex); });
      box.appendChild(b);
    });
  }
  function exName(key) { var ex = EXAMPLES.filter(function (x) { return x.key === key; })[0]; return ex ? ex.label.split(',')[0] : ''; }
  function markExample(key) { currentExample = key; exEdited = false; renderExNote(); }
  // the line under the example buttons: what's showing, and the way back when something was replaced
  function renderExNote(undo) {
    var shown = currentExample === null ? 'mine' : currentExample;
    Array.prototype.forEach.call(document.querySelectorAll('.chip'), function (c) { c.setAttribute('aria-pressed', c.dataset.key === shown ? 'true' : 'false'); });
    var ex = EXAMPLES.filter(function (x) { return x.key === currentExample; })[0], kept = mine ? ' Your own numbers are kept: choose \u201cMy own numbers\u201d to go back to them.' : '';
    var txt = currentExample === null ? 'Showing your own numbers.'
            : exEdited ? 'The ' + exName(currentExample) + ' example, with your changes.' + kept
            : ex.note + kept;
    var n = $('exNote'); n.textContent = '';
    if (undo) { txt = undo.text + ' '; }
    n.appendChild(document.createTextNode(txt));
    if (undo) {
      var bt = document.createElement('button'); bt.type = 'button'; bt.className = 'linkbtn'; bt.textContent = undo.label;
      bt.addEventListener('click', undo.fn); n.appendChild(bt);
    }
  }
  function copyTrial(t) { return t ? { base: clone(t.base), dirty: t.dirty, example: t.example, exEdited: t.exEdited, key: t.key, text: t.text, ctx: null } : null; }
  function snapshot() { return { s: clone(S), dirty: dirty, example: currentExample, exEdited: exEdited, trial: copyTrial(trial), mine: mine }; }
  function restore(snap) {
    S = clone(snap.s); trial = copyTrial(snap.trial); mine = snap.mine; clearKidUndo();
    writeForm(); setDirty(snap.dirty); currentExample = snap.example; exEdited = snap.exEdited; renderExNote(); update(true);
  }
  // Looking at an example never throws your own numbers away. They're kept, and "My own numbers" brings
  // them back. Changes made to an example can be undone right after switching away from it.
  function pickExample(ex) {
    var before = snapshot(), name = exName(ex.key);
    if (ex.key === 'mine') {
      if (currentExample === null || (currentExample === 'mine' && !dirty)) return; // already showing them
      var m = mine;
      trial = null; clearKidUndo(); hideAlert();
      if (m) { mine = null; S = clone(m.s); trial = copyTrial(m.trial); writeForm(); setDirty(m.dirty); markExample(null); }
      else { S = fromExample(ex); writeForm(); setDirty(false); markExample('mine'); }
      update(true);
      if (before.dirty) renderExNote({ text: (m ? 'Back to your own numbers.' : 'A plain starting point.') + ' Your changes to the ' + (before.example === 'mine' ? 'starting point' : exName(before.example) + ' example') + ' were cleared.', label: 'Undo', fn: function () { restore(before); } });
      return;
    }
    var keep = currentExample === null;           // your own numbers: keep them
    var lost = !keep && dirty;                     // changes to an example: offer to undo
    trial = null; clearKidUndo(); hideAlert();
    if (keep) mine = { s: clone(S), dirty: dirty, trial: copyTrial(before.trial) };
    S = fromExample(ex); writeForm(); setDirty(false); markExample(ex.key); update(true);
    if (lost) renderExNote({ text: 'Showing the ' + name + ' example. Your changes to the ' + (before.example === 'mine' ? 'starting point' : exName(before.example) + ' example') + ' were cleared.', label: 'Undo', fn: function () { restore(before); } });
  }
  // the person changed something by hand
  function edited() {
    if (mine && currentExample !== null) { if (!exEdited) { exEdited = true; renderExNote(); } }  // changing an example; own numbers stay kept
    else if (currentExample !== null || $('exNote').querySelector('button')) markExample(null);
    if ($('alert').dataset.kind === 'undo') hideAlert();
  }

  // ---------- results ----------
  function update(flash) {
    var inp = toEngine(S);
    var L = KY.limits(inp);
    var g0 = KY.scenarioGross(inp, 'now'), g1 = KY.scenarioGross(inp, 'offer');
    var now = KY.nowState(inp), off = KY.offerState(inp);
    var be = KY.breakEven(inp);
    var co = KY.counteroffers(inp);
    var br = KY.bridge(inp, { startYear: S.startYear, startMonth: S.startMonth, raisePct: S.raisePct, savings: S.savings });
    var diff = off.left - now.left;
    last = { inp: inp, L: L, g0: g0, g1: g1, now: now, off: off, be: be, co: co, br: br };

    function payLine(w, g) { return (S[w + 'Basis'] === 'salary' ? 'Hourly pay is figured from the salary. ' : 'Salary is figured from the hourly pay. ') + 'That\u2019s about ' + money(g) + ' a month before taxes.'; }
    $('nowMonthly').textContent = payLine('now', g0);
    $('offerMonthly').textContent = payLine('offer', g1);
    var w = $('ccapWarn');
    var cs = +inp.childSupport || 0, under13 = KY.kidCounts(inp).care;
    if (inp.onCCAP && under13 === 0) { w.hidden = false; w.textContent = 'Kentucky\u2019s child care help is for children under 13, so it won\u2019t apply to your household.'; }
    else if (inp.onCCAP && g0 + cs > L.ccap) { w.hidden = false; w.textContent = 'Today\u2019s ' + (cs ? 'pay plus child support is' : 'pay is') + ' above Kentucky\u2019s income limit for child care help (' + money(L.ccap) + ' a month for your family size). If you get CCAP now, double-check your pay, hours, and child support.'; }
    else if (inp.onCCAP && inp.nowHours < 20) { w.hidden = false; w.textContent = 'CCAP usually requires about 20 hours of work a week. Double-check today\u2019s hours.'; }
    else w.hidden = true;
    $('hoursWarn').hidden = !(inp.onCCAP && inp.offerHours < 20);
    $('hoursWarn').textContent = 'Under 20 hours a week, Kentucky\u2019s child care help stops.';
    var ew = $('eccapWarn');
    if (inp.employerCare > 0 && g1 + cs <= L.ccap) { ew.hidden = false; ew.textContent = 'At this pay, you\u2019re still under the limit for child care help, so you\u2019d keep CCAP instead. Kentucky\u2019s employer match only applies above ' + money(L.ccap) + ' a month.'; }
    else ew.hidden = true;

    // verdict
    var v = $('verdict');
    v.className = 'verdict ' + (diff > 0.5 ? 'ahead' : diff < -0.5 ? 'behind' : '');
    $('vBig').textContent = Math.abs(diff) < 0.5 ? 'about the same' : money(Math.abs(diff)) + (diff > 0 ? ' more' : ' less');
    $('vPost').textContent = Math.abs(diff) < 0.5 ? 'money each month as you have today.' : 'each month than you have today.';
    var need = '';
    var ob = S.offerBasis, oh = inp.offerHours;
    if (be.behind && be.needWage) need = 'To break even at ' + oh + ' hours a week, you\u2019d need ' + (ob === 'salary' ? 'a salary of ' : '') + payText(be.needWage, oh, ob) + ' or more. Other ways to get there are below.';
    else if (be.behind) need = 'At ' + inp.offerHours + ' hours a week, no pay within $20 an hour of the offer would get you back to even.';
    else if (be.nextZone) need = 'Careful: ' + zoneText(be.nextZone, oh, ob) + ' would leave you worse off than today.';
    else need = 'No pay between the offer and ' + payText(be.scanTo, oh, ob) + ' would leave you worse off than today.';
    $('vNeed').textContent = need;
    var ex = EXAMPLES.filter(function (x) { return x.key === currentExample && x.key !== 'mine'; })[0];
    $('vPre').textContent = trial ? 'Once every program adjusts, the offer you\u2019re trying leaves you with'
      : (ex ? 'For the ' + (exEdited ? 'changed ' : '') + ex.label.split(',')[0] + ' example: o' : 'O') + 'nce every program adjusts, the offer leaves you with';
    $('vYear').textContent = timingSentence(br, diff);
    if (flash) { v.classList.remove('flash'); void v.offsetWidth; v.classList.add('flash'); }

    renderChart();
    renderLedger(now, off);
    renderWhy(inp, L, g0, g1, now, off);
    renderOptions();
    renderMap();
    renderBridge();
    renderTips(inp, be, L, g1);
    renderIcsHelp();
    Array.prototype.forEach.call(document.querySelectorAll('.printDate'), function (el) {
      el.textContent = TODAY.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });
    });
  }

  // When does the change show up? One plain sentence for the verdict.
  function timingSentence(br, diff) {
    var ms = br.months, firstCashDown = null, worstRefund = null;
    ms.forEach(function (m) {
      var cashDiff = m.cash - m.baseCash;
      if (firstCashDown == null && cashDiff < -0.5) firstCashDown = m;
      if (m.refundYear != null && m.refund - m.baseRefund < -300 && (!worstRefund || m.refund - m.baseRefund < worstRefund.refund - worstRefund.baseRefund)) worstRefund = m;
    });
    var s, refTxt = worstRefund ? 'your tax refund in ' + monthName(worstRefund.mon, worstRefund.year) + ' is about ' + money(worstRefund.baseRefund - worstRefund.refund) + ' smaller, and that repeats every year.' : '';
    if (diff < -0.5) {
      if (firstCashDown) s = 'The drop starts in ' + monthName(firstCashDown.mon, firstCashDown.year) + '.' + (worstRefund ? ' On top of that, ' + refTxt : '');
      else if (worstRefund) s = 'Your paychecks and benefits come out ahead every month, but ' + refTxt;
      else s = 'The difference is small month to month.';
    } else if (diff > 0.5 && firstCashDown) {
      // ahead at the offer's pay, but a later raise lands in a cliff
      var byRaise = firstCashDown.events.indexOf('raise') >= 0, when = monthName(firstCashDown.mon, firstCashDown.year);
      s = 'You come out ahead at first, but ' + (byRaise ? 'your yearly raise in ' + when + ' pushes your pay into the cliff' : 'starting in ' + when + ', you\u2019d have less than today') +
        (br.pastCliff && br.pastCliff.years > 0 ? '. Later raises get you back to today\u2019s level for good in ' + monthName(br.pastCliff.mon, br.pastCliff.year) + '.' : '.');
    } else {
      s = diff > 0.5 ? 'You come out ahead.' : 'You come out about even.';
      if (worstRefund) s += ' Plan for a smaller tax refund in ' + monthName(worstRefund.mon, worstRefund.year) + ' (about ' + money(worstRefund.baseRefund - worstRefund.refund) + ' less).';
    }
    return s + ' The bridge budget below shows what to set aside or use each month.';
  }

  function renderLedger(now, off) {
    function row(label, a, b, cls, signed) {
      var d = b - a;
      return '<tr class="' + (cls || '') + '"><td>' + label + '</td><td>' + money(a) + '</td><td>' + money(b) + '</td><td class="' +
        (Math.abs(d) < 0.5 ? '' : (signed ? (d > 0 ? 'pos' : 'neg') : (d > 0 ? 'neg' : 'pos'))) + '">' + money(d, { sign: true }) + '</td></tr>';
    }
    var taxesA = now.fica + now.federal + now.state + now.local, taxesB = off.fica + off.federal + off.state + off.local;
    var h = '<caption class="sr">Monthly money today and with the offer</caption><thead><tr><th scope="col">Each month</th><th scope="col">Today</th><th scope="col">With the offer</th><th scope="col">Change</th></tr></thead><tbody>';
    h += row('Pay before taxes', now.gross, off.gross, '', true);
    if (now.childSupport > 0) h += row('Child support received', now.childSupport, off.childSupport, '', true);
    h += row('Taxes taken out', taxesA, taxesB, '', false);
    h += row('Social Security and Medicare', now.fica, off.fica, 'sub', false);
    h += row('Federal income tax', now.federal, off.federal, 'sub', false);
    h += row('Kentucky income tax', now.state, off.state, 'sub', false);
    h += row('Local occupational tax', now.local, off.local, 'sub', false);
    h += row('Tax refund (monthly share)', now.credits, off.credits, '', true);
    h += row('Earned income credit', now.eitc, off.eitc, 'sub', true);
    h += row('Child tax and child care credits', now.childCredits, off.childCredits, 'sub', true);
    h += row('Kentucky credits', now.kyCredits, off.kyCredits, 'sub', true);
    h += row('SNAP', now.snap, off.snap, '', true);
    h += row('Child care you pay', now.care, off.care, '', false);
    h += row('Health premiums', now.health, off.health, '', false);
    h += row('Rent and other bills', now.bills, off.bills, '', false);
    h += row('Money left', now.left, off.left, 'total', true);
    h += '</tbody>';
    $('ledger').innerHTML = h;
    var note = 'The refund is shown as a monthly share so the months compare fairly. It actually arrives once a year, in early March; the bridge budget below shows it in the right month.';
    if (off.eccap.active) note += ' With the offer, your employer pays ' + money(off.eccap.employerPaid) + ' and Kentucky\u2019s match adds ' + money(off.eccap.statePaid) + ' toward child care each month.';
    $('ledgerNote').textContent = note;
  }

  function meter(now, off, lim, maxV) {
    var mx = Math.max(maxV, lim * 1.15);
    function pc(x) { return Math.min(100, Math.max(0, x / mx * 100)).toFixed(2) + '%'; }
    return '<div class="meter" aria-hidden="true"><span class="lim" style="left:' + pc(lim) + '"></span>' +
      '<span class="pin now" style="left:' + pc(now) + '"></span><span class="pin off" style="left:' + pc(off) + '"></span></div>' +
      '<div class="meter-key"><span>Gray dot: today. Gold dot: the offer.</span><span>Limit: ' + money(lim) + ' a month</span></div>';
  }
  function renderWhy(inp, L, g0, g1, now, off) {
    var cs = +inp.childSupport || 0, h0 = g0 + cs, h1 = g1 + cs;   // child care help and SNAP count child support as income
    var items = [], mx = Math.max(h0, h1) * 1.1;
    var famTxt = 'a family of ' + L.size;
    var csNote = cs ? ' This counts your ' + money(cs) + ' a month in child support, which Kentucky includes as income for this program.' : '';
    if (inp.onCCAP && KY.kidCounts(inp).care > 0) {
      var t;
      if (inp.offerHours < 20 && h1 <= L.ccap) t = 'The offer is under 20 hours a week, and Kentucky\u2019s child care help requires about 20. You\u2019d pay the full ' + money(KY.fullCarePrice(inp)) + ' a month.';
      else if (h1 > L.ccap) t = 'The offer puts you over Kentucky\u2019s income limit for child care help: ' + money(L.ccap) + ' a month for ' + famTxt + '. Help drops to about half for six months, and then you pay the full ' + money(KY.fullCarePrice(inp)) + ' a month. Above the limit, money your employer puts toward child care gets a state match.';
      else {
        var c0 = KY.dailyCopay(h0, L.size), c1 = KY.dailyCopay(h1, L.size);
        t = 'You stay under the limit of ' + money(L.ccap) + ' a month for ' + famTxt + '. ' + (c0 === c1 ? 'Your daily copay stays at ' + money(c0) + '.' : 'Your daily copay goes from ' + money(c0) + ' to ' + money(c1) + ' at your next renewal.');
      }
      items.push('<li><b>Child care help (CCAP)</b>' + esc(t + csNote) + meter(h0, h1, L.ccap, mx) + '</li>');
    }
    if (inp.onSNAP) {
      var s = off.snap === 0 && now.snap > 0 ? 'SNAP would stop: after deductions, the offer\u2019s ' + (cs ? 'pay plus child support is' : 'pay is') + ' over Kentucky\u2019s limit for ' + famTxt + '.'
        : 'SNAP goes from ' + money(now.snap) + ' to ' + money(off.snap) + ' a month. It shrinks about 24 to 30 cents for each extra dollar you earn, and stops at ' + money(L.snapGross) + ' a month' + (cs ? ' of pay plus child support' : ' before taxes') + '.';
      if (h1 > L.snapReport && h0 <= L.snapReport) s += ' Because your income would be over ' + money(L.snapReport) + ' a month, you have to report it, so SNAP changes right away.';
      items.push('<li><b>SNAP</b>' + esc(s + csNote) + meter(h0, h1, L.snapGross, mx) + '</li>');
    }
    function prem(x) { return x < 0.5 ? ', with no premiums' : ', at about ' + money(x) + ' a month in premiums'; }
    var hTxt = 'Today your coverage is ' + now.healthLabel + prem(now.health) + '. ' +
      (now.healthLabel === off.healthLabel
        ? 'With the offer, you\u2019d keep the same coverage' + (Math.abs(off.health - now.health) < 0.5 ? '.' : ', but premiums would go from ' + money(now.health) + ' to ' + money(off.health) + ' a month.')
        : 'With the offer, it would be ' + off.healthLabel + prem(off.health) + '.') +
      ' Adult Medicaid stops at ' + money(L.adultMedicaid) + ' a month in income; the kids\u2019 coverage (Medicaid and KCHIP) goes up to ' + money(L.kids) + '.' +
      (cs ? ' Child support doesn\u2019t count for Medicaid, KCHIP, or kynect.' : '');
    items.push('<li><b>Health coverage</b>' + esc(hTxt) + meter(g0, g1, L.adultMedicaid, mx) + '</li>');
    var cr = 'Your refund goes from about ' + money(now.credits * 12) + ' to ' + money(off.credits * 12) + ' a year. It\u2019s made up of the earned income credit (which shrinks once pay passes about $23,900 a year), the child tax credit (for children under 17), credits for the child care you pay (for children under 13), and Kentucky\u2019s family size credit for lower incomes.';
    items.push('<li><b>Tax refund</b>' + esc(cr) + '</li>');
    $('why').innerHTML = items.join('');
  }

  // ---------- make the offer work ----------
  // "Try this offer" is a what-if. The original offer is kept in trial.base so the person can go back,
  // and the options (and the one-page ask) keep describing the original offer while one is being tried.
  var trial = null; // { base, dirty, example, key, text, ctx }
  var TRIAL_FIELDS = ['offerWage', 'offerSalary', 'offerHours', 'offerBasis', 'employerCare'];
  function optionCtx() {
    if (!trial) return { st: S, inp: last.inp, L: last.L, g1: last.g1, now: last.now, off: last.off, be: last.be, co: last.co };
    if (!trial.ctx) {
      var inp = toEngine(trial.base);
      trial.ctx = { st: trial.base, inp: inp, L: KY.limits(inp), g1: KY.scenarioGross(inp, 'offer'), now: KY.nowState(inp),
                    off: KY.offerState(inp), be: KY.breakEven(inp), co: KY.counteroffers(inp) };
    }
    return trial.ctx;
  }
  // is this option the one on the page right now?
  function isTrying(key, b) {
    if (!trial) return false;
    var co = b.co;
    if (key === 'pay') return !!co.pay && (b.st.offerBasis === 'salary' ? Math.abs(S.offerSalary - paySalary(co, b.inp.offerHours)) < 1 : Math.abs(S.offerWage - co.pay.wage) < 0.005) && S.offerHours === b.st.offerHours && S.employerCare === b.st.employerCare;
    if (key === 'hours') return !!co.hours && S.offerHours === co.hours.hours && Math.abs(S.offerWage - b.st.offerWage) < 0.005 && S.employerCare === b.st.employerCare;
    if (key === 'eccap') return !!co.eccap.amount && S.employerCare === co.eccap.amount && S.offerHours === b.st.offerHours && Math.abs(S.offerWage - b.st.offerWage) < 0.005;
    return false;
  }
  function renderTrial() {
    var top = $('trialTop'), bar = $('trialBar');
    top.hidden = bar.hidden = !trial;
    if (!trial) return;
    top.querySelector('p').textContent = 'You’re trying ' + trial.text + '. Everything on the page uses this change until you go back.';
    bar.querySelector('p').textContent = 'You’re trying ' + trial.text + '. The options below are still figured from the original offer, so you can compare them or try another.';
  }
  function renderOptions() {
    var b = optionCtx(), st = b.st, inp = b.inp, co = b.co, off = b.off, box = $('options'), cards = [];
    var ob = st.offerBasis, sal = ob === 'salary';
    var wage = wageFmt(inp.offerWage);
    var payCost = co.pay ? co.pay.employerCost : null;
    renderTrial();
    if (!co.behind) {
      $('coLede').textContent = (trial ? 'The original offer' : 'The offer') + ' already leaves you at least even with today once every program adjusts. The map below shows which other mixes of pay and hours would, too.';
      box.innerHTML = '<div class="note-box">' + esc(b.be.nextZone
        ? 'Nothing to ask for here. But check the next raise before you say yes: ' + zoneText(b.be.nextZone, inp.offerHours, ob) + ' at these hours would leave you worse off than today.'
        : 'Nothing to ask for here. No pay up to ' + payText(b.be.scanTo, inp.offerHours, ob) + ' would leave you worse off than today.') + '</div>';
      showAskRow(false);
      return;
    }
    var offerTxt = (sal ? 'a ' + money(st.offerSalary) + ' salary' : wage + ' an hour') + ' for ' + inp.offerHours + ' hours a week';
    $('coLede').textContent = (trial ? 'The original offer, ' + offerTxt + ', would leave you with ' : 'At ' + offerTxt + ', you’d have ') + money(b.now.left - off.left) +
      ' a month less than today. Any one of these changes would leave you at least even with today. Each one was checked against every program on this page.';
    if (co.pay) cards.push({ key: 'pay', cls: '', title: sal ? 'Ask for a ' + money(paySalary(co, inp.offerHours)) + ' salary' : 'Ask for ' + wageFmt(co.pay.wage) + ' an hour',
      body: 'That’s ' + (sal ? money(paySalary(co, inp.offerHours) - st.offerSalary) + ' a year more than the offer (' + wageFmt(co.pay.wage) + ' an hour)' : wageFmt(co.pay.raise) + ' an hour more than the offer') + '. It’s the lowest pay at ' + inp.offerHours + ' hours a week that leaves you at least even with today once every program adjusts.',
      cost: 'It costs your employer about <strong>' + money(co.pay.employerCost) + ' more a month</strong>, including their share of payroll taxes.' });
    if (co.hours) {
      var hrsCost = (co.hours.hours - inp.offerHours) * inp.offerWage * 52 / 12 * 1.0765;
      var rate = sal ? 'the same hourly rate (' + wage + ')' : wage;
      var csH = +inp.childSupport || 0;
      var why = (co.hours.hours < inp.offerHours && b.g1 + csH > b.L.ccap && inp.offerWage * co.hours.hours * 52 / 12 + csH <= b.L.ccap
        ? 'At ' + rate + (sal ? '' : ' an hour') + ', working ' + co.hours.hours + ' hours a week keeps you under Kentucky’s income limit for child care help. '
        : 'At ' + rate + (sal ? '' : ' an hour') + ', working ' + co.hours.hours + ' hours a week gets you past the cliff. ') +
        (sal ? 'That’s a ' + money(salaryOf(inp.offerWage, co.hours.hours)) + ' salary. ' : '');
      cards.push({ key: 'hours', cls: '', title: 'Ask for ' + co.hours.hours + ' hours a week',
        body: why + 'You’d have about ' + money(co.hours.left - b.now.left) + ' a month more than today.',
        cost: hrsCost < 0 ? 'It costs your employer about <strong>' + money(-hrsCost) + ' a month less</strong> than the offer.'
                          : 'It costs your employer about <strong>' + money(hrsCost) + ' a month more</strong> than the offer.' });
    }
    if (co.eccap.applies && co.eccap.amount) {
      var e = co.eccap.amount, rate = Math.round(co.eccap.rate * 100);
      var cmp = payCost ? ', about ' + money(payCost - e) + ' less than the raise above' : '';
      cards.push({ key: 'eccap', cls: 'match', title: 'Ask your employer for ' + money(e) + ' a month toward child care',
        body: 'Through Kentucky’s Employee Child Care Assistance Partnership, the state matches ' + rate + '% of that payment at your income. Your child care bill drops by about ' + money(e + co.eccap.match) + ' a month once CCAP’s six-month transition ends.',
        fine: 'Your employer has to sign up with Kentucky’s Division of Child Care, and state funding is limited. If your employer pays through a dependent care plan, the money isn’t taxed.',
        cost: 'It costs your employer <strong>' + money(e) + ' a month</strong>' + cmp + '.' });
    } else if (co.eccap.applies && !co.eccap.amount) {
      cards.push({ key: 'eccap-no', cls: 'match', title: 'Employer child care help won’t close this gap',
        body: 'Even the most an employer can pay tax-free ($625 a month), plus Kentucky’s match, leaves you short. Your pay or hours would have to change too.', cost: '' });
    }
    if (!cards.length) {
      box.innerHTML = '<div class="note-box">No single change in pay, hours, or employer child care help gets you back to even. Talk with your caseworker or a kynector about what else might apply.</div>';
      showAskRow(false); return;
    }
    box.innerHTML = cards.map(function (c) {
      var tryable = c.key.indexOf('-no') < 0, on = tryable && isTrying(c.key, b);
      return '<div class="option ' + c.cls + (on ? ' trying' : '') + '">' + (on ? '<p class="trying-tag">You’re trying this now</p>' : '') +
        '<h3>' + esc(c.title) + '</h3><p>' + esc(c.body) + '</p>' +
        (c.fine ? '<p class="fine">' + esc(c.fine) + '</p>' : '') +
        (c.cost ? '<div class="cost">' + c.cost + '</div>' : '') +
        (!tryable ? '' : on ? '<button class="btn" type="button" data-back="options">Back to the original offer</button>'
                            : '<button class="btn" type="button" data-try="' + c.key + '">' + (trial ? 'Try this instead' : 'Try this offer') + '</button>') + '</div>';
    }).join('');
    showAskRow(cards.some(function (c) { return c.key.indexOf('-no') < 0; }));
    buildAskSheet(cards, b);
  }
  function tryOption(key) {
    var b = optionCtx(), co = b.co, base = b.st, sal = base.offerBasis === 'salary', next = clone(base), text;
    if (key === 'pay' && co.pay) {
      if (sal) { next.offerSalary = paySalary(co, b.inp.offerHours); text = 'a ' + money(next.offerSalary) + ' salary instead of ' + money(base.offerSalary); }
      else { next.offerWage = co.pay.wage; text = wageFmt(co.pay.wage) + ' an hour instead of ' + wageFmt(base.offerWage); }
      syncPay(next, 'offer');
    }
    else if (key === 'hours' && co.hours) {
      next.offerHours = co.hours.hours;
      text = co.hours.hours + ' hours a week instead of ' + base.offerHours;
      // same hourly rate, so a salary moves with the hours
      if (sal) { next.offerSalary = Math.round(salaryOf(next.offerWage, next.offerHours)); text += ' (a ' + money(next.offerSalary) + ' salary)'; }
      syncPay(next, 'offer');
    }
    else if (key === 'eccap' && co.eccap.amount) { next.employerCare = co.eccap.amount; text = money(co.eccap.amount) + ' a month from your employer toward child care'; }
    else return;
    if (!trial) trial = { base: clone(S), dirty: dirty, example: currentExample, exEdited: exEdited, ctx: null };
    trial.key = key; trial.text = text;
    S = next; writeForm(); setDirty(true); edited(); hideAlert(); update(true);
    var top = $('trialTop');
    top.focus({ preventScroll: true });
    $('verdict').scrollIntoView({ behavior: 'smooth', block: 'center' });
  }
  function backToOriginal(from) {
    if (!trial) return;
    var t = trial; trial = null;
    S = clone(t.base); writeForm(); setDirty(t.dirty); currentExample = t.example; exEdited = t.exEdited; renderExNote(); update(true);
    // put keyboard focus somewhere sensible now that the button that was clicked is gone
    if (from === 'top') $('verdict').focus({ preventScroll: true });
    else { var first = document.querySelector('#options [data-try]'); if (first) first.focus({ preventScroll: true }); }
  }
  // the person changed something by hand while trying an option
  function trialEdited(field) {
    if (!trial) return;
    // a new offer typed in becomes their own numbers; there's no "original" to go back to any more
    if (TRIAL_FIELDS.indexOf(field) >= 0) { trial = null; return; }
    // anything else (rent, kids, dates...) is carried into the original offer too, so going back keeps it
    var keep = {}; TRIAL_FIELDS.forEach(function (f) { keep[f] = trial.base[f]; });
    trial.base = clone(S); TRIAL_FIELDS.forEach(function (f) { trial.base[f] = keep[f]; });
    trial.dirty = true; trial.ctx = null;
    if (mine && trial.example !== null) trial.exEdited = true; else { trial.example = null; trial.exEdited = false; }
  }
  function endTrial() { trial = null; }

  // ---------- the one-page ask ----------
  var askOpen = false;
  function showAskRow(on) {
    $('askRow').hidden = !on;
    $('askPreview').hidden = !on || !askOpen;
    if (!on) $('askMsg').hidden = true;
  }
  function setAskOpen(on) {
    askOpen = on;
    $('askPreview').hidden = !on || $('askRow').hidden;
    var b = $('askPeek'); b.setAttribute('aria-expanded', on ? 'true' : 'false'); b.textContent = on ? 'Hide the page' : 'See the page first';
  }
  function askSheetHTML(cards, b, tag) {
    var inp = b.inp, co = b.co, st = b.st, sal = st.offerBasis === 'salary';
    var date = TODAY.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });
    var items = cards.filter(function (c) { return c.key.indexOf('-no') < 0; }).map(function (c) {
      var txt;
      if (c.key === 'pay') txt = '<strong>' + (sal ? 'A salary of ' + money(paySalary(co, inp.offerHours)) : 'Pay of ' + wageFmt(co.pay.wage) + ' an hour') + '</strong> at ' + inp.offerHours + ' hours a week. Added cost: about ' + money(co.pay.employerCost) + ' a month, including the employer’s share of payroll taxes.';
      else if (c.key === 'hours') { var hc = (co.hours.hours - inp.offerHours) * inp.offerWage * 52 / 12 * 1.0765;
        txt = '<strong>' + co.hours.hours + ' hours a week</strong> at the offered ' + wageFmt(inp.offerWage) + ' an hour' + (sal ? ' (a ' + money(salaryOf(inp.offerWage, co.hours.hours)) + ' salary)' : '') + '. ' + (hc < 0 ? 'Saves about ' + money(-hc) + ' a month compared with the offer.' : 'Added cost: about ' + money(hc) + ' a month.'); }
      else txt = '<strong>' + money(co.eccap.amount) + ' a month toward my child care</strong> through Kentucky’s Employee Child Care Assistance Partnership. Cost: ' + money(co.eccap.amount) + ' a month; Kentucky adds a ' + Math.round(co.eccap.rate * 100) + '% match.';
      return '<li>' + txt + '</li>';
    });
    var hasMatch = cards.some(function (c) { return c.key === 'eccap'; });
    return '<' + tag + ' class="ask-title">Making this offer work</' + tag + '>' +
      '<p class="meta">Prepared ' + esc(date) + '. Name: ______________________________</p>' +
      '<p>Thank you for the offer of ' + (sal ? 'a ' + money(st.offerSalary) + ' salary' : wageFmt(inp.offerWage) + ' an hour') + ' at ' + inp.offerHours + ' hours a week. I want to say yes. Because of how my family’s costs change at this pay, the offer as written would leave my household with less each month than I have now. Any one of these would make it work:</p>' +
      '<ul>' + items.join('') + '</ul>' +
      (hasMatch ? '<div class="box"><strong>About the Employee Child Care Assistance Partnership (ECCAP).</strong> Kentucky created it in 2022 (KRS 199.885). An employer pays part of an employee’s child care, and the state adds a match: 100% of the employer’s payment for households at or below the state median income, falling to 50% for households above 180% of it. Payments go straight to the child care provider. Up to $7,500 a year of the employer’s share can be tax-free under a dependent care assistance plan, and the state’s match isn’t taxable to the employee. Employers apply through the Kentucky Division of Child Care’s KICCS portal; search “Employee Child Care Assistance Partnership” at chfs.ky.gov. State funding is limited and is set each budget year.</div>' : '') +
      '<p class="small">Estimates from Raise Check KY, an educational tool built for the 2026 Kentucky PFM Challenge using 2026 federal and Kentucky rules. Not tax, legal, or benefits advice.</p>';
  }
  function buildAskSheet(cards, b) {
    $('askSheet').innerHTML = askSheetHTML(cards, b, 'h1');   // printed on its own
    $('askView').innerHTML = askSheetHTML(cards, b, 'h3');    // the same page, shown on screen
  }

  // ---------- pay and hours map ----------
  function renderMap() {
    var inp = last.inp, svg = $('hoursMap');
    var W = Math.max(300, Math.round(svg.parentNode.clientWidth - 32)), narrow = W < 560;
    var lo = Math.max(7.25, Math.floor(Math.min(inp.nowWage, inp.offerWage)) - 1);
    var hi = Math.ceil(Math.max(inp.offerWage, inp.nowWage, last.be.needWage || 0)) + 2;
    var step = narrow ? 1 : 0.5;
    while ((hi - lo) / step > (narrow ? 16 : 34)) step *= 2;
    var wages = []; for (var x = lo; x <= hi + 1e-9; x += step) wages.push(Math.round(x * 100) / 100);
    var hMax = Math.max(50, Math.ceil(inp.offerHours), Math.ceil(inp.nowHours));
    var hours = []; for (var h = hMax - (hMax % 2); h >= 20; h -= 2) hours.push(h);
    [Math.round(inp.offerHours), Math.round(inp.nowHours)].forEach(function (x) { if (x >= 20 && x <= hMax && hours.indexOf(x) < 0) hours.push(x); });
    hours.sort(function (a, b) { return b - a; });
    var m = { l: 46, r: 8, t: 8, b: 40 };
    var cw = (W - m.l - m.r) / wages.length, ch = narrow ? 14 : 16;
    var H = m.t + ch * hours.length + m.b;
    svg.setAttribute('viewBox', '0 0 ' + W + ' ' + H);
    var nowLeft = last.now.left, cells = '', aheadAtOfferHours = [];
    var grid = [];
    hours.forEach(function (hh, ri) {
      var rowVals = [];
      wages.forEach(function (ww, ci) {
        var d = KY.steady(inp, KY.monthlyGross(ww, hh), hh, inp.employerCare || 0).left - nowLeft;
        rowVals.push(d);
        var fill = d >= 150 ? 'var(--map-up2)' : d > 0.5 ? 'var(--map-up1)' : d >= -0.5 ? 'var(--sunk)' : d > -150 ? 'var(--map-dn1)' : 'var(--map-dn2)';
        cells += '<rect x="' + (m.l + ci * cw).toFixed(2) + '" y="' + (m.t + ri * ch) + '" width="' + Math.max(1, cw - 1).toFixed(2) + '" height="' + (ch - 1) + '" fill="' + fill + '"/>';
        if (hh === Math.round(inp.offerHours) && d > 0.5) aheadAtOfferHours.push(ww);
      });
      grid.push(rowVals);
    });
    var g = cells;
    // axes
    hours.forEach(function (hh, ri) { if (narrow ? (hh % 10 === 0 || hh === Math.round(inp.offerHours)) : (hh % 4 === 0 || hh === Math.round(inp.offerHours))) g += '<text x="' + (m.l - 6) + '" y="' + (m.t + ri * ch + ch - 1) + '" text-anchor="end" font-size="11" fill="var(--ink-2)">' + hh + ' hrs</text>'; });
    var every = Math.max(1, Math.ceil(42 / cw));
    wages.forEach(function (ww, ci) { if (ci % every === 0) g += '<text x="' + (m.l + ci * cw + cw / 2).toFixed(1) + '" y="' + (H - m.b + 15) + '" text-anchor="middle" font-size="11" fill="var(--ink-2)">$' + (ww % 1 ? ww.toFixed(2) : ww) + '</text>'; });
    g += '<text x="' + ((m.l + W - m.r) / 2) + '" y="' + (H - 6) + '" text-anchor="middle" font-size="12" fill="var(--ink-2)">Hourly pay</text>';
    // markers
    function cellOf(ww, hh) {
      var ci = -1, best = 1e9; wages.forEach(function (x2, i) { if (Math.abs(x2 - ww) < best) { best = Math.abs(x2 - ww); ci = i; } });
      var ri = hours.indexOf(Math.round(hh)); return { ci: ci, ri: ri };
    }
    var oc = cellOf(inp.offerWage, inp.offerHours);
    if (oc.ri >= 0) g += '<rect x="' + (m.l + oc.ci * cw - 1).toFixed(2) + '" y="' + (m.t + oc.ri * ch - 1.5) + '" width="' + (cw + 1).toFixed(2) + '" height="' + (ch + 2) + '" fill="none" stroke="var(--gold)" stroke-width="2.5"/>';
    var nc = cellOf(inp.nowWage, inp.nowHours);
    if (nc.ri >= 0 && nc.ci >= 0) g += '<circle cx="' + (m.l + nc.ci * cw + cw / 2).toFixed(2) + '" cy="' + (m.t + nc.ri * ch + ch / 2 - 0.5) + '" r="' + Math.min(4, ch / 2) + '" fill="var(--surface)" stroke="var(--ink)" stroke-width="1.5"/>';
    g += '<rect id="mapHit" x="' + m.l + '" y="' + m.t + '" width="' + (W - m.l - m.r) + '" height="' + (ch * hours.length) + '" fill="transparent"/>';
    g += '<rect id="mapSel" width="0" height="0" fill="none" stroke="var(--ink)" stroke-width="2"/>';
    svg.innerHTML = g;
    $('mapDesc').textContent = 'Grid of hourly pay from ' + wageFmt(lo) + ' to ' + wageFmt(hi) + ' and 20 to ' + hMax + ' hours a week, colored by whether each leaves you ahead of today. ' +
      (aheadAtOfferHours.length ? 'At ' + Math.round(inp.offerHours) + ' hours a week, these pay levels leave you ahead: ' + ranges(aheadAtOfferHours, step) + '.' : 'At ' + Math.round(inp.offerHours) + ' hours a week, no pay in this range leaves you ahead.');
    $('mapRead').textContent = 'Tap a square to see that pay and schedule. The gold square is the offer, and the circle is today.';
    var hit = $('mapHit');
    function pick(ev) {
      var r = svg.getBoundingClientRect(), sx = (ev.clientX - r.left) / r.width * W, sy = (ev.clientY - r.top) / r.height * H;
      var ci = Math.min(wages.length - 1, Math.max(0, Math.floor((sx - m.l) / cw))), ri = Math.min(hours.length - 1, Math.max(0, Math.floor((sy - m.t) / ch)));
      var d = grid[ri][ci], sel = $('mapSel');
      sel.setAttribute('x', (m.l + ci * cw - 1).toFixed(2)); sel.setAttribute('y', m.t + ri * ch - 1); sel.setAttribute('width', (cw + 1).toFixed(2)); sel.setAttribute('height', ch + 1);
      $('mapRead').textContent = wageFmt(wages[ci]) + ' an hour, ' + hours[ri] + ' hours a week (' + money(salaryOf(wages[ci], hours[ri])) + ' a year): ' + money(nowLeft + d) + ' left each month, ' +
        (Math.abs(d) < 0.5 ? 'the same as today.' : money(Math.abs(d)) + (d > 0 ? ' more' : ' less') + ' than today.');
    }
    hit.addEventListener('pointermove', pick); hit.addEventListener('pointerdown', pick);
  }
  function ranges(list, step) {
    var out = [], a = list[0], b = list[0];
    for (var i = 1; i < list.length; i++) { if (Math.abs(list[i] - b - step) < 1e-6) b = list[i]; else { out.push([a, b]); a = b = list[i]; } }
    out.push([a, b]);
    return out.map(function (p) { return p[0] === p[1] ? wageFmt(p[0]) : wageFmt(p[0]) + ' to ' + wageFmt(p[1]); }).join(', ');
  }

  // ---------- bridge budget ----------
  var EVENT_TEXT = {
    'ccap-transition': 'Child care help drops to about half. For six months after your income passes the limit, Kentucky keeps paying half its usual rate.',
    'ccap-ends': 'The six-month transition ends. You pay the full child care price.',
    'ccap-renew': 'Child care renewal: your daily copay is reset to match the new pay.',
    'ccap-hours': 'Child care help ends because the new schedule is under 20 hours a week.',
    'eccap-starts': 'Your employer\u2019s child care payment and Kentucky\u2019s match start covering part of the bill.',
    'snap-report': 'SNAP is recalculated after you report income over the reporting limit.',
    'snap-renew': 'SNAP review: your benefit is recalculated with the new pay.',
    'medicaid-adult': 'Your Medicaid ends after you report the new pay. You move to a kynect plan or your job\u2019s plan.',
    'kchip-ends': 'At renewal, your income is over the kids\u2019 limit for Medicaid and KCHIP, so they need other coverage.',
    'raise': 'Your yearly raise starts.',
    'past-cliff': 'With yearly raises, you\u2019re back to at least today\u2019s level for good.'
  };
  function eventText(e, m) {
    if (e === 'refund') {
      var d = m.refund - m.baseRefund;
      return 'Your tax refund for ' + m.refundYear + ' arrives: about ' + money(m.refund) + (Math.abs(d) < 1 ? ', the same as if you stayed put.' : ', which is ' + money(Math.abs(d)) + (d < 0 ? ' less' : ' more') + ' than if you stayed put.');
    }
    if (e === 'raise') return 'Your ' + (+S.raisePct) + '% yearly raise takes effect.';
    return EVENT_TEXT[e] || '';
  }
  function renderBridge() {
    var br = last.br, ms = br.months, L = last;
    // takeaway
    var worstRefund = null;
    ms.forEach(function (m) { if (m.refundYear != null && m.refund - m.baseRefund < -300 && (!worstRefund || m.refund - m.baseRefund < worstRefund.refund - worstRefund.baseRefund)) worstRefund = m; });
    var take, lowM = br.lowest.t ? ms[br.lowest.t - 1] : null;
    if (br.shortfall > 0.5) take = 'To stay on today\u2019s budget for the next two years, you\u2019d need about ' + money(br.shortfall + (+S.savings || 0)) + ' saved before ' + monthName(S.startMonth, S.startYear) + (S.savings > 0 ? ' (you have ' + money(S.savings) + ')' : '') + '. One of the options in \u201cMake the offer work\u201d would also close the gap.';
    else if (worstRefund) take = 'Set aside the extra each month: your tax refund in ' + monthName(worstRefund.mon, worstRefund.year) + ' will be about ' + money(worstRefund.baseRefund - worstRefund.refund) + ' smaller than if you stayed put.';
    else if (br.total > 0.5) { var upMonths = ms.filter(function (m) { return m.diff > 0.5; }).length;
      take = 'You come out ahead in ' + (upMonths === ms.length ? 'every month' : upMonths + ' of the next ' + ms.length + ' months') + '. If you save the extra, you\u2019ll have about ' + money(br.total) + ' after two years.'; }
    else take = 'Your budget stays about the same as today.';
    $('brTake').textContent = take;
    var nowS = last.now, offS = last.off;
    var payYear = (offS.cash - nowS.cash) * 12, refYear = (offS.credits - nowS.credits) * 12;
    var t2 = '';
    if (Math.abs(refYear) > 300 && Math.sign(payYear) !== Math.sign(refYear)) {
      t2 = 'From then on, each year your paychecks and benefits bring in about ' + money(Math.abs(payYear)) + (payYear >= 0 ? ' more' : ' less') + ' and your refund about ' + money(Math.abs(refYear)) + (refYear < 0 ? ' less' : ' more') + ', so you end up about ' + money(Math.abs(payYear + refYear)) + (payYear + refYear >= 0 ? ' ahead each year.' : ' behind each year until raises carry you past the cliff.');
    } else if (br.pastCliff && br.pastCliff.years > 0) {
      t2 = 'With ' + (+S.raisePct) + '% raises each year, the new job gets you back to today\u2019s level for good in ' + monthName(br.pastCliff.mon, br.pastCliff.year) + '.';
    }
    $('brTake2').textContent = t2;
    // stats
    var past = br.pastCliff;
    var pastTxt = !past ? 'Not within 15 years' : past.years === 0 ? 'Right away' : monthName(past.mon, past.year);
    var pastSub = !past ? 'with ' + (+S.raisePct) + '% raises a year' : past.years === 0 ? 'once every program adjusts' : 'with ' + (+S.raisePct) + '% raises a year';
    var dips = br.lowest.balance < br.start - 0.5;
    var lowTxt = dips ? money(br.lowest.balance) : money(br.end);
    var lowSub = dips ? 'your savings at their lowest, in ' + monthName(lowM.mon, lowM.year) : 'saved after two years, and your savings never drop below where they started';
    var goodMonths = br.months.filter(function (m) { return m.diff > 0.5; }).length;
    $('brStats').innerHTML =
      '<div class="stat"><strong class="' + (br.saved > 0.5 ? 'pos' : '') + '">' + money(br.saved) + '</strong>to set aside in the ' + goodMonths + ' month' + (goodMonths === 1 ? '' : 's') + ' when you have extra</div>' +
      '<div class="stat"><strong class="' + (lowTxt.charAt(0) === '\u2212' ? 'neg' : 'pos') + '">' + lowTxt + '</strong>' + lowSub + '</div>' +
      '<div class="stat"><strong>' + pastTxt + '</strong>' + (past && past.years === 0 ? 'at or above today\u2019s level for good, ' : 'back to today\u2019s level for good, ') + pastSub + '</div>';
    renderBridgeChart();
    // events
    var evs = [], n = 0;
    ms.forEach(function (m) { if (m.events.length) { n++; evs.push({ n: n, m: m, text: m.events.map(function (e) { return eventText(e, m); }).join(' ') }); } });
    $('events').innerHTML = evs.length ? evs.map(function (e) { return '<li><span class="ev">' + e.n + '</span><span><strong>' + monthName(e.m.mon, e.m.year) + ':</strong> ' + esc(e.text) + '</span></li>'; }).join('')
      : '<li><span>No program changes are expected in the next two years.</span></li>';
    // table
    var rows = ms.map(function (m) {
      var d = m.diff, act = Math.abs(d) < 0.5 ? 'Nothing to move' : d > 0 ? 'Set aside ' + money(d) : 'Use ' + money(-d) + ' from savings';
      if (m.refundYear != null) act += ' (refund month)';
      return '<tr class="' + (m.refundYear != null ? 'refund' : '') + '"><td>' + MONTHS[m.mon].slice(0, 3) + ' ' + m.year + '</td><td class="' + (d > 0.5 ? 'pos' : d < -0.5 ? 'neg' : '') + '">' + money(d, { sign: true }) +
        '</td><td class="do">' + esc(act) + '</td><td class="' + (m.balance < -0.5 ? 'neg' : '') + '">' + money(m.balance) + '</td></tr>';
    }).join('');
    $('planTable').innerHTML = '<caption class="sr">Month-by-month bridge budget</caption><thead><tr><th scope="col">Month</th><th scope="col">Compared with staying put</th><th scope="col">Do this</th><th scope="col">Savings after</th></tr></thead><tbody>' + rows + '</tbody>';
  }
  function niceStep(range, target) {
    var raw = range / target, mag = Math.pow(10, Math.floor(Math.log10(raw))), f = raw / mag;
    return (f < 1.5 ? 1 : f < 3 ? 2 : f < 7 ? 5 : 10) * mag;
  }
  function renderBridgeChart() {
    var br = last.br, ms = br.months, svg = $('bridgeChart');
    var W = Math.max(300, Math.round(svg.parentNode.clientWidth - 32)), narrow = W < 560;
    var m = { l: narrow ? 48 : 60, r: 10, t: 60 }, topH = narrow ? 150 : 180, gap = 26, botH = narrow ? 100 : 120, labH = 34;
    var H = m.t + topH + gap + botH + labH;
    svg.setAttribute('viewBox', '0 0 ' + W + ' ' + H);
    var n = ms.length, cw = (W - m.l - m.r) / n;
    var maxAbs = Math.max(50, Math.max.apply(null, ms.map(function (x) { return Math.abs(x.diff); })));
    var anyNeg = ms.some(function (x) { return x.diff < -0.5; }), anyPos = ms.some(function (x) { return x.diff > 0.5; });
    var zeroTop = m.t + (anyNeg && anyPos ? topH * (maxPos() / (maxPos() + maxNeg())) : anyNeg ? 6 : topH - 6);
    function maxPos() { return Math.max(1, Math.max.apply(null, ms.map(function (x) { return Math.max(0, x.diff); }))); }
    function maxNeg() { return Math.max(1, Math.max.apply(null, ms.map(function (x) { return Math.max(0, -x.diff); }))); }
    var scale = (anyNeg && anyPos) ? topH / (maxPos() + maxNeg()) : (topH - 12) / maxAbs;
    var g = '';
    g += '<text x="' + m.l + '" y="14" font-size="12" font-weight="700" fill="var(--ink-2)">Compared with staying put</text>';
    g += '<line x1="' + m.l + '" x2="' + (W - m.r) + '" y1="' + zeroTop + '" y2="' + zeroTop + '" stroke="var(--ink)" stroke-width="1.5"/>';
    g += '<text x="' + (m.l - 6) + '" y="' + (zeroTop + 4) + '" text-anchor="end" font-size="11" fill="var(--ink-2)">$0</text>';
    var evN = 0;
    g += '<text x="' + (m.l - 6) + '" y="31" text-anchor="end" font-size="11" fill="var(--ink-2)">' + (ms.some(function (x) { return x.events.length; }) ? 'Changes' : '') + '</text>';
    var lastBadge = { x: -99, row: 1 };
    ms.forEach(function (x, i) {
      var bx = m.l + i * cw + cw * 0.15, bw = cw * 0.7, hgt = Math.abs(x.diff) * scale;
      var fill = x.refundYear != null ? 'var(--indigo)' : x.diff >= 0 ? 'var(--green)' : 'var(--red)';
      if (Math.abs(x.diff) >= 0.5) g += '<rect x="' + bx.toFixed(2) + '" y="' + (x.diff >= 0 ? zeroTop - hgt : zeroTop).toFixed(2) + '" width="' + bw.toFixed(2) + '" height="' + Math.max(1, hgt).toFixed(2) + '" rx="2" fill="' + fill + '"/>';
      if (x.events.length) {
        evN++;
        var cxn = m.l + i * cw + cw / 2, r = 7.5, cx = cxn.toFixed(2);
        var row = (cxn - lastBadge.x < 2 * r + 2) ? 1 - lastBadge.row : 0;
        var cy = row ? 44 : 28;
        lastBadge = { x: cxn, row: row };
        g += '<circle cx="' + cx + '" cy="' + cy + '" r="' + r + '" fill="var(--gold)"/><text x="' + cx + '" y="' + (cy + 3.5) + '" text-anchor="middle" font-size="10" font-weight="800" fill="#17202E">' + evN + '</text>';
      }
    });
    // max labels on the biggest bars
    var big = ms.reduce(function (a, b) { return Math.abs(b.diff) > Math.abs(a.diff) ? b : a; }, ms[0]);
    if (Math.abs(big.diff) >= 0.5) {
      var bi = big.t - 1, lx = m.l + bi * cw + cw / 2, ly = big.diff >= 0 ? zeroTop - Math.abs(big.diff) * scale - 5 : zeroTop + Math.abs(big.diff) * scale + 13;
      var anchor = lx > W - 60 ? 'end' : lx < m.l + 40 ? 'start' : 'middle';
      g += '<text class="halo" x="' + lx.toFixed(1) + '" y="' + ly.toFixed(1) + '" text-anchor="' + anchor + '" font-size="12" font-weight="800" fill="var(--ink)">' + money(big.diff, { sign: true }) + '</text>';
    }
    // savings line
    var bt = m.t + topH + gap;
    var vals = ms.map(function (x) { return x.balance; }).concat([br.start, 0]);
    var b0 = vals.reduce(function (a, v) { return Math.min(a, v); }, Infinity), b1 = vals.reduce(function (a, v) { return Math.max(a, v); }, -Infinity), pad = Math.max(50, (b1 - b0) * 0.1);
    b0 -= pad; b1 += pad;
    var Yb = function (v) { return bt + (1 - (v - b0) / (b1 - b0)) * botH; };
    var Xc = function (i) { return m.l + i * cw + cw / 2; };
    g += '<text x="' + m.l + '" y="' + (bt - 8) + '" font-size="12" font-weight="700" fill="var(--ink-2)">Savings for this</text>';
    var ys = niceStep(b1 - b0, 3);
    for (var v = Math.ceil(b0 / ys) * ys; v <= b1; v += ys) {
      g += '<line x1="' + m.l + '" x2="' + (W - m.r) + '" y1="' + Yb(v).toFixed(1) + '" y2="' + Yb(v).toFixed(1) + '" stroke="' + (Math.abs(v) < 1e-6 ? 'var(--ink)' : 'var(--rule)') + '" stroke-width="' + (Math.abs(v) < 1e-6 ? 1.5 : 1) + '"/>' +
           '<text x="' + (m.l - 6) + '" y="' + (Yb(v) + 4).toFixed(1) + '" text-anchor="end" font-size="11" fill="var(--ink-2)">' + money(v) + '</text>';
    }
    var pts = [[m.l, Yb(br.start)]].concat(ms.map(function (x, i) { return [Xc(i), Yb(x.balance)]; }));
    var line = pts.map(function (p, i) { return (i ? 'L' : 'M') + p[0].toFixed(1) + ' ' + p[1].toFixed(1); }).join('');
    var y0 = Yb(0);
    g += '<defs><clipPath id="bAbove"><rect x="' + m.l + '" y="' + bt + '" width="' + (W - m.l - m.r) + '" height="' + Math.max(0, y0 - bt) + '"/></clipPath>' +
         '<clipPath id="bBelow"><rect x="' + m.l + '" y="' + y0 + '" width="' + (W - m.l - m.r) + '" height="' + Math.max(0, bt + botH - y0) + '"/></clipPath>' +
         '<pattern id="bHatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="6" height="6" fill="var(--red-soft)"/><line x1="0" y1="0" x2="0" y2="6" stroke="var(--red)" stroke-width="2"/></pattern></defs>';
    var area = line + 'L' + pts[pts.length - 1][0].toFixed(1) + ' ' + y0.toFixed(1) + 'L' + m.l + ' ' + y0.toFixed(1) + 'Z';
    g += '<path d="' + area + '" fill="var(--green-soft)" clip-path="url(#bAbove)"/><path d="' + area + '" fill="url(#bHatch)" clip-path="url(#bBelow)"/>';
    g += '<path d="' + line + '" fill="none" stroke="var(--ink)" stroke-width="2.5" stroke-linejoin="round"/>';
    // month labels
    var every = cw >= 30 ? 1 : cw >= 20 ? 2 : 3;
    ms.forEach(function (x, i) {
      if (i % every === 0) g += '<text x="' + Xc(i).toFixed(1) + '" y="' + (bt + botH + 15) + '" text-anchor="middle" font-size="11" fill="var(--ink-2)">' + MONTHS[x.mon].slice(0, 3) + '</text>';
      if (x.mon === 0 || i === 0) {
        var anch = 'middle';
        if (i === 0 && ms[1] && ms[1].mon === 0) anch = 'end';
        else if (i === 1 && x.mon === 0) anch = 'start';
        else if (i === 0) anch = 'start';
        g += '<text x="' + Xc(i).toFixed(1) + '" y="' + (bt + botH + 29) + '" text-anchor="' + anch + '" font-size="11" font-weight="700" fill="var(--ink-2)">' + x.year + '</text>';
      }
    });
    g += '<line id="brGuide" y1="' + m.t + '" y2="' + (bt + botH) + '" stroke="var(--ink)" stroke-width="1" stroke-dasharray="3 3" style="display:none"/>';
    g += '<rect id="brHit" x="' + m.l + '" y="' + m.t + '" width="' + (W - m.l - m.r) + '" height="' + (topH + gap + botH) + '" fill="transparent"/>';
    svg.innerHTML = g;
    $('bridgeDesc').textContent = 'Bar chart of the next 24 months compared with staying put, with a line for savings. ' +
      ms.map(function (x) { return MONTHS[x.mon].slice(0, 3) + ' ' + x.year + ' ' + money(x.diff, { sign: true }); }).join(', ') + '. Savings after two years: ' + money(br.end) + '.';
    function pick(ev) {
      var r = svg.getBoundingClientRect(), sx = (ev.clientX - r.left) / r.width * W;
      var i = Math.min(n - 1, Math.max(0, Math.floor((sx - m.l) / cw))), x = ms[i];
      var gd = $('brGuide'); gd.style.display = ''; gd.setAttribute('x1', Xc(i)); gd.setAttribute('x2', Xc(i));
      var txt = monthName(x.mon, x.year) + ': ' + (Math.abs(x.diff) < 0.5 ? 'the same as staying put' : money(Math.abs(x.diff)) + (x.diff > 0 ? ' more' : ' less') + ' than staying put');
      if (x.refundYear != null) txt += ', including your ' + x.refundYear + ' tax refund';
      $('brRead').textContent = txt + '. Your savings for this at the end of the month: ' + money(x.balance) + '.';
    }
    $('brHit').addEventListener('pointermove', pick); $('brHit').addEventListener('pointerdown', pick);
  }

  function renderTips(inp, be, L, g1) {
    var tips = [];
    if (be.nextZone) tips.push(['Check the next raise before you say yes', 'This offer works, but a raise to ' + zoneText(be.nextZone, inp.offerHours, S.offerBasis) + ' would cost you. Run the numbers again when that raise comes.']);
    tips.push(['Report changes on time', 'CCAP and Medicaid ask you to report changes within 10 days. SNAP households in Kentucky report mid-year only when income goes over the reporting limit. Reporting late can mean paying benefits back. The calendar file has these dates.']);
    tips.push(['File early, and file even if you owe nothing', 'Refunds that include the earned income credit or the refundable child tax credit arrive in early March. You only get them if you file a tax return.']);
    if (inp.onCCAP) tips.push(['Working in child care changes the math', 'If you work at least 20 hours a week at a licensed child care center or certified family child care home, Kentucky doesn\u2019t count your income for CCAP, as long as state funds last.']);
    tips.push(['Get free help with kynect', 'A kynector in your county can check what you qualify for, help you switch from Medicaid to a kynect plan, and find the cheapest plan with your tax credit. Call 1-855-459-6328 or visit kynect.ky.gov.']);
    tips.push(['Count the long game too', 'A short dip can still be worth it if the new job leads to bigger raises, better benefits, or retirement matching. This page helps you plan for the dip, not talk you out of growth.']);
    $('tipList').innerHTML = tips.map(function (t) { return '<div class="tip"><h3>' + esc(t[0]) + '</h3><p>' + esc(t[1]) + '</p></div>'; }).join('');
  }

  // ---------- the cliff chart ----------
  function renderChart() {
    var inp = last.inp, be = last.be, L = last.L;
    var svg = $('cliff');
    var W = Math.max(300, Math.round(svg.parentNode.clientWidth - 32));
    var narrow = W < 520;
    var H = narrow ? Math.round(W * 0.95) : 360, m = { l: narrow ? 50 : 62, r: 12, t: 58, b: 42 };
    svg.setAttribute('viewBox', '0 0 ' + W + ' ' + H);
    var hours = inp.offerHours;
    var lo = Math.max(7.25, Math.floor(Math.min(inp.nowWage, inp.offerWage) - 2));
    var hi = Math.ceil(Math.max(inp.nowWage, inp.offerWage, be.needWage || 0) + 4);
    if (hi - lo < 8) hi = lo + 8;
    var pts = KY.curve(inp, hours, lo, hi, 0.05);
    var nowLeft = be.nowLeft, offLeft = be.offerLeft;
    var ys = pts.map(function (p) { return p.left; }).concat([nowLeft]);
    var y0 = ys.reduce(function (a, v) { return Math.min(a, v); }, Infinity), y1 = ys.reduce(function (a, v) { return Math.max(a, v); }, -Infinity);
    var pad = Math.max(60, (y1 - y0) * 0.12); y0 -= pad; y1 += pad;
    var X = function (w) { return m.l + (w - lo) / (hi - lo) * (W - m.l - m.r); };
    var Y = function (v) { return m.t + (1 - (v - y0) / (y1 - y0)) * (H - m.t - m.b); };
    var d = pts.map(function (p, i) { return (i ? 'L' : 'M') + X(p.wage).toFixed(1) + ' ' + Y(p.left).toFixed(1); }).join('');
    var area = d + 'L' + X(hi).toFixed(1) + ' ' + Y(nowLeft).toFixed(1) + 'L' + X(lo).toFixed(1) + ' ' + Y(nowLeft).toFixed(1) + 'Z';
    var yb = Y(nowLeft), xs = X(Math.max(lo, Math.min(inp.nowWage, inp.offerWage)));
    var g = '';
    g += '<defs><pattern id="hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="6" height="6" fill="var(--red-soft)"/><line x1="0" y1="0" x2="0" y2="6" stroke="var(--red)" stroke-width="2"/></pattern>' +
         '<clipPath id="below"><rect x="' + xs + '" y="' + yb + '" width="' + Math.max(0, W - m.r - xs) + '" height="' + Math.max(0, H - m.b - yb) + '"/></clipPath>' +
         '<clipPath id="above"><rect x="' + m.l + '" y="' + m.t + '" width="' + (W - m.l - m.r) + '" height="' + Math.max(0, yb - m.t) + '"/></clipPath></defs>';
    var ystep = niceStep(y1 - y0, 4);
    for (var v = Math.ceil(y0 / ystep) * ystep; v <= y1; v += ystep) {
      g += '<line x1="' + m.l + '" x2="' + (W - m.r) + '" y1="' + Y(v) + '" y2="' + Y(v) + '" stroke="var(--rule)" stroke-width="1"/>' +
           '<text x="' + (m.l - 8) + '" y="' + (Y(v) + 4) + '" text-anchor="end" font-size="12" fill="var(--ink-2)">' + money(v) + '</text>';
    }
    var plotW = W - m.l - m.r, maxTicks = Math.max(3, Math.floor(plotW / 55));
    var sal = S.offerBasis === 'salary', perYear = hours * 52;
    if (sal) {
      // same curve, labelled in yearly salary at the offer's hours
      var sLo = lo * perYear, sHi = hi * perYear;
      var sstep = [1000, 2000, 2500, 5000, 10000, 20000, 25000, 50000].filter(function (s) { return (sHi - sLo) / s <= maxTicks; })[0] || 100000;
      for (var sx0 = Math.ceil(sLo / sstep) * sstep; sx0 <= sHi; sx0 += sstep) {
        g += '<text x="' + X(sx0 / perYear) + '" y="' + (H - m.b + 18) + '" text-anchor="middle" font-size="12" fill="var(--ink-2)">$' + (sx0 % 1000 ? (sx0 / 1000).toFixed(1) : sx0 / 1000) + 'k</text>';
      }
    } else {
      var xstep = [1, 2, 4, 5, 10].filter(function (s) { return (hi - lo) / s <= maxTicks; })[0] || 10;
      for (var x = Math.ceil(lo / xstep) * xstep; x <= hi; x += xstep) {
        g += '<text x="' + X(x) + '" y="' + (H - m.b + 18) + '" text-anchor="middle" font-size="12" fill="var(--ink-2)">$' + x + '</text>';
      }
    }
    g += '<text x="' + ((m.l + W - m.r) / 2) + '" y="' + (H - 6) + '" text-anchor="middle" font-size="12" fill="var(--ink-2)">' + (sal ? 'Yearly salary' : 'Hourly pay') + ' at ' + hours + ' hours a week</text>';
    var perMonth = hours * 52 / 12, marks = [];
    var csM = +inp.childSupport || 0;   // child care help and SNAP count child support, so pay alone hits those limits sooner
    if (inp.onCCAP && KY.kidCounts(inp).care > 0) marks.push([(L.ccap - csM) / perMonth, 'Child care help ends']);
    if (inp.onSNAP) marks.push([(L.snapGross - csM) / perMonth, 'SNAP ends']);
    marks.push([L.adultMedicaid / perMonth, 'Your Medicaid ends']);
    marks.push([L.kids / perMonth, 'Kids\u2019 KCHIP ends']);
    marks = marks.filter(function (mk) { return mk[0] > lo && mk[0] < hi; }).sort(function (a, b) { return a[0] - b[0]; });
    marks.forEach(function (mk, i) {
      var xx = X(mk[0]), ty = 16 + (i % 3) * 14;
      var anchor = xx > W - 120 ? 'end' : (xx < m.l + 60 ? 'start' : 'middle');
      g += '<line x1="' + xx + '" x2="' + xx + '" y1="' + (ty + 4) + '" y2="' + (H - m.b) + '" stroke="var(--ink-2)" stroke-dasharray="2 3" stroke-width="1"/>' +
           '<text class="halo" x="' + xx + '" y="' + ty + '" text-anchor="' + anchor + '" font-size="11.5" font-weight="700" fill="var(--ink-2)">' + mk[1] + '</text>';
    });
    g += '<path d="' + area + '" fill="var(--green-soft)" clip-path="url(#above)"/>';
    g += '<path d="' + area + '" fill="url(#hatch)" clip-path="url(#below)"/>';
    g += '<line x1="' + m.l + '" x2="' + (W - m.r) + '" y1="' + yb + '" y2="' + yb + '" stroke="var(--ink)" stroke-width="1.5" stroke-dasharray="6 4"/>';
    // if the offer sits on the today line with its label above, drop the today label below the line so they don't collide
    var offNear = Math.abs(Y(offLeft) - yb) < 30 && Y(offLeft) < yb;
    g += '<text class="halo" x="' + (W - m.r - 4) + '" y="' + (offNear ? yb + 17 : yb - 6) + '" text-anchor="end" font-size="12" font-weight="700" fill="var(--ink)">Today: ' + money(nowLeft) + ' left</text>';
    g += '<path d="' + d + '" fill="none" stroke="var(--indigo)" stroke-width="3" stroke-linejoin="round"/>';
    if (Math.abs(inp.nowHours - inp.offerHours) < 0.01 && inp.nowWage >= lo && inp.nowWage <= hi) {
      g += '<circle cx="' + X(inp.nowWage) + '" cy="' + yb + '" r="6" fill="var(--surface)" stroke="var(--ink)" stroke-width="2.5"/>';
    }
    var ox = X(inp.offerWage), oy = Y(offLeft);
    var oAnchor = ox > W - 140 ? 'end' : 'start', oDx = oAnchor === 'end' ? -12 : 12;
    var oDy = offLeft < nowLeft ? 22 : -14;
    if (Math.abs(oy - yb) < 30) oDy = oy >= yb ? 24 : -16;
    g += '<circle cx="' + ox + '" cy="' + oy + '" r="8" fill="var(--gold)" stroke="var(--ink)" stroke-width="2"/>' +
         '<text class="halo" x="' + (ox + oDx) + '" y="' + (oy + oDy) + '" text-anchor="' + oAnchor + '" font-size="13" font-weight="800" fill="var(--ink)">The offer: ' + (sal ? money(S.offerSalary) : wageFmt(inp.offerWage)) + '</text>';
    g += '<g id="guide" style="display:none"><line id="gLine" y1="' + m.t + '" y2="' + (H - m.b) + '" stroke="var(--ink)" stroke-width="1"/><circle id="gDot" r="5" fill="var(--indigo)" stroke="var(--surface)" stroke-width="2"/>' +
         '<rect id="gBox" rx="6" height="40" fill="var(--surface)" stroke="var(--rule)"/><text id="gT1" font-size="12" font-weight="700" fill="var(--ink)"></text><text id="gT2" font-size="12" fill="var(--ink-2)"></text></g>';
    g += '<rect id="hit" x="' + m.l + '" y="' + m.t + '" width="' + (W - m.l - m.r) + '" height="' + (H - m.t - m.b) + '" fill="transparent"/>';
    svg.innerHTML = g;
    $('chartSub').innerHTML = 'Working ' + hours + ' hours a week, once every program has adjusted.<span class="no-print"> Drag or tap the chart to read any point.</span>';
    var zs = be.dangerZones.filter(function (z) { return z.to > lo && z.from < hi; });
    $('cliffDesc').textContent = 'Line chart of money left each month as ' + (sal ? 'yearly salary' : 'hourly pay') + ' rises from ' + payText(lo, hours, S.offerBasis) + ' to ' + payText(hi, hours, S.offerBasis) + '. Today you have ' + money(nowLeft) + ' left. The offer leaves ' + money(offLeft) + '. ' +
      (zs.length ? 'Pay ranges that leave you worse off than today: ' + zs.map(function (z) { return zoneText(z, hours, S.offerBasis); }).join('; ') + '.' : 'No pay in this range leaves you worse off than today.');
    var hit = $('hit');
    function move(ev) {
      var r = svg.getBoundingClientRect(), sx = (ev.clientX - r.left) / r.width * W;
      var w = lo + (sx - m.l) / (W - m.l - m.r) * (hi - lo);
      var best = pts[0];
      for (var i = 0; i < pts.length; i++) if (Math.abs(pts[i].wage - w) < Math.abs(best.wage - w)) best = pts[i];
      var gx = X(best.wage), gy = Y(best.left);
      $('guide').style.display = '';
      $('gLine').setAttribute('x1', gx); $('gLine').setAttribute('x2', gx);
      $('gDot').setAttribute('cx', gx); $('gDot').setAttribute('cy', gy);
      $('gT1').textContent = (sal ? money(best.wage * perYear) + ' a year' : wageFmt(best.wage) + ' an hour') + ': ' + money(best.left) + ' left';
      $('gT2').textContent = Math.abs(best.left - nowLeft) < 0.5 ? 'the same as today' : money(Math.abs(best.left - nowLeft)) + (best.left > nowLeft ? ' more' : ' less') + ' than today';
      var bw = 210, bx = gx + 10 + bw > W - m.r ? gx - 10 - bw : gx + 10, by = m.t + 4;
      bx = Math.max(4, Math.min(bx, W - m.r - bw));
      $('gBox').setAttribute('x', bx); $('gBox').setAttribute('y', by); $('gBox').setAttribute('width', bw);
      $('gT1').setAttribute('x', bx + 10); $('gT1').setAttribute('y', by + 17);
      $('gT2').setAttribute('x', bx + 10); $('gT2').setAttribute('y', by + 33);
    }
    hit.addEventListener('pointermove', move);
    hit.addEventListener('pointerdown', move);
    hit.addEventListener('pointerleave', function () { $('guide').style.display = 'none'; });
  }
  var resizeT = null, lastW = window.innerWidth;
  window.addEventListener('resize', function () {
    if (window.innerWidth === lastW) return; lastW = window.innerWidth;
    clearTimeout(resizeT);
    resizeT = setTimeout(function () { if (last) { renderChart(); renderMap(); renderBridgeChart(); } }, 120);
  });

  // ---------- calendar file (.ics), built on this device ----------
  function ascii(s) {
    return String(s).replace(/[\u2018\u2019]/g, "'").replace(/[\u201C\u201D]/g, '"').replace(/[\u2013\u2014\u2212]/g, '-').replace(/[^\x20-\x7E]/g, '');
  }
  function icsText(s) { return ascii(s).replace(/\\/g, '\\\\').replace(/;/g, '\\;').replace(/,/g, '\\,').replace(/\n/g, '\\n'); }
  function fold(line) { var out = []; while (line.length > 74) { out.push(line.slice(0, 74)); line = ' ' + line.slice(74); } out.push(line); return out.join('\r\n'); }
  function ymd(d) { return d.getFullYear() + ('0' + (d.getMonth() + 1)).slice(-2) + ('0' + d.getDate()).slice(-2); }
  var ICS_TITLES = {
    'ccap-transition': 'Child care help drops to half', 'ccap-ends': 'Full child care price starts',
    'ccap-hours': 'Child care help ends (under 20 hours)', 'eccap-starts': 'Employer child care payment and state match start',
    'snap-report': 'SNAP recalculated after you report', 'medicaid-adult': 'Your Medicaid ends: switch to kynect or a job plan',
    'raise': 'Yearly raise starts', 'past-cliff': 'Back to today\'s budget level for good'
  };
  function buildICS() {
    var inp = last.inp, br = last.br, L = last.L, ev = [];
    var y = S.startYear, mo = S.startMonth;
    function add(date, title, desc) { ev.push({ date: date, title: title, desc: desc }); }
    add(new Date(y, mo, 1), 'Raise Check: new pay starts (' + (S.offerBasis === 'salary' ? money(S.offerSalary) + '/yr' : wageFmt(inp.offerWage) + '/hr') + ', ' + inp.offerHours + ' hrs/week)',
        'Today\'s budget to live on: about ' + money(br.baseCash) + ' a month after bills, not counting your tax refund.');
    var onMedicaid = last.now.adultCovered || last.now.kidsCovered;
    if (inp.onCCAP || inp.onSNAP || onMedicaid) {
      add(new Date(y, mo, 11), 'Raise Check: report your new pay',
          'Child care assistance and Medicaid ask you to report changes within 10 days (kynect: 1-855-459-6328). ' +
          (inp.onSNAP ? 'SNAP: report only if your household\'s monthly income goes over ' + money(L.snapReport) + '.' : ''));
    }
    br.months.forEach(function (m) {
      m.events.forEach(function (e) {
        if (e === 'refund') {
          var d = m.refund - m.baseRefund;
          add(new Date(m.year, 2, 2), 'Raise Check: tax refund expected (about ' + money(m.refund) + ')',
              eventText(e, m) + ' Refunds that include the earned income credit usually arrive in early March if you file early. ' +
              (d < -0.5 ? 'Your savings for this should cover the difference.' : ''));
        } else if (ICS_TITLES[e]) add(new Date(m.year, m.mon, 1), 'Raise Check: ' + ICS_TITLES[e], eventText(e, m));
      });
    });
    function renewals(sel, prog, desc) {
      for (var t = 1; t <= 24; t++) {
        var c = mo + t - 1, mm = c % 12, yy = y + Math.floor(c / 12);
        if (mm === S[sel]) add(new Date(yy, mm, 1), 'Raise Check: ' + prog + ' renewal month', desc);
      }
    }
    if (inp.onCCAP) renewals('renewCCAPMonth', 'child care (CCAP)', 'Watch for your renewal packet. Your copay is reset to your income at renewal.');
    if (inp.onSNAP) renewals('renewSNAPMonth', 'SNAP', 'Watch for your SNAP review. Your benefit is recalculated with your current pay.');
    if (last.now.kidsCovered) renewals('renewMedicaidMonth', 'kids\' Medicaid or KCHIP', 'Watch for the renewal notice from kynect. The kids\' coverage is checked against your current income.');
    var keyDates = ev.length, reminders = 0;
    if (S.reminders) {
      br.months.forEach(function (m) {
        if (Math.abs(m.diff) < 1) return;
        reminders++;
        add(new Date(m.year, m.mon, 1), m.diff > 0 ? 'Bridge budget: set aside ' + money(m.diff) : 'Bridge budget: use up to ' + money(-m.diff) + ' from savings',
            'Your planned savings for this at the end of the month: ' + money(m.balance) + '. Keep living on today\'s budget.');
      });
    }
    ev.sort(function (a, b) { return a.date - b.date; });
    var stamp = new Date().toISOString().replace(/[-:]/g, '').replace(/\.\d+Z$/, 'Z');
    var lines = ['BEGIN:VCALENDAR', 'VERSION:2.0', 'PRODID:-//Raise Check KY//Bridge budget//EN', 'CALSCALE:GREGORIAN', 'METHOD:PUBLISH', 'X-WR-CALNAME:Raise Check KY'];
    ev.forEach(function (e, i) {
      var end = new Date(e.date.getFullYear(), e.date.getMonth(), e.date.getDate() + 1);
      lines.push('BEGIN:VEVENT', 'UID:raisecheck-' + ymd(e.date) + '-' + i + '@raisecheck.local', 'DTSTAMP:' + stamp,
        'DTSTART;VALUE=DATE:' + ymd(e.date), 'DTEND;VALUE=DATE:' + ymd(end),
        fold('SUMMARY:' + icsText(e.title)), fold('DESCRIPTION:' + icsText(e.desc + ' Estimate from Raise Check KY; confirm with your caseworker or kynect.')),
        'TRANSP:TRANSPARENT', 'END:VEVENT');
    });
    lines.push('END:VCALENDAR');
    return { text: lines.join('\r\n') + '\r\n', count: ev.length, keyDates: keyDates, reminders: reminders };
  }
  function renderIcsHelp() {
    var ics = buildICS();
    $('icsCount').textContent = 'For your numbers, that\u2019s ' + ics.keyDates + ' key dates' +
      (S.reminders ? ' and ' + ics.reminders + ' monthly reminders.' : '. Monthly reminders are off.');
    $('icsMsg').hidden = true;
  }
  function downloadICS() {
    var ics = buildICS();
    var blob = new Blob([ics.text], { type: 'text/calendar;charset=utf-8' });
    var url = URL.createObjectURL(blob), a = document.createElement('a');
    a.href = url; a.download = 'raise-check-dates.ics'; document.body.appendChild(a); a.click();
    setTimeout(function () { URL.revokeObjectURL(url); a.remove(); }, 0);
    var m = $('icsMsg'); m.hidden = false;
    m.textContent = 'Saved raise-check-dates.ics to your downloads with ' + ics.count + ' dates. Open it to add them to your calendar. \u201cHow the calendar file works\u201d below shows how.';
  }

  // ---------- sources table ----------
  function renderSources() {
    var R = RULES;
    var rows = [
      ['Child care help limit', '85% of state median income: ' + money(R.ccap.limit85SMI[2]) + ' a month for 2 people, ' + money(R.ccap.limit85SMI[3]) + ' for 3, ' + money(R.ccap.limit85SMI[4]) + ' for 4', 'CHFS CCAP fact sheet (2025 state median income); 922 KAR 2:160 \u00a78', 'https://khbe.ky.gov/About/FactsandResources/Child_Care_Assistance_Program_CCAP_Fact_Sheet.pdf'],
      ['CCAP daily copay', 'Per family per day, by income and family size; locked for the 12-month eligibility period', '922 KAR 2:160 \u00a711 (effective Nov 18, 2024)', 'https://apps.legislature.ky.gov/law/kar/titles/922/002/160/'],
      ['CCAP work hours and transition', 'Work averaging 20 hours a week; 6 months at 50% of the provider rate after income passes the limit; child care workers\u2019 income not counted', '922 KAR 2:160 \u00a74 and \u00a79(6)', 'https://apps.legislature.ky.gov/law/kar/titles/922/002/160/'],
      ['Employer child care match', 'State matches 100% of the employer\u2019s payment at or below state median income, 10 points less per 20% of income above it, 50% above 180%; only for families above the CCAP limit', 'KRS 199.885 (amended Apr 14, 2026); CHFS ECCAP employee packet', 'https://apps.legislature.ky.gov/law/statutes/statute.aspx?id=56909'],
      ['Employer match funding', '$2 million in FY2026; $1 million a year in FY2027 and FY2028 (final 2026\u201328 budget, HB 500); 2026 HB 6 shifts the program to a third-party administrator', 'Prichard Committee budget analysis (Apr 8, 2026); Kentucky Chamber (Mar 12, 2026)', 'https://prichardcommittee.org/wp-content/uploads/2026/04/FCCR.EarlyChildhoodBudget2026.Final_.Draft_.04.09.26.pdf'],
      ['Employer-paid child care, taxes', 'Up to $7,500 a year tax-free under a dependent care plan in 2026; the state match isn\u2019t taxable', 'Polsinelli on the 2026 limit; Frost Brown Todd on ECCAP taxes', 'https://www.polsinelli.com/publications/new-year-new-dependent-care-fsa-limits'],
      ['SNAP benefits', 'Max ' + money(R.snap.maxAllotment[2]) + ' (2 people), ' + money(R.snap.maxAllotment[3]) + ' (3), ' + money(R.snap.maxAllotment[4]) + ' (4); standard deduction ' + money(R.snap.standardDeduction[3]) + '; shelter cap ' + money(R.snap.shelterCap) + '; 20% earned income deduction; benefit = max minus 30% of net income', 'USDA SNAP FY2027 cost-of-living memo (Oct 1, 2026 \u2013 Sep 30, 2027)', 'https://www.usda.gov/sites/default/files/guidance-documents/fna.snap-cola2027.pdf'],
      ['SNAP income limits', 'Gross up to 200% of poverty (Kentucky broad-based eligibility); net up to 100%; report mid-year only above 130%', 'Kentucky Center for Economic Policy; USDA FY2027 memo and SNAP state options report', 'https://kypolicy.org/the-four-ways-congress-is-threatening-to-cut-snap-in-kentucky'],
      ['SNAP utility allowance', money(R.snap.heatCoolAllowance) + ' a month for households that pay heating or cooling (FY2027)', 'Kentucky Division of Family Support Operations Manual, Vol. II, MS 5490 (rev. Oct 1, 2026)', 'https://chfs.ky.gov/agencies/dcbs/dfs/Documents/OMVOLII.pdf'],
      ['Poverty guidelines', '2026: ' + money(R.fpg2026.base) + ' for 1 person plus ' + money(R.fpg2026.perPerson) + ' each; 2025 guidelines used for 2026 kynect credits', 'HHS, Federal Register, Jan 15, 2026', 'https://aspe.hhs.gov/poverty-guidelines'],
      ['Medicaid and KCHIP', 'Adults up to 138% of poverty; children up to 218% (Medicaid plus KCHIP); 12-month continuous eligibility for children', 'Kentucky Medicaid limits (effective Apr 1, 2026), as summarized by healthinsurance.org; children\u2019s continuous eligibility is federal law since 2024', 'https://www.healthinsurance.org/medicaid/kentucky/'],
      ['kynect premium tax credit', 'Expected premium 2.10% to 9.96% of income; no credit above 400% of poverty (enhanced credits expired after 2025)', 'IRS Rev. Proc. 2025-25 (copy hosted by EPIC Insurance Brokers)', 'https://www.epicbrokers.com/wp-content/uploads/2025/07/revenue-procedure-2025-25.pdf'],
      ['Federal income tax', 'Head of household: standard deduction ' + money(R.tax.standardDeduction) + '; 10% to $17,700, 12% to $67,450', 'IRS Rev. Proc. 2025-32 (tax year 2026); IRS announcement of 2026 adjustments', 'https://content.govdelivery.com/accounts/USIRS/bulletins/3f65fe1'],
      ['Child tax credit', money(R.tax.ctcPerChild) + ' per child; up to ' + money(R.tax.ctcRefundableMaxPerChild) + ' refundable (15% of earnings over $2,500)', 'IRS Rev. Proc. 2025-32 \u00a74.05, as summarized by Current Federal Tax Developments', 'https://www.currentfederaltaxdevelopments.com/blog/2025/10/9/2026-inflation-adjustments-for-tax-professionals-revenue-procedure-2025-32-analysis'],
      ['Child care tax credit', '50% of up to $3,000 (one child) or $6,000 (two or more), falling 1 point per $2,000 of income over $15,000 to 35%; nonrefundable; reduced by tax-free employer child care', 'IRC \u00a721 as amended for 2026, as summarized by Kiplinger and Tax47', 'https://finance.yahoo.com/economy/policy/articles/kiplinger-2026-tax-letter-dependent-163414796.html'],
      ['Earned income credit', 'Max ' + money(R.tax.eitc[1].max) + ' (1 child), ' + money(R.tax.eitc[2].max) + ' (2), ' + money(R.tax.eitc[3].max) + ' (3+); phase-out starts at $23,890', 'IRS Rev. Proc. 2025-32 \u00a74.06; IRS announcement of 2026 adjustments', 'https://content.govdelivery.com/accounts/USIRS/bulletins/3f65fe1'],
      ['Kentucky income tax', '3.5% flat after a ' + money(R.tax.kyStandardDeduction) + ' standard deduction', 'Kentucky Department of Revenue 2026 withholding formula, as reported by Bloomberg Tax', 'https://news.bloombergtax.com/payroll/kentucky-income-tax-rate-to-decrease-in-2026'],
      ['Kentucky tax credits', 'Family size credit forgives 100% of Kentucky tax at or below the poverty line, falling in steps to 10% at 133% (family of up to 4); child care credit is 20% of the federal credit', 'KRS 141.066; 2025 Kentucky Form 740 instructions', 'https://revenue.ky.gov/Forms/740%20Packet%20Instructions.pdf'],
      ['Refund timing', 'Refunds that include the earned income credit or refundable child tax credit arrive around early March for early filers', 'IRS guidance under the PATH Act, as reported by NATP', 'https://www.natptax.com/news-insights/blog/irs-sets-around-march-2-target-for-eitc-and-actc-refunds/'],
      ['Local occupational tax', 'Lexington-Fayette 2.25%; Louisville Metro 2.20% (residents of the school district); 87 counties levy 0.5% to 2.5%', 'Kentucky Association of Counties 2026 data brief; LRC fiscal note on SB 76 (2026)', 'https://kaco.org/media/7051/2026-databrief-occupationaltaxes.pdf'],
      ['Child care prices', 'Kentucky center averages: infant $800, toddler $700, preschool $600, school-age $500 a month', 'ACF child care market rate survey, via DaycareCalc (estimates)', 'https://daycarecalc.com/states/kentucky'],
      ['Single-parent households', 'About 113,000 Kentucky households are a single parent with children under 18 (88,385 mothers, 24,953 fathers)', 'University of Kentucky, Kentucky by the Numbers 2024 profile (Census ACS 2018\u201322, table DP02)', 'https://kybtn.mgcafe.uky.edu/sites/kybtn.ca.uky.edu/files/2024_profile_Kentucky.pdf'],
      ['Children in single-parent families', 'About 316,000 Kentucky children (34%) live in a single-parent family (2024)', 'Kentucky Youth Advocates and Annie E. Casey Foundation, 2026 KIDS COUNT data profile', 'https://assets.aecf.org/m/resourcedoc/2026-KCDB-profile-KY.pdf'],
      ['Who counts for which credit', 'Child tax credit: children under 17. Child and dependent care credit: children under 13. Earned income credit: children under 19', 'IRS Publication 972 and Publication 503; IRC \u00a7\u00a7 21, 24, 32', 'https://www.irs.gov/credits-deductions/individuals/child-tax-credit'],
      ['Child support and benefits', 'Counted as income for CCAP and SNAP; not counted for Medicaid, KCHIP, kynect, or federal and Kentucky income tax', '922 KAR 2:160 Section 8 (CCAP gross income); 7 CFR 273.9(b)(2) (SNAP unearned income); 42 CFR 435.603 (MAGI)', 'https://apps.legislature.ky.gov/law/kar/922/002/160.pdf'],
      ['Families getting child care help', 'An average of 23,376 families a month got CCAP from July to December 2025; 1,161 families were in the six-month transition in that period', 'DCBS Child Care and Development Fund status report (July 1 to Dec 31, 2025)', 'https://apps.legislature.ky.gov/CommitteeDocuments/369/44493/06%2017%202026%204.%20CCDF%20Half%20Year%2012.2025.pdf'],
      ['Families near a cliff', 'About 19,600 families on Medicaid, 7,130 on KCHIP, 6,012 on SNAP, and 3,349 getting child care help were close to a cliff; holding pay down to avoid cliffs costs more than $54 million in earnings in the first year', 'NCCP, Benefit Cliffs Affecting Kentucky Families (Jan 2024), for the Kentucky Workforce Innovation Board', 'https://www.nccp.org/wp-content/uploads/2024/08/Kentucky-Benefits-Cliff-Report.pdf']
    ];
    $('srcTable').innerHTML = '<thead><tr><th scope="col">Rule</th><th scope="col">Value used</th><th scope="col">Source</th></tr></thead><tbody>' +
      rows.map(function (r) { return '<tr><td class="n">' + esc(r[0]) + '</td><td>' + esc(r[1]) + '</td><td><a href="' + esc(r[3]) + '" target="_blank" rel="noopener noreferrer">' + esc(r[2]) + '</a></td></tr>'; }).join('') + '</tbody>';
  }

  // ---------- printing ----------
  // Chrome and Edge pause on window.print() until the dialog closes. Safari and Firefox return at once, and
  // Safari can lay the page out for print after firing 'afterprint'. So the one-page-ask mode stays on until
  // the person next clicks or types, instead of being switched off by 'afterprint'.
  var printSeen = false, printArmed = false;
  function sawPrint() { printSeen = true; }
  window.addEventListener('beforeprint', sawPrint);
  if (window.matchMedia) {
    var printMq = window.matchMedia('print'), onMq = function (m) { if (m.matches) sawPrint(); };
    if (printMq.addEventListener) printMq.addEventListener('change', onMq); else if (printMq.addListener) printMq.addListener(onMq);
  }
  function endPrintMode() { if (!printArmed) return; printArmed = false; document.body.classList.remove('print-ask'); }
  document.addEventListener('pointerdown', endPrintMode, true);
  document.addEventListener('keydown', endPrintMode, true);
  function printPage(what) {
    document.body.classList.toggle('print-ask', what === 'ask');
    $('askMsg').hidden = true;
    printSeen = false; printArmed = false;
    try { window.print(); } catch (err) { /* handled below: no print window means printSeen stays false */ }
    setTimeout(function () { printArmed = true; }, 300);
    setTimeout(function () { if (!printSeen) printBlocked(what); }, 1200);
  }
  // No print window opened. That happens when the file is shown inside a preview (an email, a chat app, a file
  // viewer) that doesn't allow printing. Say so plainly, and for the ask, show the page on screen instead.
  function printBlocked(what) {
    var msg = 'No print window opened. This usually means the file is open inside a preview, such as an email, a chat app, or a file viewer, which doesn\u2019t allow printing. Open the file in Chrome, Edge, Safari, or Firefox and try again.';
    document.body.classList.remove('print-ask');
    if (what === 'ask') {
      setAskOpen(true);
      var m = $('askMsg'); m.textContent = msg + ' The page is shown below in the meantime.'; m.hidden = false;
      m.scrollIntoView({ block: 'nearest' });
    } else showAlert(msg);
  }

  // ---------- save / open ----------
  function showAlert(msg, ok, action) {
    var a = $('alert'); a.textContent = msg; a.dataset.kind = '';
    if (action) {
      var bt = document.createElement('button'); bt.type = 'button'; bt.className = 'btn alert-btn'; bt.textContent = action.label;
      bt.addEventListener('click', action.fn); a.appendChild(document.createTextNode(' ')); a.appendChild(bt); a.dataset.kind = 'undo';
    }
    a.className = 'alert show' + (ok ? ' ok' : ''); if (!ok || action) a.scrollIntoView({ block: 'nearest' });
  }
  function hideAlert() { var a = $('alert'); a.className = 'alert'; a.dataset.kind = ''; }
  // e.g. raise-check-27.50-an-hour-2026-11-14.json, so saves for different offers don't overwrite each other
  function saveName() {
    var d = new Date(), date = d.getFullYear() + '-' + ('0' + (d.getMonth() + 1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2);
    var pay = S.offerBasis === 'salary' ? Math.round(+S.offerSalary || 0) + '-a-year' : (+S.offerWage || 0).toFixed(2) + '-an-hour';
    return 'raise-check-' + pay + '-' + date + '.json';
  }
  function save() {
    var payload = { app: APP_ID, format: FORMAT, savedAt: new Date().toISOString(), inputs: S }, name = saveName();
    var blob = new Blob([JSON.stringify(payload, null, 2)], { type: 'application/json' });
    var url = URL.createObjectURL(blob), a = document.createElement('a');
    a.href = url; a.download = name; document.body.appendChild(a); a.click();
    setTimeout(function () { URL.revokeObjectURL(url); a.remove(); }, 0);
    setDirty(false);
    if (trial) trial.dirty = true; // the original offer isn't what was just saved
    showAlert('Saved as ' + name + ' in your downloads. Use \u201cOpen saved numbers\u201d to pick up where you left off.', true);
  }
  // Returns clean inputs, or throws an Error with a plain-language reason. Reads version 1 and 2 files.
  function validate(obj) {
    if (!obj || typeof obj !== 'object') throw new Error('it isn\u2019t a Raise Check KY file');
    if (obj.app !== APP_ID) throw new Error('it wasn\u2019t saved by Raise Check KY');
    if (typeof obj.format !== 'number' || obj.format < 1) throw new Error('it isn\u2019t a Raise Check KY file');
    if (obj.format > FORMAT) throw new Error('it was saved by a newer version of this page');
    var src = obj.inputs, v1 = obj.format === 1;
    if (!src || typeof src !== 'object') throw new Error('it has no saved numbers in it');
    var out = clone(COMMON);
    NUM_FIELDS.forEach(function (f) {
      var v = src[f];
      if (v1 && (f === 'employerCare' || f === 'savings' || f === 'raisePct') && v === undefined) return;
      if ((f === 'nowSalary' || f === 'offerSalary') && v === undefined) return; // older files: figured from hourly pay below
      if (f === 'childSupport' && v === undefined) return; // older files: none
      if (typeof v !== 'number' || !isFinite(v)) throw new Error('the value for ' + LABELS[f] + ' is missing or isn\u2019t a number');
      var r = RANGES[f];
      if (v < r[0] || v > r[1]) throw new Error('the value for ' + LABELS[f] + ' is outside the allowed range');
      out[f] = INTS[f] ? Math.round(v) : v;
    });
    BOOL_FIELDS.forEach(function (f) {
      if (v1 && f === 'reminders' && src[f] === undefined) return;
      if (typeof src[f] !== 'boolean') throw new Error('the ' + LABELS[f] + ' setting is missing');
      out[f] = src[f];
    });
    ['now', 'offer'].forEach(function (w) {
      var b = src[w + 'Basis'];
      if (b === undefined) b = 'hourly';
      if (b !== 'hourly' && b !== 'salary') throw new Error('the pay type for ' + (w === 'now' ? 'today' : 'the offer') + ' isn\u2019t recognized');
      if (b === 'salary' && src[w + 'Salary'] === undefined) throw new Error('the value for ' + LABELS[w + 'Salary'] + ' is missing or isn\u2019t a number');
      out[w + 'Basis'] = b;
      syncPay(out, w);
    });
    if (['fayette', 'louisville', 'none', 'other'].indexOf(src.localChoice) < 0) throw new Error('the work location setting isn\u2019t recognized');
    out.localChoice = src.localChoice;
    if (typeof src.startMonth !== 'number' || src.startMonth % 1 || src.startMonth < 0 || src.startMonth > 11) throw new Error('the start month isn\u2019t valid');
    out.startMonth = src.startMonth;
    if (v1) {
      out.startYear = TODAY.getFullYear() + (out.startMonth < TODAY.getMonth() ? 1 : 0);
      [['renewCCAP', 'renewCCAPMonth'], ['renewSNAP', 'renewSNAPMonth'], ['renewMedicaid', 'renewMedicaidMonth']].forEach(function (p) {
        var r = src[p[0]];
        if (typeof r !== 'number' || r % 1 || r < 1 || r > 12) throw new Error('the ' + LABELS[p[1]] + ' isn\u2019t valid');
        out[p[1]] = relToMonth(out.startMonth, r);
      });
    } else {
      if (typeof src.startYear !== 'number' || src.startYear % 1 || src.startYear < 2024 || src.startYear > 2040) throw new Error('the start year isn\u2019t valid');
      out.startYear = src.startYear;
      MONTH_FIELDS.forEach(function (f) {
        if (typeof src[f] !== 'number' || src[f] % 1 || src[f] < 0 || src[f] > 11) throw new Error('the ' + LABELS[f] + ' isn\u2019t valid');
        out[f] = src[f];
      });
    }
    if (!Array.isArray(src.kids) || src.kids.length < 1 || src.kids.length > MAX_KIDS) throw new Error('it must have between one and five children');
    out.kids = src.kids.map(function (k) {
      if (!k || !AGES[k.age]) throw new Error('a child\u2019s age group isn\u2019t recognized');
      if (typeof k.price !== 'number' || !isFinite(k.price) || k.price < 0 || k.price > 10000) throw new Error('a child care price isn\u2019t valid');
      return { age: k.age, price: k.price };
    });
    return out;
  }
  function openFile(file) {
    if (!file) return;
    if (file.size > 200000) { showAlert('That file couldn\u2019t be opened: it\u2019s too large to be a Raise Check KY file. Your current numbers weren\u2019t changed.'); return; }
    var reader = new FileReader();
    reader.onload = function () {
      var parsed;
      try { parsed = JSON.parse(reader.result); }
      catch (err) { showAlert('That file couldn\u2019t be opened: it isn\u2019t a saved Raise Check KY file. Your current numbers weren\u2019t changed.'); return; }
      try {
        var clean = validate(parsed), before = snapshot();
        endTrial(); mine = null; clearKidUndo(); S = clean; writeForm(); markExample(null); setDirty(false); update(true);
        showAlert('Opened ' + file.name + '.', true, { label: 'Go back to the numbers you had', fn: function () {
          restore(before); showAlert('Back to the numbers you had before opening ' + file.name + '.', true);
        } });
      } catch (err) {
        showAlert('That file couldn\u2019t be opened because ' + err.message + '. Your current numbers weren\u2019t changed.');
      }
    };
    reader.onerror = function () { showAlert('That file couldn\u2019t be read. Your current numbers weren\u2019t changed.'); };
    reader.readAsText(file);
  }

  // ---------- wire up ----------
  fillSelects();
  renderChips();
  renderSources();
  S = fromExample(EXAMPLES[0]);
  writeForm(); markExample('nurse'); update(false);

  ['form', 'bridge'].forEach(function (id) { $(id).addEventListener('input', onChange); $(id).addEventListener('change', onChange); });
  document.querySelector('details.adv').addEventListener('input', onChange);
  document.querySelector('details.adv').addEventListener('change', onChange);
  $('kids').addEventListener('click', function (e) {
    var rm = e.target.dataset && e.target.dataset.rm;
    if (rm === undefined) return;
    var i = +rm, gone = S.kids[i];
    S.kids.splice(i, 1); renderKids(); setDirty(true); edited(); trialEdited('kids'); update(false);
    kidUndo = { i: i, kid: gone };
    var u = $('kidUndo'); u.hidden = false;
    u.querySelector('span').textContent = 'Removed child ' + (i + 1) + ' (' + AGES[gone.age].label.charAt(0).toLowerCase() + AGES[gone.age].label.slice(1) + ').';
    u.querySelector('button').focus();
  });
  $('kidUndo').querySelector('button').addEventListener('click', function () {
    if (!kidUndo || S.kids.length >= MAX_KIDS) return;
    var k = kidUndo; clearKidUndo();
    S.kids.splice(Math.min(k.i, S.kids.length), 0, k.kid); renderKids(); setDirty(true); edited(); trialEdited('kids'); update(false);
    var sel = $('kidAge' + Math.min(k.i, S.kids.length - 1)); if (sel) sel.focus();
  });
  $('addKid').addEventListener('click', function () {
    if (S.kids.length >= MAX_KIDS) return;
    S.kids.push({ age: 'preschool', price: AGES.preschool.price }); renderKids(); setDirty(true); clearKidUndo(); edited(); trialEdited('kids'); update(false);
  });
  $('options').addEventListener('click', function (e) { var k = e.target.dataset && e.target.dataset.try; if (k) tryOption(k); });
  document.addEventListener('click', function (e) { var w = e.target.dataset && e.target.dataset.back; if (w) backToOriginal(w); });
  $('askPeek').addEventListener('click', function () { setAskOpen(!askOpen); });
  $('icsBtn').addEventListener('click', downloadICS);
  $('saveBtn').addEventListener('click', save);
  // nothing is lost by opening a file: the alert afterwards offers the way back
  $('openBtn').addEventListener('click', function () { $('fileIn').value = ''; $('fileIn').click(); });
  $('fileIn').addEventListener('change', function () { hideAlert(); openFile(this.files[0]); });
  $('printBtn').addEventListener('click', function () { printPage('summary'); });
  $('askBtn').addEventListener('click', function () { printPage('ask'); });

  // Inside a preview (an email, a chat app, a file viewer) saving, printing, and calendar files are often blocked.
  try { if (window.self !== window.top) $('frameNote').hidden = false; } catch (err) { $('frameNote').hidden = false; }

  // exposed for the page's own tests only
  window.__raiseCheck = { buildICS: buildICS, state: function () { return S; }, trial: function () { return trial; } };
})();

</script>
</body>
</html>

Reaches out to

Websites this page contacts when it runs — fonts, chart libraries, data. Found by reading its source.

  • openfontlicense.org
  • kybtn.mgcafe.uky.edu
  • assets.aecf.org
  • apps.legislature.ky.gov
  • www.nccp.org
  • kcews.ky.gov
  • khbe.ky.gov
  • prichardcommittee.org
  • www.polsinelli.com
  • www.usda.gov
  • kypolicy.org
  • chfs.ky.gov

Licence

Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.

Copyright © 2026 Peter Marra. Licensed under the MIT License. Published on Globefin.

Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →

Sandbox

Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.