#rw-path .rw-path-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 4.4vw, 72px); align-items: stretch; }
@media (max-width: 900px) { #rw-path .rw-path-grid { grid-template-columns: minmax(0, 1fr); } }

/* rw-path — "When could you apply?" Four sliders on the left, the answer as one panel on the right.
   Accent: green (the home page's save calculator uses the same family and the same date model). */

/* ---------- sliders ---------------------------------------------------- */
#rw-path .rp-sliders { margin-top: clamp(36px, 3.6vw, 52px); border-top: 1px solid var(--rule); }
#rw-path .rp-sl { padding: 18px 0 8px; border-bottom: 1px solid var(--rule); }
#rw-path .rp-sl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
#rw-path .rp-sl label { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 16px; line-height: 1.3; color: var(--fg2); cursor: pointer; }
#rw-path .rp-rate { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; line-height: 1; color: var(--on-ink-50); white-space: nowrap; }
#rw-path .rp-val { flex: none; font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }

/* Native range: 44px hit area, 4px on-ink track filled to the thumb, 24px paper thumb. */
#rw-path input[type="range"] {
  --p: 0%; --fill: var(--fg); --trk: rgba(242,244,241,.14);
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 2px 0 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
#rw-path input[type="range"]:focus { outline: none; }
#rw-path input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--fill) 0 var(--p), var(--trk) var(--p) 100%);
}
#rw-path input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--trk); }
#rw-path input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fill); }
#rw-path input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 0; border-radius: 50%;
  background: var(--paper-3); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 10px -2px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
#rw-path input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--paper-3); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 10px -2px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
#rw-path input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
#rw-path input[type="range"]:hover::-moz-range-thumb { transform: scale(1.08); }
#rw-path input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.14); }
#rw-path input[type="range"]:active::-moz-range-thumb { transform: scale(1.14); }
#rw-path input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--green-light); }
#rw-path input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--green-light); }

/* ---------- the result panel -------------------------------------------- */
#rw-path .rp-out { display: flex; min-width: 0; }
#rw-path .rp-panel {
  --px: clamp(22px, 2.2vw, 32px); --line: rgba(223,227,222,.12); --g: 4px;
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: rgba(242,244,241,.03); color: var(--on-ink); border: 1px solid rgba(223,227,222,.22); overflow: hidden;
}
#rw-path .rp-lab, #rw-path .rp-goal { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
#rw-path .rp-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 var(--px); border-bottom: 1px solid var(--line); }
#rw-path .rp-lab { color: var(--on-ink-70); }
#rw-path .rp-goal { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-50); }
#rw-path .rp-goal svg { width: 15px; height: 15px; margin-top: -2px; color: var(--green-light); }

#rw-path .rp-m { flex: 1; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 36px) var(--px) clamp(24px, 2.4vw, 32px); }

/* the date: the hero of the panel; rolls like the home page's */
#rw-path .rp-date {
  display: flex; gap: .2em; font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 8.2vw, 132px);
  line-height: .86; letter-spacing: -0.06em; color: var(--green-light); white-space: nowrap; transition: color .4s var(--ease);
}
#rw-path .rp-slot { position: relative; display: inline-block; overflow: hidden; padding: .06em .1em; margin: -.06em -.1em; }
#rw-path .rp-slot > span { display: block; white-space: nowrap; }
#rw-path .rp-slot > .rp-old { position: absolute; left: .1em; top: .06em; }
#rw-path .rp-line { margin-top: clamp(16px, 1.6vw, 22px); font-size: 16.5px; line-height: 1.4; color: var(--on-ink-70); font-variant-numeric: tabular-nums; text-wrap: balance; }
#rw-path .rp-line b { font-weight: 600; color: var(--on-ink); }
#rw-path .rp-line > span { white-space: nowrap; }
#rw-path .rp-dot { display: inline-block; width: 4px; height: 4px; margin: 0 .7em; border-radius: 50%; background: var(--on-ink-50); vertical-align: .22em; }

/* empty: nothing earning yet */
#rw-path .rp-panel.is-empty .rp-date { color: var(--on-ink-50); }

