/* Care Split · © 2026 SoeSan Holdings LLC */
/* The look comes from the job: one year of care costs, split between what the FSA pays and what the credit counts.
   The split strip is the one bold thing: jade for FSA dollars, raspberry for credit dollars, a hatch for neither,
   with the slider sitting on the line between them. Lavender-grey paper, aubergine ink, the form flat on the paper.
   Literata and Atkinson Hyperlegible Next are under the SIL Open Font License 1.1 (fonts/OFL-*.txt),
   latin subsets from @fontsource. */
@font-face { font-family: "Literata"; src: url(/dependent-care/fonts/literata-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/dependent-care/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/dependent-care/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F1EFF6; --panel: #FFFFFF; --ink: #221C33; --muted: #5D5770; --rule: #D7D2E3; --field: #FBFAFD;
  --fsa: #0A7660; --fsa-soft: #D4EEE6; --cr: #D9608F; --cr-soft: #F6DDE8; --none: #8A8399; --line: #8A8399;
  --warn: #7A4E00; --warn-soft: #F6EACB; --focus: #4B3FD1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16141D; --panel: #201D2A; --ink: #ECE9F4; --muted: #A9A3BA; --rule: #393348; --field: #1B1924;
    --fsa: #4FCFAB; --fsa-soft: #163B33; --cr: #C2457A; --cr-soft: #3E1F2D; --none: #6E6782; --line: #756E8A;
    --warn: #E8BC62; --warn-soft: #3A2E15; --focus: #A9A1FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16141D; --panel: #201D2A; --ink: #ECE9F4; --muted: #A9A3BA; --rule: #393348; --field: #1B1924;
  --fsa: #4FCFAB; --fsa-soft: #163B33; --cr: #C2457A; --cr-soft: #3E1F2D; --none: #6E6782; --line: #756E8A;
  --warn: #E8BC62; --warn-soft: #3A2E15; --focus: #A9A1FF; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 "Atkinson Hyperlegible Next", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 16px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input, button, select { font: inherit; color: inherit; }

.brand { max-width: 1160px; margin: 0 auto; padding: 18px 16px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wordmark { display: inline-flex; gap: 9px; align-items: center; font: 600 21px/1 Literata, Georgia, serif; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; }
.wordmark rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.wordmark .fsa { fill: var(--fsa); }
.wordmark .cr { fill: var(--cr); }
.brand-note { font-size: 14px; color: var(--muted); }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.intro { padding: 34px 0 22px; max-width: 760px; }
h1 { font: 600 clamp(34px, 5.4vw, 58px)/1.06 Literata, Georgia, serif; letter-spacing: -.018em; margin: 0 0 16px; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; margin: 0 0 14px; max-width: 62ch; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 0; max-width: 66ch; }
.privacy svg { width: 15px; height: 15px; flex: none; margin-top: 4px; fill: currentColor; }

.desk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; padding-bottom: 34px; }

/* the form lies flat on the paper */
.form { outline: none; }
.eg { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 15px; }
.field { border: 0; margin: 0; padding: 0 0 16px; min-width: 0; }
.field + .field, .form > .field, .pair { border-top: 1px solid var(--rule); padding-top: 14px; }
.form > .field:first-of-type { border-top: 0; padding-top: 0; }
legend, .field > label { display: block; font-weight: 700; font-size: 16px; margin: 0 0 8px; padding: 0; }
.hint { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.hint.under { margin: -8px 0 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pair .field { border-top: 0; padding-top: 0; }
.more .pair { border-top: 0; padding-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--field); font-size: 15.5px; cursor: pointer; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--fsa); }

.money { position: relative; display: block; }
.money i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.money input, .count { width: 100%; min-height: 46px; padding: 9px 12px 9px 26px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); font-size: 18px; }
.count { padding-left: 12px; }
.money.pct input { padding: 9px 30px 9px 12px; }
.money.pct i { left: auto; right: 12px; }
.money input:focus, .count:focus { border-color: var(--ink); }

.more { border-top: 1px solid var(--rule); padding: 12px 0 4px; }
.more summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 4px 0; }
.more .field { padding-bottom: 12px; }
.formfoot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: none; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn:hover { border-color: var(--ink); }

