/* September maintenance: scoped UI overrides. */
.mobile-nav{display:flex!important;flex-direction:column;max-height:0;opacity:0;visibility:hidden;overflow:hidden;padding-block:0!important;transform:translateY(-10px);transition:max-height .28s ease,opacity .2s ease,transform .28s ease,visibility .28s;pointer-events:none}
.mobile-nav.open{max-height:440px;opacity:1;visibility:visible;transform:translateY(0);padding-block:12px!important;pointer-events:auto}
@media(min-width:861px){.mobile-nav{display:none!important}}
.reader-sheet{backface-visibility:hidden;transform:translateZ(0);contain:layout paint;box-shadow:0 12px 36px #0003}
.reader-sheet.is-dragging,.reader-outgoing{will-change:transform}
.reader-scroll{scroll-behavior:auto;overflow-anchor:none}
@media(max-width:760px){.news-reader::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}.reader-sheet{box-shadow:none}}
.record-context{min-width:0;text-align:right;direction:rtl}.record-source-label{display:block;margin-bottom:12px}.record-state{display:flex;flex-direction:column;gap:8px;line-height:1.9!important;unicode-bidi:plaintext}.record-state>span{display:block}.record-window{font-size:13px;color:#52697a}.record-count{font-size:18px;font-weight:750;color:#092746}.record-updated{font-size:11px;color:#647888}.record-disclosure{font-size:11px!important;max-width:60ch}.direction-recorded{font-size:11px;color:#667989;line-height:1.9;margin:8px 0}.forecast-published{gap:12px}.forecast-published time{font-variant-numeric:tabular-nums}
.investment-duo{align-items:stretch}.growth-card,.portfolio-card{display:flex;flex-direction:column;height:100%}.portfolio-card .portfolio-contact{margin-top:auto;padding-top:18px}.growth-card .wealth-stage{flex:1;min-height:0;padding:20px 18px 18px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start}.growth-card #wealthCurve{height:auto;aspect-ratio:740/340;width:100%;margin:12px 0 0;display:block;flex-shrink:0}.growth-card #wealthTotal{font-size:clamp(30px,3.3vw,49px);margin:8px 0;position:relative;z-index:1}.growth-card .wealth-stats{margin-top:12px}.growth-card .wealth-assumption{margin-top:auto;padding-top:12px}.wealth-legend{justify-content:flex-start}.age-options{padding:0;margin:0;border:0;min-width:0}.age-options legend{font-size:11px;color:#536679;margin-bottom:8px}.age-radios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 5px}.age-radios label{display:flex;align-items:center;gap:5px;cursor:pointer;font-size:11px;color:#173d61;white-space:nowrap}.age-radios input,.planner-options input{accent-color:#092746;width:16px;height:16px;margin:0;flex-shrink:0}.age-options button{border:0;background:transparent;color:#506a7d;font:10px Vazirmatn;text-decoration:underline;cursor:pointer;margin-top:10px;padding:0}.planner-options{display:grid;gap:10px;margin:10px 0 17px}.planner-options label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.8;color:#526777}.planner-options input{margin-top:2px}.allocation-notes{border-top:1px solid #e0e5e9;margin-top:16px;padding-top:8px}.allocation-notes p,.allocation-sources{font-size:11px;line-height:1.9;color:#5c7082}.allocation-notes p{margin:8px 0}.allocation-sources{margin:15px 0}.allocation-sources summary{cursor:pointer;color:#173d61}.allocation-sources a{text-decoration:underline}.portfolio-result{min-height:0;padding-bottom:14px}.wealth-milestone{font-size:12px;color:#eed18a;line-height:1.8;min-height:0}.wealth-milestone:empty{display:none}.million-reached .wealth-milestone{animation:milestone-reveal .7s ease both}.million-reached #wealthTotal{animation:million-number 1s ease both}.million-reached .wealth-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 25%,#efd27b25 45%,transparent 65%);transform:translateX(-100%);animation:million-sweep 1.3s ease-out both}.million-reached #wealthDot{filter:drop-shadow(0 0 7px #f5d97e)}
@keyframes milestone-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes million-number{0%,100%{transform:scale(1)}45%{transform:scale(1.04);text-shadow:0 0 25px #e0b14277}}@keyframes million-sweep{to{transform:translateX(100%)}}
@media(max-width:760px){.growth-card,.portfolio-card{height:auto}.growth-card #wealthCurve{aspect-ratio:740/420;min-height:185px;margin-top:5px}.growth-time{grid-template-columns:1fr!important;gap:16px}.age-radios{grid-template-columns:repeat(3,1fr);gap:12px}.age-options legend{font-size:12px}.age-radios label{font-size:12px}.growth-card .wealth-stage{padding:18px 12px}.growth-card #wealthTotal{font-size:38px}.record-count{font-size:16px}.record-window{font-size:12px}.record-summary{gap:20px}.planner-options label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.mobile-nav,.million-reached #wealthTotal,.million-reached .wealth-milestone,.million-reached .wealth-stage::after{animation:none;transition:none}}

#wealthCurve text{font:15px Arial,sans-serif;fill:#b1c5d5}@media(max-width:760px){#wealthCurve text{font-size:23px}}