/* ---------- the months: a calendar, one block per month ---------------- */
/* the calendar follows the summary line directly; any spare height collects below the key, not above the calendar */
#rw-path .rp-tl { padding-top: clamp(28px, 3vw, 40px); }
#rw-path .rp-mons, #rw-path .rp-yr-in { display: grid; grid-template-columns: 40px repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; }
#rw-path .rp-mons { margin-bottom: 10px; }
#rw-path .rp-mons span { font-family: var(--f-mono); font-size: 11px; line-height: 1; color: var(--on-ink-50); text-align: center; }
#rw-path .rp-yr { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease); }
#rw-path .rp-yr.off { grid-template-rows: 0fr; opacity: 0; }
#rw-path .rp-yr > div { min-height: 0; overflow: hidden; }
#rw-path .rp-yr-in { padding-bottom: var(--g); }
#rw-path .rp-yr b { font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .04em; line-height: 1; color: var(--on-ink-50); font-variant-numeric: tabular-nums; }
#rw-path .rp-c {
  position: relative; display: grid; place-items: center; height: auto; aspect-ratio: 1; border-radius: 3px;
  background: rgba(242,244,241,.05); box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease), opacity .35s var(--ease);
}
#rw-path .rp-c.past { visibility: hidden; }
/* seven or more years: half-height months so the panel holds its size */
#rw-path .rp-panel.is-long .rp-c { aspect-ratio: auto; height: clamp(14px, 1.6vw, 22px); }
#rw-path .rp-c.on { background: var(--green-light); }
#rw-path .rp-c.land { background: repeating-linear-gradient(135deg, var(--green-light) 0 2px, rgba(111,203,159,.45) 2px 5px); }
#rw-path .rp-c.s { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(111,203,159,.7); }
#rw-path .rp-c.home { background: var(--paper-3); color: var(--ink); }
#rw-path .rp-c svg { width: 15px; height: 15px; opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .4s var(--ease); }
#rw-path .rp-c.home svg { opacity: 1; transform: none; }
#rw-path .rp-c.pop { animation: rp-pop .5s var(--ease); }
@keyframes rp-pop { from { transform: scale(.4); opacity: 0; } }

#rw-path .rp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; padding-left: calc(40px + var(--g)); font-size: 13.5px; line-height: 1.2; color: var(--on-ink-70); }
#rw-path .rp-key > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: opacity .35s var(--ease); }
#rw-path .rp-sw { width: 14px; height: 10px; border-radius: 2px; }
#rw-path .rp-sw--on { background: var(--green-light); }
#rw-path .rp-sw--s { box-shadow: inset 0 0 0 1.5px rgba(111,203,159,.7); }
#rw-path .rp-key-s.off { opacity: .35; }
#rw-path .rp-key-more { margin-left: auto; color: var(--on-ink-50); }
#rw-path .rp-key-more:empty { display: none; }

/* ---------- foot: points a month, by source ---------------------------- */
#rw-path .rp-f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
#rw-path .rp-f li { display: grid; gap: 6px; align-content: start; padding: 18px 16px 20px; }
#rw-path .rp-f li:first-child { padding-left: var(--px); }
#rw-path .rp-f li + li { border-left: 1px solid var(--line); }
#rw-path .rp-f b { font-size: clamp(20px, 1.7vw, 24px); line-height: 1; color: var(--on-ink); }
#rw-path .rp-f span { font-size: 13.5px; line-height: 1.25; color: var(--on-ink-70); }

@media (max-width: 900px) {
  #rw-path .rp-date { font-size: clamp(64px, 14vw, 120px); }
}
@media (max-width: 560px) {
  #rw-path .rp-panel { --px: 18px; --g: 3px; }
  #rw-path .rp-sl label { font-size: 15px; gap: 8px; }
  #rw-path .rp-val { font-size: 17px; }
  #rw-path .rp-date { font-size: clamp(54px, 17vw, 84px); }
  #rw-path .rp-line { font-size: 15.5px; }
  #rw-path .rp-line > span { display: block; }
  #rw-path .rp-line > span + span { margin-top: 2px; }
  #rw-path .rp-line .rp-dot { display: none; }
  #rw-path .rp-mons, #rw-path .rp-yr-in { grid-template-columns: 34px repeat(12, minmax(0, 1fr)); }
  #rw-path .rp-mons span, #rw-path .rp-yr b { font-size: 11px; }
  #rw-path .rp-c { border-radius: 2px; }
  #rw-path .rp-c svg { width: 11px; height: 11px; }
  #rw-path .rp-key { padding-left: 0; font-size: 13px; gap: 8px 16px; }
  #rw-path .rp-key-more { margin-left: 0; }
  #rw-path .rp-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #rw-path .rp-f li { padding: 16px 18px 18px; }
  #rw-path .rp-f li:nth-child(odd) { padding-left: var(--px); border-left: 0; }
  #rw-path .rp-f li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  #rw-path .rp-yr, #rw-path .rp-c, #rw-path .rp-c svg, #rw-path .rp-key > span, #rw-path .rp-date { transition: none; }
  #rw-path .rp-c.pop { animation: none; }
  #rw-path input[type="range"]::-webkit-slider-thumb { transition: none; }
}
/* tablet, stacked: the four sliders sit two by two so the panel stays close */
@media (min-width: 561px) and (max-width: 900px) {
  #rw-path .rp-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
}

