/* Retirement readiness (tools/retirement.html). Frame: tool-frame.css + tools/kit.css + core.css. */
[hidden] { display: none !important; }

.rt-figure { font-size: clamp(72px, 9vw, 128px); letter-spacing: -0.045em; margin-top: 14px; }
.rt-summary { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.rt-summary .tf-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-hero .tf-sub { font-size: clamp(22px, 2vw, 28px); }

/* The meter: how much of the way, against a goal tick at 100% */
.rt-meter { position: relative; height: 6px; margin: 18px 0 4px; border-radius: 3px; background: rgba(236, 230, 216, .14); }
.rt-meter__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--kesef); }
.rt-meter__goal { position: absolute; right: 0; top: -5px; bottom: -5px; width: 2px; background: var(--parchment); }

/* Hero chart */
.rt-fig { margin: clamp(48px, 6vw, 72px) 0 0; padding-top: 28px; border-top: 1px solid var(--hair-stage); }
.rt-fig-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 18px; }
.rt-fig figcaption { font: 400 14px/1.55 var(--font-sans); color: var(--parchment-2); max-width: 52em; }
.rt-fig-key { display: inline-flex; gap: 18px; margin: 0; font: 400 13px/1 var(--font-sans); color: var(--parchment-2); white-space: nowrap; }
.rt-fig-key span { display: inline-flex; align-items: center; gap: 8px; }
.rt-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--kesef); }
.rt-key--need { border-top-style: dashed; border-color: var(--parchment-2); }
.rt-chart { position: relative; min-height: 354px; }
.rt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rt-c-grid { stroke: var(--hair-stage); stroke-width: 1; }
.rt-c-gridl, .rt-c-age { fill: var(--parchment-3); font: 400 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.rt-c-axis { stroke: rgba(236, 230, 216, .32); stroke-width: 1; }
.rt-c-band { fill: rgba(236, 230, 216, .035); }
.rt-c-ret { stroke: var(--parchment); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.rt-c-retl { fill: var(--parchment-2); font: 400 12px var(--font-sans); }
.rt-c-need { fill: none; stroke: var(--parchment-2); stroke-width: 1.5; stroke-dasharray: 5 5; }
.rt-c-you { fill: none; stroke: var(--kesef); stroke-width: 2.25; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rt-c-you.is-draw { stroke-dashoffset: 1; }
.rt-c-dot { fill: var(--kesef); }
.rt-c-dot2 { fill: var(--stage); stroke: var(--parchment); stroke-width: 1.5; }
.rt-c-out { fill: var(--stage); stroke: var(--kesef); stroke-width: 1.5; }
.rt-c-outl { fill: var(--parchment); font: 500 12px var(--font-sans); }
.rt-c-lab { fill: var(--parchment-2); font: 400 13px var(--font-sans); font-variant-numeric: tabular-nums; }
.rt-c-lab.is-you { fill: var(--kesef); }
@media (prefers-reduced-motion: no-preference) {
  .rt-c-you { transition: stroke-dashoffset 1.6s var(--ease-out); }
  .rt-meter__fill { transition: width .5s var(--ease); }
}
@media (max-width: 760px) {
  .rt-figure { font-size: clamp(64px, 20vw, 104px); }
  .rt-fig-head { display: block; }
  .rt-fig-key { margin-top: 12px; }
  .rt-chart { min-height: 284px; }
}

/* Work area */
.rt-first { margin-top: 0; }
.tf-work .rt-sub { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--hair); font: 400 21px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.kc-more__body > .rt-sub:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }
.rt-sub + .tk-field, .rt-sub + .tk-two { margin-top: 18px; }
.rt-hint { margin-top: 12px; line-height: 1.55; }
.rt-hint a { color: var(--ink); text-underline-offset: 3px; }
.rt-intro { font: 400 15px/1.55 var(--font-sans); color: var(--ink-2); margin: -12px 0 12px; max-width: 40em; }
.tf-work select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312110E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.tf-work .rt-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin-top: 20px; padding: 10px 0; cursor: pointer; }
.tf-work .rt-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.tf-work .rt-check > span { font: 400 15px/1.35 var(--font-sans); color: var(--ink); }
.tf-work .rt-check small { display: block; margin-top: 2px; font: 400 13px/1.4 var(--font-sans); color: var(--ink-2); }
.rt-spouse .tk-two { margin-top: 8px; }
.rt-room > div { padding: 10px 0; }
.rt-room .rt-room-now { border-top: 1px solid var(--ink); }
.rt-room .rt-room-now dt { font-weight: 500; color: var(--ink); }
.rt-status:empty { display: none; }
.rt-status { margin-top: 12px; }
.rt-sources a { color: var(--ink); text-underline-offset: 3px; }
.tk-rows dt .tk-hint { font-size: 12.5px; }
.rt-context { margin: 40px 0 0; max-width: 46em; font: 400 15px/1.6 var(--font-sans); color: var(--ink-2); }
.rt-context a { color: var(--ink); text-underline-offset: 3px; }

@media print {
  #site-header, footer, .tf-actions, .tf-related, .tk-actions, .ks-reassure, .sr-only, .rt-fig { display: none !important; }
  .ks-stage { background: #fff !important; color: #000 !important; }
  .tf-hero { padding: 0 !important; min-height: 0 !important; }
}
