/* PATCH31: balanced forecasts, compact footer and educational tools. */
.market-link-chevron{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#todayForecast.forecast-spotlight,#todayForecast.forecast-spotlight .direction{animation:none;transform:none}
#todayForecast .hero-summary-row{grid-template-columns:minmax(88px,1fr) minmax(90px,1.25fr) minmax(102px,1fr);grid-template-rows:auto;gap:18px;direction:rtl;padding:16px 12px;min-height:100px;align-items:center}
#todayForecast .hero-summary-identity{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0}
#todayForecast .hero-summary-identity .asset-icon{width:30px;height:30px;flex:none}
#todayForecast .hero-summary-name{grid-area:auto;padding:0;min-width:0;text-align:right;direction:rtl}
#todayForecast .hero-summary-quote{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0}
#todayForecast .hero-summary-price{grid-area:auto;margin:0;align-self:stretch;justify-content:center;font-size:17px;white-space:nowrap;line-height:1.5}
#todayForecast .direction{grid-area:auto;align-self:stretch;min-width:0;margin:0;flex-direction:row}
#todayForecast .hero-summary-spark{display:block;grid-column:2;grid-row:1;width:100%;height:54px;padding:0;border:0;margin:0}
#todayForecast .weekly-price-chart{height:54px}
.learning-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.learning-card{display:flex;flex-direction:column;align-items:center;padding:26px 20px 20px;border:1px solid #dedfd9;border-top:2px solid #bca067;border-radius:22px;background:#fffefa;text-align:center;box-shadow:0 5px 18px #142c4206;gap:0}
.learning-card .learning-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 0 32px;border:1px solid #d6bdaa44;border-radius:50%;background:#f8ece9;position:relative;color:#af8c4f;flex:none}
.learning-card .learning-icon::after{content:'';position:absolute;top:calc(100% + 16px);left:calc(50% - 22px);width:44px;height:1px;background:#d8cab2}
.learning-card[href*="position-size"] .learning-icon{background:#ecf1f4;border-color:#b9ced955}.learning-card[href*="finance-excel"] .learning-icon{background:#f7f0df;border-color:#d5c49355}.learning-card[href*="performance"] .learning-icon{background:#edf3e9;border-color:#c3d4b955}
.learning-card .learning-icon svg{width:37px;height:37px;stroke-width:1.5}
.learning-card .learning-category{font-size:10px;line-height:1.8;margin:0 0 8px;color:#83919b}
.learning-card h3{font-size:16px;line-height:1.8;margin:0 0 10px}.learning-card p{font-size:12px;line-height:2;margin:0 0 22px;color:#6c7e89}
.learning-card .learning-action{align-self:stretch;justify-content:center;margin-top:auto;padding:9px 10px;min-height:40px;border:1px solid #d7d5cc;border-radius:10px;font-size:11px;background:#fffdf8}
.site-footer{padding-top:28px}.site-footer .footer-grid{grid-template-columns:1.25fr .85fr 1fr .9fr 1fr 90px!important;gap:18px;align-items:start;padding-bottom:22px}
.site-footer .footer-brand{grid-column:auto;min-width:0}.site-footer .footer-brand .brand img{width:32px;height:32px}.site-footer .footer-brand .brand{font-size:18px;gap:7px}
.site-footer .footer-brand p{font-size:10px;line-height:1.9;margin:10px 0 0;max-width:220px}.site-footer .footer-links h3{font-size:12px;margin:0 0 11px}
.site-footer .footer-links a,.site-footer .footer-links button{font:10px/1.9 Vazirmatn,sans-serif!important;margin:6px 0;padding:0}.site-footer .footer-links svg{width:14px;height:14px}
.site-footer .enamad-seal{grid-column:auto;align-self:start;width:90px;min-width:0;min-height:105px;padding:5px;border-radius:12px}.site-footer .enamad-seal img{width:78px;max-height:105px}
.site-footer .footer-bottom{padding-block:13px;margin-top:0;font-size:9px}
.finance-planning-link{display:flex;flex-direction:column;gap:5px;padding:13px 15px;margin:0 0 21px;border:1px solid #dccda8;border-radius:13px;background:#fbf7ec;color:#173952;text-decoration:none;line-height:1.9}.finance-planning-link strong{font-size:12px}.finance-planning-link span{font-size:10px;color:#697e8a}.finance-planning-link:hover{border-color:#aa884d;background:#f7efd9}
.allocation-list .asset-1,.allocation-bar .asset-1{background:#c6a154}.allocation-list .asset-3,.allocation-bar .asset-3{background:#6b9a90}.allocation-list .asset-5,.allocation-bar .asset-5{background:#ba7c65}
@media(min-width:761px) and (max-width:1100px){
 #todayForecast .hero-summary-row{grid-template-columns:minmax(65px,1fr) minmax(50px,.8fr) minmax(80px,1fr);gap:12px;padding:14px 10px}
 #todayForecast .hero-summary-identity{gap:5px}#todayForecast .hero-summary-identity .asset-icon{width:24px;height:24px}#todayForecast .hero-summary-price{font-size:14px}#todayForecast .hero-summary-name strong{font-size:10px}
 .site-footer .footer-grid{grid-template-columns:1.2fr 1fr 1fr!important;gap:22px 24px}.site-footer .enamad-seal{grid-column:3;grid-row:2}.learning-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #todayForecast .hero-summary-row{grid-template-columns:minmax(0,1fr) minmax(100px,1fr);grid-template-rows:auto 44px;gap:17px 18px;padding:14px 12px;min-height:150px}
 #todayForecast .hero-summary-identity{grid-column:1;grid-row:1;align-self:start;gap:8px;padding-top:3px}#todayForecast .hero-summary-identity .asset-icon{width:30px;height:30px}
 #todayForecast .hero-summary-quote{grid-column:2;grid-row:1;flex-direction:column-reverse;align-items:flex-start;direction:ltr;gap:9px}
 #todayForecast .hero-summary-price{align-self:flex-start;font-size:22px;justify-content:flex-start;gap:3px}#todayForecast .direction{align-self:flex-start;min-width:83px;direction:rtl;flex-direction:row;padding:4px 9px}
 #todayForecast .hero-summary-spark{grid-column:1/-1;grid-row:2;height:44px;margin:0}#todayForecast .weekly-price-chart{height:44px}
 .learning-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.learning-card{padding:20px 12px 14px;border-radius:18px}.learning-card .learning-icon{width:58px;height:58px;margin:0 0 27px}.learning-card .learning-icon svg{width:31px;height:31px}.learning-card .learning-icon::after{top:calc(100% + 13px);width:34px;left:calc(50% - 17px)}
 .learning-card .learning-category{font-size:9px;margin-bottom:6px}.learning-card h3{font-size:13px;margin-bottom:8px}.learning-card p{font-size:10px;margin-bottom:16px}.learning-card .learning-action{font-size:9px;padding:7px 5px;min-height:35px;align-self:stretch}
 .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 18px;padding-bottom:18px}.site-footer .footer-brand{grid-column:1;grid-row:1}.site-footer .enamad-seal{grid-column:2;grid-row:1;justify-self:start;align-self:center}.site-footer .footer-links h3{font-size:12px}.site-footer .footer-links a,.site-footer .footer-links button{font-size:10px!important}.site-footer .footer-bottom{gap:5px}
}
@media(max-width:360px){#todayForecast .hero-summary-row{gap:15px 12px;padding:12px 10px;grid-template-columns:minmax(0,1fr) minmax(96px,1fr)}#todayForecast .hero-summary-identity{gap:5px}#todayForecast .hero-summary-identity .asset-icon{width:26px;height:26px}#todayForecast .hero-summary-price{font-size:20px}.learning-card{padding-inline:9px}.learning-card h3{font-size:12px}.learning-card .learning-action{font-size:8px}}
.site-footer .footer-logo{font-size:25px;white-space:nowrap}.site-footer .site-risk-note{margin-top:0;margin-bottom:10px;font-size:10px}
.site-footer .footer-brand{display:block}.site-footer .footer-links a{display:flex;align-items:center;gap:7px}.allocation-list .asset-5,.allocation-bar .asset-5{background:#6f85ae}
@media(max-width:760px){.site-footer .footer-logo{font-size:clamp(20px,6vw,25px)}.site-footer .footer-brand p{max-width:100%}.site-footer .footer-links a{min-height:22px}}