/* the result: one panel, the strip in the middle of it */
.out { position: sticky; top: 16px; border-top: 3px solid var(--ink); padding: 18px 0 0; }
.verdict { font: 600 clamp(26px, 3vw, 34px)/1.15 Literata, Georgia, serif; letter-spacing: -.01em; margin: 0 0 8px; text-wrap: balance; }
.sub { margin: 0 0 22px; font-size: 17px; max-width: 54ch; }
.sub b { font-weight: 700; }

.split { margin: 0 0 18px; }
.strip { display: flex; height: 46px; border-radius: 8px; overflow: hidden; background: var(--paper); }
.seg { display: block; height: 100%; transition: width .18s ease-out; }
.seg.fsa { background: var(--fsa); }
.seg.cr { background: var(--cr); }
.seg.fsa, .seg.cr { box-shadow: inset -2px 0 0 var(--paper); }
.seg.none { flex: 1 1 auto; background: repeating-linear-gradient(135deg, var(--none) 0 2px, transparent 2px 9px); }
.slide { margin: 4px 0 0; }
.slide input { display: block; width: calc(100% + 32px); margin: 0 -16px; height: 44px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slide input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
.slide input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -14px; border-radius: 50%; background: var(--fsa); border: 4px solid var(--paper); box-shadow: 0 0 0 1.5px var(--fsa); }
.slide input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--fsa); border: 4px solid var(--paper); box-shadow: 0 0 0 1.5px var(--fsa); }
.slide[data-off] { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 15px; }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .k-fsa::before { background: var(--fsa); }
.legend .k-cr::before { background: var(--cr); }
.legend .k-none::before { background: repeating-linear-gradient(135deg, var(--none) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--none); }
.legend b { font-weight: 700; }
.sub b, .legend b, .bar b, .cmp tr.keep td { font-family: Literata, Georgia, serif; font-weight: 600; }
.try { flex-basis: 100%; color: var(--muted); font-size: 14px; }

.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 8px 8px; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.cmp th:first-child, .cmp td:first-child { text-align: left; padding-left: 0; }
.cmp thead th { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.cmp tbody th { font-weight: 400; color: var(--muted); }
.cmp td.on, .cmp th.on { background: var(--fsa-soft); }
.cmp td.on.cr, .cmp th.on.cr { background: var(--cr-soft); }
.cmp thead th.on { color: var(--ink); }
.cmp tr.keep th, .cmp tr.keep td { font-weight: 700; color: var(--ink); font-size: 17px; border-bottom: 0; border-top: 1.5px solid var(--ink); }
.why { margin: 14px 0 0; font-size: 15.5px; }
.flags { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.flags li { padding: 9px 12px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 6px 6px 0; font-size: 14.5px; }

.notes, .guide, .how { max-width: 760px; padding: 12px 0 8px; }
.notes h2, .guide h2, .how h2 { font: 600 27px/1.2 Literata, Georgia, serif; letter-spacing: -.01em; margin: 22px 0 10px; }
.guide h3 { font-weight: 700; font-size: 19px; line-height: 1.3; margin: 24px 0 6px; }
.guide p { margin: 0 0 12px; }
.notes ul { padding-left: 20px; margin: 0 0 14px; }
.notes li { margin-bottom: 6px; }
.nfa { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); font-size: 15.5px; }
.how p { font-size: 15.5px; color: var(--muted); }

.bar { position: fixed; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; z-index: 5; }
.bar span { font-weight: 400; }

.foot { max-width: 1160px; margin: 28px auto 0; padding: 18px 16px 84px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

@media (max-width: 880px) {
  .desk { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .out { position: static; order: -1; }
}
@media (max-width: 460px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .chips span { padding: 8px 12px; font-size: 15px; }
  .cmp { font-size: 14.5px; }
  .cmp th, .cmp td { padding: 7px 4px; }
  .cmp thead th { font-size: 13px; }
  .cmp tr.keep th, .cmp tr.keep td { font-size: 15.5px; }
}
@media print {
  .brand, .privacy, .form, .bar, .guide, .how, .foot, .skip, .slide { display: none !important; }
  .desk { display: block; }
  .out { border: 0; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { .seg { transition: none; } }
