/* Retirement Plan Desk pages (/retirement/ and its guides and 401(k) calculator).
   Builds on pay-2027.css, pay-audiences.css and pay-hris.css (plus pay-tools.css on the calculator).
   Theme variables with light fallbacks. Brand: navy #172d3c, copper #b75c37, cream #f6f4ed.
   Vesting chart colors were checked with the dataviz palette validator against the light (#ffffff) and dark (#182d3b) surfaces. */
:root{--ret-cliff:#1f6aa5;--ret-graded:#b75c37}
:root[data-pay-theme="dark"]{--ret-cliff:#3d8fd0;--ret-graded:#cf6a36}
@media(prefers-color-scheme:dark){:root:not([data-pay-theme]){--ret-cliff:#3d8fd0;--ret-graded:#cf6a36}}

.ret-crumbs{font-size:14px;margin:0 0 8px}.ret-crumbs a{color:inherit}
.st-partial{margin:12px 0;padding:9px 13px;border-radius:6px;border-left:4px solid var(--pay-color-warning-border,#d98b5f);background:var(--pay-color-warning-bg,#fff8ec);color:var(--pay-color-warning-text,#653a16)}
.ret-glance{list-style:none;padding:0;margin:8px 0 10px}.ret-glance li{padding:5px 0;border-top:1px solid var(--pay-color-border,#d3dad8)}
.ret-glance li:first-child{border-top:0}

/* Start-here paths */
.ret-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0}
.ret-paths>.tech-card{margin:0}
.ret-paths h2{margin:4px 0 8px;font:600 24px/1.3 Georgia,serif}
.ret-paths ol{padding-left:22px;margin:6px 0 0}.ret-paths li+li{margin-top:8px}

/* Yearly checklist */
.ret-checklist{list-style:none;counter-reset:ret;padding:0;margin:10px 0 6px}
.tech-card .ret-checklist{padding-left:0}.tech-card .ret-checklist li+li{margin-top:0}
.ret-checklist li{counter-increment:ret;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid var(--pay-color-border,#d3dad8);break-inside:avoid}
.ret-checklist li:before{content:counter(ret);display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--pay-color-accent,#b75c37);font-weight:800;font-size:14px;color:var(--pay-color-text,#172d3c)}

/* Tables */
.ret-limits tbody th{min-width:220px}
.ret-compare tbody th{min-width:140px}

/* Vesting illustration: a table with inline bars (the values are printed beside each bar) */
.ret-vest{margin:14px 0}
.ret-vest figcaption{margin:0 0 6px}
.ret-key{display:inline-flex;align-items:center;gap:6px;margin-right:12px;font-weight:700;color:var(--pay-color-text,#172d3c)}
.ret-key:before{content:"";width:14px;height:10px;border-radius:2px;background:var(--ret-cliff)}
.ret-key-graded:before{background:var(--ret-graded)}
.ret-vest-table{min-width:0;width:100%;max-width:640px;table-layout:fixed}
.ret-vest-table thead th{white-space:normal;vertical-align:bottom}.ret-vest-table thead th:first-child{width:24%}
.ret-vest-table td{white-space:nowrap}
.ret-track{display:inline-block;vertical-align:middle;width:calc(100% - 52px);height:12px;margin-right:8px;border-bottom:1px solid var(--pay-color-border,#d3dad8)}
.ret-bar{display:block;height:12px;border-radius:0 4px 4px 0}
.ret-bar-cliff{background:var(--ret-cliff)}.ret-bar-graded{background:var(--ret-graded)}
.ret-val{font-variant-numeric:tabular-nums;font-weight:650}

/* 401(k) calculator */
#rk-app[hidden],#rk-results [hidden],.rk-exports [hidden],#rk-tiers[hidden]{display:none}
.rk-tiers{grid-template-columns:repeat(3,minmax(0,1fr))}
.rk-h3{margin:22px 0 6px;font:600 1.15em/1.3 Georgia,serif}
.rk-keyfigs-wrap .pay-ref-table{min-width:0}
#rk-keyfigs td:nth-child(2){font-weight:700;white-space:normal}
.rk-details{margin:16px 0 6px;border:1px solid var(--pay-color-border,#d3dad8);border-radius:8px;padding:10px 14px}
.rk-details summary{cursor:pointer;font-weight:700}
.rk-details .pay-ref-wrap{margin-top:10px}
#rk-paychecks,#rk-projection{min-width:640px}
#rk-paychecks caption,#rk-projection caption{text-align:left;font-size:14px;padding-bottom:6px;caption-side:top;white-space:normal}
.rk-exports{margin-top:10px}
.rk-stamp{margin-top:14px}
#rk-callout h3{margin-top:0}

@media(max-width:760px){
 .ret-paths{grid-template-columns:1fr}
 .ret-limits tbody th,.ret-compare tbody th{min-width:0}
 .rk-tiers{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
}

@media print{
 .ret-bar{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .st-partial{border-color:#777;background:#fff;color:#000}
 html.rk-print main>*:not(#calculator){display:none!important}
 html.rk-print #calculator{border:0;padding:0;margin:0;box-shadow:none}
 html.rk-print #calculator>*:not(#rk-app){display:none!important}
 html.rk-print #rk-app>*:not(#rk-results){display:none!important}
 html.rk-print .tech-header,html.rk-print .tech-footer,html.rk-print .pay-site-topbar,html.rk-print .pay-site-sidebar{display:none!important}
 html.rk-print #rk-paychecks-wrap{display:none!important}
 html.rk-print #rk-results table{min-width:0;font-size:11px}
}

/* ---- Added for part 8 ret-recruit: /retirement/withdrawals-and-taxes/ (estimator) and /retirement/roth-catch-up/ (checker) ---- */
#wd-app[hidden],#rc-app[hidden],#wd-results [hidden],#rc-results [hidden],#wd-roth-group[hidden]{display:none}
.ret-tool-h3{margin:22px 0 6px;font:600 1.15em/1.3 Georgia,serif}
.ret-keyfigs .pay-ref-table{min-width:0}
#wd-keyfigs td:nth-child(2),#rc-keyfigs td:nth-child(2){font-weight:700;white-space:normal}
.rc-headline{font-size:clamp(22px,3vw,30px)}
.ret-examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ret-examples-set{grid-column:1/-1}
.ret-timeline tbody th{min-width:190px}
.ret-stamp{margin-top:14px}
.tech-note .ret-glance-text strong{font:inherit;font-weight:700}
@media print{
 html.wd-print main>*:not(#estimator),html.rc-print main>*:not(#checker){display:none!important}
 html.wd-print #estimator>*:not(#wd-app),html.rc-print #checker>*:not(#rc-app){display:none!important}
 html.wd-print #wd-app>*:not(#wd-results),html.rc-print #rc-app>*:not(#rc-results){display:none!important}
 html.wd-print #estimator,html.rc-print #checker{border:0;padding:0;margin:0;box-shadow:none}
 html.wd-print .tech-header,html.wd-print .tech-footer,html.wd-print .pay-site-topbar,html.wd-print .pay-site-sidebar,
 html.rc-print .tech-header,html.rc-print .tech-footer,html.rc-print .pay-site-topbar,html.rc-print .pay-site-sidebar{display:none!important}
}
