/* Kids savings compared (tools/kids-savings.html). Frame: tool-frame.css + tools/kit.css; verdict/banner: core.css. */

.kd-figure { font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.04em; margin-top: 14px; }
.kd-summary { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.kd-summary .tf-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Hero: three columns, grown vs left after tax */
.kd-fig { margin: 56px 0 0; padding: clamp(24px, 3vw, 36px); background: var(--stage-2); border: 1px solid var(--hair-stage); border-radius: var(--r-panel); }
.kd-fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.kd-fig-title { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--parchment); }
.kd-key { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--font-sans); color: var(--parchment-2); }
.kd-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.kd-sw--grown { background: rgba(236, 230, 216, .16); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, .4); }
.kd-sw--net { background: var(--parchment); margin-left: 10px; }
.kd-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 56px); align-items: end; }
.kd-col { display: grid; gap: 10px; }
.kd-plot { position: relative; height: 220px; border-bottom: 1px solid rgba(236, 230, 216, .3); }
.kd-bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(120px, 70%); border-radius: 6px 6px 0 0; }
.kd-bar--grown { background: rgba(236, 230, 216, .1); box-shadow: inset 0 0 0 1px rgba(236, 230, 216, .32); }
.kd-bar--net { width: min(84px, 50%); background: rgba(236, 230, 216, .62); }
.kd-col.is-best .kd-bar--net { background: var(--kesef); }
.kd-col.is-locked .kd-bar--grown { background: repeating-linear-gradient(135deg, rgba(236, 230, 216, .16) 0 2px, transparent 2px 7px); }
.kd-col-name { margin: 6px 0 0; font: 500 15px/1.3 var(--font-sans); color: var(--parchment); text-align: center; }
.kd-col.is-best .kd-col-name::after { content: " · best fit"; font-weight: 400; color: var(--parchment-2); }
.kd-col-val { margin: 0; font: 400 14px/1.4 var(--font-sans); color: var(--parchment-2); text-align: center; font-variant-numeric: tabular-nums; }
.kd-fig-note { margin: 20px 0 0; font: 400 14px/1.5 var(--font-sans); color: var(--parchment-2); }

@media (prefers-reduced-motion: no-preference) { .kd-bar { transition: height .55s var(--ease), background .3s var(--ease); } }

@media (max-width: 760px) {
  .kd-fig { margin-top: 40px; padding: 20px 16px; }
  .kd-plot { height: 170px; }
  .kd-col-name { font-size: 13.5px; }
  .kd-col.is-best .kd-col-name::after { content: ""; }
  .kd-col-val { font-size: 12.5px; }
  .kd-figure { font-size: clamp(48px, 15vw, 80px); }
}

/* Work area */
.kd-seg { flex-wrap: wrap; border-radius: 22px; }
@media (max-width: 560px) { .tf-work .kd-seg { display: grid; grid-template-columns: 1fr; width: 100%; } }
.kd-hint { margin-top: 18px; }
.kd-status:empty { display: none; }
.kd-status { margin-top: 12px; }
.tf-work .kc-more .tk-two:first-child { margin-top: 8px; }
.tf-work .tk-toggle-label { display: block; }

.kd-cols { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 1024px) { .kd-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kd-card { position: relative; }
.kd-card .tf-panel-title small { display: block; margin-top: 4px; font: 400 14px/1.3 var(--font-sans); color: var(--ink-2); letter-spacing: 0; }
.kd-card.is-best { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.kd-card-badge { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper-2); font: 500 13px/1 var(--font-sans); }
.kd-card-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kd-card-figs dt { font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); }
.kd-card-figs dd { margin: 6px 0 0; font: 300 24px/1.1 var(--font-sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kd-rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.kd-rules li { position: relative; padding-left: 16px; font: 400 14.5px/1.55 var(--font-sans); color: var(--ink-2); }
.kd-rules li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--ink); }

.kd-sources { margin-top: 24px; }
.kd-sources .tf-panel-title { font-size: clamp(22px, 2vw, 26px); }
.kd-src { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.kd-src li { font: 400 14px/1.55 var(--font-sans); color: var(--ink-2); }
.kd-src a, .kd-unsure a { color: var(--ink); text-underline-offset: 3px; }
.kd-unsure { margin: 20px 0 0; padding: 16px 18px; border-left: 2px solid var(--ink); background: var(--paper); font: 400 14px/1.6 var(--font-sans); color: var(--ink-2); border-radius: 0 var(--r-chip) var(--r-chip) 0; }
.kd-unsure strong { color: var(--ink); font-weight: 500; }
[hidden] { display: none !important; }

@media print {
  #site-header, footer, .tf-actions, .ks-reassure, .tk-actions, .tf-related, .kc-verdict__save, .kc-verdict__next, .sr-only { display: none !important; }
  .tf-hero, .kd-fig, .tf-summary { background: #fff !important; color: #000 !important; }
}
