/* Personal-finance tools only (first paycheck, Roth x3, rebalancer). Loaded from those five pages, not shared. */
.t-page .label a,.t-page .t-source a,.t-page .pf-src a{display:inline-flex;align-items:center;min-height:44px}
.pf-src{list-style:none;margin:8px 0 0;padding:0}
.pf-src li{margin:0}
.pf-src a{overflow-wrap:anywhere}
.pf-stamp{font-size:var(--fs-sm);color:var(--ink-2,inherit);margin:12px 0 0}
.pf-formula{font-family:"Geist Mono",ui-monospace,monospace;font-size:var(--fs-sm);line-height:1.6;background:var(--surface-2,transparent);border:1px solid var(--line,currentColor);border-radius:8px;padding:12px 14px;margin:12px 0;overflow-wrap:anywhere}
.pf-formula span{display:block}
.pf-err,.pf-warn{margin:6px 0 0;font-size:var(--fs-sm)}
.pf-err[hidden],.pf-warn[hidden]{display:none}
.pf-warn{color:var(--ink,inherit);font-weight:500}
.t-field input[aria-invalid=true],.t-field select[aria-invalid=true]{border-color:var(--neg);outline:2px solid var(--neg);outline-offset:1px}
.t-field input,.t-field select{min-height:44px}
.t-page a.pf-link{display:inline-flex;align-items:center;min-height:44px}

/* PW-385: checkbox rows on first-paycheck (#f-nyc) and roth-contribution (#f-50) match the PW-384 quiz row: 8px clear left of the box, 48px row, focus ring on the row. Id-scoped so no other tool changes. */
#nyc-field>label,.t-field>label:has(>#f-50){display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 8px;cursor:pointer}
#nyc-field>label:has(input:focus-visible),.t-field>label:has(>#f-50:focus-visible){outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-control)}
#nyc-field>.t-hint{padding-inline:8px}

/* PW-094: fold intro on phones */
.t-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--fairway);font-weight:600;font-size:15px}.t-more summary strong{font-weight:600}.t-more summary::before{content:"";flex:none;width:8px;height:8px;margin-right:12px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}.t-more[open] summary::before{transform:rotate(45deg)}.t-more p{margin:0 0 8px}
@media(max-width:640px){main>section.t-page>.sec-head:first-child:has(h1){padding-block:12px 4px;gap:8px;margin-bottom:0}main>section.t-page>.sec-head:first-child:has(h1) h1{font-size:clamp(30px,9vw,36px)}main>section.t-page>.sec-head:first-child:has(h1) .lead{font-size:16px;line-height:1.45}}
