/* Simcha savings timeline (tools/simcha-timeline.html). Frame: tool-frame.css + tools/kit.css + core.css. */
[hidden] { display: none !important; }

/* Hero: the answer at NDS scale */
.st-figure { font-size: clamp(64px, 8.2vw, 112px); letter-spacing: -0.04em; margin-top: 16px; }
.st-hero .tf-sub { font-size: clamp(22px, 2vw, 28px); }
.st-summary .tf-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The timeline: the star */
.st-line { margin: clamp(48px, 6vw, 72px) 0 0; padding-top: 28px; border-top: 1px solid var(--hair-stage); }
.st-line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 18px; }
.st-line figcaption { font: 400 14px/1.55 var(--font-sans); color: var(--parchment-2); max-width: 52em; }
.st-line-key { display: inline-flex; gap: 18px; margin: 0; font: 400 13px/1 var(--font-sans); color: var(--parchment-2); white-space: nowrap; }
.st-line-key span { display: inline-flex; align-items: center; gap: 8px; }
.st-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.st-key--wed { background: var(--parchment); }
.st-key--mitz { box-shadow: inset 0 0 0 1.5px var(--parchment); }
.st-chart { position: relative; min-height: 320px; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart-empty { margin: 0; padding: 48px 0; font: 400 16px/1.5 var(--font-sans); color: var(--parchment-2); }

.st-c-band { fill: rgba(255, 214, 2, .07); }
.st-c-band-top { stroke: var(--kesef); stroke-width: 1.5; stroke-linecap: round; }
.st-c-band-label { fill: var(--kesef); font: 500 12px var(--font-sans); }
.st-c-tick { stroke: rgba(236, 230, 216, .3); stroke-width: 1; }
.st-c-tick.is-ev { stroke: var(--parchment); }
.st-c-axis { stroke: rgba(236, 230, 216, .32); stroke-width: 1; }
.st-c-stem { stroke: rgba(236, 230, 216, .22); stroke-width: 1; stroke-dasharray: 2 4; }
.st-c-year { fill: var(--parchment-3); font: 400 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.st-c-year.is-ev { fill: var(--parchment); }
.st-c-fund { fill: none; stroke: var(--parchment); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.st-c-fund.is-draw { stroke-dashoffset: 1; }
.st-c-fund-area { fill: url(#st-fund-g); }
.st-c-fund-label { fill: var(--parchment-2); font: 400 12px var(--font-sans); }
.st-c-disc circle { fill: var(--parchment); }
.st-c-disc.is-mitz circle { fill: var(--stage); stroke: var(--parchment); stroke-width: 1.5; }
.st-c-disc.is-hot.is-wed circle { fill: var(--kesef); }
.st-c-disc.is-hot.is-mitz circle { stroke: var(--kesef); }
.st-c-in { fill: var(--stage); font: 500 11.5px var(--font-sans); font-variant-numeric: tabular-nums; pointer-events: none; }
.st-c-disc.is-mitz .st-c-in { fill: var(--parchment); }
.st-c-disc.is-hot.is-mitz .st-c-in { fill: var(--kesef); }
.st-c-name { fill: var(--parchment); font: 500 13px var(--font-sans); }
.st-c-cost { fill: var(--parchment-2); font: 400 12px var(--font-sans); font-variant-numeric: tabular-nums; }
.st-c-lead { stroke: var(--hair-stage); stroke-width: 1; }
.st-c-now { stroke: var(--parchment); stroke-width: 1; stroke-dasharray: 2 3; }
.st-c-now-dot { fill: var(--parchment); }
@media (prefers-reduced-motion: no-preference) {
  .st-c-disc { transition: transform .7s var(--ease-out), opacity .5s var(--ease-out); }
  .st-c-disc.is-in { transform: scale(.2); opacity: 0; }
  .st-c-fund { transition: stroke-dashoffset 1.6s var(--ease-out); }
}

/* Phones: a list of years */
.st-chart.is-list { min-height: 0; }
.st-years { list-style: none; margin: 0; padding: 0; }
.st-yr { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0 16px; border-top: 1px solid var(--hair-stage); }
.st-yr.is-hot { border-top-color: var(--kesef); }
.st-yr-year { grid-row: 1 / span 2; margin: 0; font: 400 15px/1.3 var(--font-mono); color: var(--parchment); font-variant-numeric: tabular-nums; }
.st-yr-year span { display: block; margin-top: 4px; font: 500 12px/1.3 var(--font-sans); color: var(--kesef); }
.st-yr-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-yr-ev li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.st-yr-name { font: 500 15px/1.3 var(--font-sans); color: var(--parchment); }
.st-yr-cost { font: 400 15px/1.3 var(--font-sans); color: var(--parchment); font-variant-numeric: tabular-nums; }
.st-yr-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(236, 230, 216, .08); overflow: hidden; }
.st-yr-bar i { display: block; height: 100%; border-radius: 4px; background: var(--parchment); }
.st-yr-ev li.is-mitz .st-yr-bar i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--parchment); }
.st-yr.is-hot li.is-wed .st-yr-bar i { background: var(--kesef); }
.st-yr.is-hot li.is-mitz .st-yr-bar i { box-shadow: inset 0 0 0 1.5px var(--kesef); }
.st-yr-fund { grid-column: 2; margin: 4px 0 0; font: 400 13px/1.4 var(--font-sans); color: var(--parchment-2); font-variant-numeric: tabular-nums; }
.st-gap { padding: 10px 0 10px 78px; border-top: 1px dashed var(--hair-stage); font: 400 13px/1.3 var(--font-sans); color: var(--parchment-3); }
@media (prefers-reduced-motion: no-preference) {
  .st-yr { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .st-yr.is-in { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 760px) {
  .st-figure { font-size: clamp(64px, 19vw, 104px); }
  .st-line-head { display: block; }
  .st-line-key { margin-top: 12px; }
}

/* Work area: children */
.st-intro { font: 400 15px/1.55 var(--font-sans); color: var(--ink-2); margin: -12px 0 20px; max-width: 40em; }
.st-kids { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.st-kid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto 44px; align-items: center; gap: 10px 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--hair); }
.tf-work .st-kid-name-in { width: 100%; padding: 0 14px; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.st-kid .tk-affix span { font-size: 14px; }
.st-kid .ks-seg { width: auto; }
.tf-work .st-kid .ks-seg > button { padding: 0 14px; }
.tf-work .st-kid-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); cursor: pointer; }
.tf-work .st-kid-x:hover { background: var(--paper-3); color: var(--ink); }
.st-kid-x svg { width: 16px; height: 16px; }
.st-kid-plan { grid-column: 1 / -1; margin: 0; font: 400 13px/1.5 var(--font-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.st-kids-empty { margin: 16px 0 0; font: 400 15px/1.5 var(--font-sans); color: var(--ink-2); }
.tf-work .st-add { margin-top: 18px; gap: 8px; }
.st-add svg { width: 16px; height: 16px; }
.st-assume { margin-top: 18px; max-width: 40em; line-height: 1.55; }
@media (max-width: 600px) {
  .st-kid { grid-template-columns: minmax(0, 1fr) 44px; }
  .st-kid-name { grid-column: 1; grid-row: 1; }
  .st-kid-x { grid-column: 2; grid-row: 1; }
  .st-kid-age { grid-column: 1; grid-row: 2; }
  .st-kid-sex { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .st-kid-age { grid-column: 1 / -1; }
}

/* Costs */
.st-costs { margin-top: 0; row-gap: 20px; }
.st-side { display: block; margin-top: 3px; font-weight: 400; color: var(--ink-3); }
.st-savings-field { margin-top: 24px; }
.st-ages-label { margin: 28px 0 12px; font: 500 13px/1.3 var(--font-sans); color: var(--ink); }
.st-ages-label span { font-weight: 400; color: var(--ink-2); }
.st-ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-ages .tk-field { margin-top: 0; }
@media (max-width: 760px) { .st-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Side panel */
.st-rows > div.is-squeeze dt { color: var(--ink); }
.st-rows > div.is-squeeze { box-shadow: inset 2px 0 0 var(--kesef); padding-left: 12px; }
.st-rows dt { font-size: 15px; }
.st-status:empty { display: none; }
.st-status { margin-top: 12px; }
.st-checked { margin-top: 10px; }

@media print {
  #site-header, footer, .tf-actions, .ks-reassure, .tk-actions, .tf-related, .kc-verdict__save, .st-add, .st-kid-x { display: none !important; }
  .tf-hero { padding-top: 24px; }
  details.kc-more > .kc-more__body { display: block; }
}

/* Steps under the hero figure */
.st-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; max-width: 30em; }
.st-steps li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--hair-stage); font: 400 14px/1.35 var(--font-sans); color: var(--parchment-2); font-variant-numeric: tabular-nums; }
.st-steps b { font-weight: 400; color: var(--parchment); white-space: nowrap; }
.st-steps li.is-now b { color: var(--kesef); }
.st-c-end { fill: var(--parchment); }
