/* THE END CARD (Nov 19 2026, Chris approved): one look for the end of every tool's right column, taken from the Retirement
   Planner's "Your plan" card. Loaded by the Retirement Planner, Strategy Backtester, Wealth Forecaster, Roth calculator and
   Portfolio Proposal (each template links it before the page's own css). Edit the card's look here, once, for all five.
   - .col-open / .opencode: "Have a plan code? Open your plan" under each tool's title, and the box it opens
   - .example: the grey "This is an example" line under the three numbers
   - .sum: the grey card; .sum-t its table; .code the white code card inside it; .code.wait the same card before anything
     is changed (no code yet, "Have one? Open it"); .rbtn the buttons (blue = Download PDF, line = the Chris button)
   - .rbtn-2nd: the grey second button in the bar along the bottom (Download PDF is always last and blue)
   Colours are the site's variables (content/site.json colors). */
.col-open{margin-top:10px;font-size:13px}
.col-open button{color:var(--ink2);text-decoration:underline;text-underline-offset:3px}
.opencode{display:none;margin-top:12px;gap:6px}
.opencode.on{display:flex}
.opencode input{flex:1;height:40px;border:0;border-radius:4px;background:var(--card);padding:0 12px;font-size:14px;letter-spacing:.04em;text-transform:uppercase;min-width:0}
.opencode button{height:40px;padding:0 16px;border-radius:4px;background:var(--ink);color:#fff;font-size:13.5px;font-weight:500}
.opencode-msg{font-size:12.5px;color:var(--red);margin-top:6px;min-height:0}
.example{margin:22px 0 0;background:var(--card);border-radius:4px;padding:12px 14px;font-size:12.5px;color:var(--ink2);display:flex;justify-content:space-between;gap:12px;align-items:center}
.example button{font-weight:600;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.sum{margin-top:44px;background:var(--card);border-radius:8px;padding:22px 20px 20px}
.sum-eb{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-dark)}
.sum-h{font-family:var(--disp);font-size:21px;font-weight:600;line-height:1.2;margin:6px 0 14px}
.sum-t{width:100%;border-collapse:collapse;font-size:13px}
.sum-t th{font-size:11.5px;font-weight:600;color:var(--gray);text-align:right;padding:0 0 6px}
.sum-t th:first-child{text-align:left}
.sum-t th.b{color:var(--ink)}
.sum-t td{padding:8px 0 8px 12px;border-top:1px solid var(--rule);text-align:right;color:var(--ink2);vertical-align:top;white-space:nowrap}
.sum-t th{padding-left:12px}
.sum-t td:first-child{text-align:left;color:var(--ink2);padding-left:0;white-space:normal;width:52%}
.sum-t td.b{color:var(--ink);font-weight:600}
.sum-t td.out{color:var(--red);font-weight:600}
.sum-t tr.dim td{color:var(--gray)}
.sum-n{font-size:12px;line-height:1.45;color:var(--gray);margin:12px 0 0}
.code{margin-top:18px;background:#fff;border-radius:6px;padding:14px 14px 12px}
.code-l{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gray)}
.code-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.code-v{font-family:var(--disp);font-size:17px;font-weight:600;letter-spacing:.03em;margin-top:6px;line-height:1.35}
.code-copy{height:30px;padding:0 12px;border-radius:4px;background:var(--card);font-size:12.5px;font-weight:500;white-space:nowrap}
.code-copy:hover{background:var(--hover)}
.code-n{font-size:12px;color:var(--gray);margin-top:6px;line-height:1.4}
.code.wait .code-n{margin-top:8px}
.rbtn{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:44px;padding:0 20px;border-radius:4px;font-size:14px;font-weight:500;margin-top:14px;transition:background-color .33s}
.rbtn-blue{background:var(--blue);color:#fff}.rbtn-blue:hover{background:var(--blue-h)}
.rbtn-blue[disabled]{opacity:.7;cursor:progress}
.rbtn-line{box-shadow:inset 0 0 0 1px var(--outline);color:var(--ink2);background:#fff}
.rbtn-line:hover{background:var(--soft)}
.rbtn-2nd{background:var(--card);color:var(--ink2)}
.rbtn-2nd:hover{background:var(--hover)}
.sum-links{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 22px;margin-top:14px;font-size:13px}
.sum-links button,.sum-links a{color:var(--ink2);text-decoration:underline;text-underline-offset:3px}

/* Option B (Nov 19 2026, mockup): no empty "Your plan code" box on a first visit; the real code card still shows once anything changes. */
.sum .code.wait{display:none}
