/* Shared editorial design tokens. Feature behaviour and financial colours stay local. */
:root{--mm-page-width:1336px;--mm-container:1336px;--mm-page-gutter:32px;--mm-ink:#173556;--mm-muted:#526783;--mm-blue:#2464cb;--mm-line:#d6e3f3;--mm-surface:#f5f8fe;--mm-radius:14px;--mm-ui-font:Inter,Arial,sans-serif}

/* Public page families: shared gutters, hierarchy and restrained introduction bands. */
body main:not(.portal-home){font-family:var(--mm-ui-font)}
body main:not(.portal-home) .container,body main.container:not(.portal-home){width:calc(100% - var(--mm-page-gutter)*2);max-width:var(--mm-page-width);margin-inline:auto;box-sizing:border-box}
body main:not(.portal-home) .container .container{width:100%;padding-inline:0}
body main:not(.portal-home) :is(h1,h2,h3,h4){font-family:var(--mm-ui-font);letter-spacing:-.025em}
body main:not(.portal-home) h1{font-size:clamp(28px,3.2vw,40px);font-weight:750;line-height:1.15;margin:8px 0 14px}
body main:not(.portal-home) h2{font-size:clamp(22px,2.2vw,28px);font-weight:700;line-height:1.25}
body main:not(.portal-home) h3{font-size:20px;font-weight:650;line-height:1.3}
body main:not(.portal-home)>header:not(.article-hero){padding-block:30px;margin-bottom:24px;min-height:0;background:linear-gradient(110deg,#f5f8fe,#fff);border-bottom:1px solid var(--mm-line);color:var(--mm-ink)}
body main:not(.portal-home)>header:not(.article-hero) :is(h1,h2,h3){color:var(--mm-ink)}
body main:not(.portal-home)>header:not(.article-hero) :is(p,small){color:var(--mm-muted);line-height:1.6}
body main:not(.portal-home)>header:not(.article-hero) h1{max-width:28ch}
body main:not(.portal-home)>header:not(.article-hero) .container{padding-block:0}
body main:not(.portal-home)>header:not(.article-hero) .eyebrow{font:750 12px/1.5 var(--mm-ui-font);letter-spacing:.1em;color:#255da4;margin:0 0 6px}
body main:not(.portal-home)>header:not(.article-hero) p{font-size:16px;max-width:72ch}
body main:not(.portal-home)>.portal-section{padding-block:22px}
body main:not(.portal-home) :is(.button,.support-form button){border-radius:7px;font-family:var(--mm-ui-font);font-size:14px;min-height:40px;box-shadow:none}
body main:not(.portal-home) :is(.button--primary,.support-form button){background:var(--mm-blue);color:#fff;border-color:var(--mm-blue)}
body main:not(.portal-home) .button--outline{background:#fff;color:#245ba6;border-color:#b7cfee}
body main :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #377edb;outline-offset:3px}

/* Utility, learning and research cards share the homepage's low-depth treatment. */
body main:not(.portal-home) :is(.tool-card,.tools-intro article,.editorial-card,.search-result-card,.pricing-card,.about-method,.about-audience article,.about-story aside,.funding-layer,.broker-guide-grid article,.broker-review-grid article,.content-clusters article,.trust-principles article,.earnings-activation-card,.earnings-workflow-grid article,.research-prepared,.ai-research-standards,.support-guidance,.not-found-card){border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:#fff;box-shadow:0 5px 18px #244b7808;padding:20px;color:var(--mm-ink)}
body main:not(.portal-home) :is(.tool-card,.editorial-card,.search-result-card,.pricing-card):hover{box-shadow:0 8px 20px #244b7810;border-color:#b7cfee}
body main:not(.portal-home) .tools-intro{gap:16px;margin-block:20px}
body main:not(.portal-home) .tools-intro article{padding:16px}
body main:not(.portal-home) .tools-intro article::after{display:none}
body main:not(.portal-home) .tool-card{min-height:0;padding:20px}
body main:not(.portal-home) .tool-card h3{font-size:20px}
body main:not(.portal-home) .decision-workspace-teaser{padding-block:18px;margin-block:20px;gap:20px}
body main:not(.portal-home) .about-hero__grid{gap:30px}
body main:not(.portal-home) .about-proof{margin-top:20px}
body main:not(.portal-home) :is(.about-story,.about-audience,.about-disclosures-section,.about-capabilities,.about-standards,.positioning-close){padding-block:28px}
body main:not(.portal-home) :is(.funding-page__content,.broker-content,.pricing-grid,.pricing-comparison,.pricing-faq,.trust-workflow,.support-layout,.content-clusters){margin-block:24px}

/* Calculators and private decision workflows retain their data grids and chart sizes. */
body main:not(.portal-home) :is(.simulator-controls,.risk-controls,.valuation-controls,.scenario-studio__controls,.simulator-chart-card,.risk-plan-card,.ruin-card,.r-table-card,.valuation-forecast-card,.valuation-sensitivity-card,.thesis-builder__source,.thesis-ledger,.review-source,.review-record,.followup-calendar-shell,.followup-preferences,.followup-scheduler,.followup-queue,.followup-history,.weekly-brief-section,.weekly-brief-summary,.notification-toolbar,.notification-empty,.decision-path-result,.preferences-shell){border-color:var(--mm-line);border-radius:var(--mm-radius);box-shadow:0 5px 18px #244b7808}
body main:not(.portal-home) :is(.simulator-layout,.risk-calculator-layout,.valuation-layout,.scenario-studio,.research-workspace-layout,.decision-path-workspace){gap:22px;margin-block:24px}
body main:not(.portal-home) :is(.simulator-controls,.risk-controls,.valuation-controls,.scenario-studio__controls){background:var(--mm-surface);padding:20px}
body main:not(.portal-home) :is(.simulator-controls,.risk-controls,.valuation-controls,.scenario-studio__controls,.support-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border:1px solid #bfd1e9;border-radius:7px;background:#fff;color:var(--mm-ink);font-family:var(--mm-ui-font);font-size:16px;max-width:100%}

/* Reading pages keep a narrower measure; do not stretch article or policy paragraphs. */
body main.article-page .article-hero{padding-block:28px;margin-block:0 24px;gap:28px;border-bottom:1px solid var(--mm-line)}
body main.article-page .article-hero__image{max-height:240px;object-fit:cover;border-radius:12px}
body main.article-page .article-dek{font-size:18px;line-height:1.6;color:var(--mm-muted)}
body main.article-page .article-body{min-width:0;font-size:17px;line-height:1.75}
body main.article-page .article-body :is(p,li){max-width:75ch}
body main.article-page .article-sidebar>div{border:1px solid var(--mm-line);border-radius:12px;background:var(--mm-surface);padding:18px;box-shadow:none}
body main .policy-copy{max-width:850px!important;font-size:17px;line-height:1.75;margin-block:28px}
body main .policy-copy h2{margin-top:28px}
body main.page-shell{padding-block:28px}
body main.page-shell .page-entry__heading{padding-bottom:18px;border-bottom:1px solid var(--mm-line);margin-bottom:22px}
body main.page-shell .page-entry__content{min-width:0}
body main .search-hero__inner{max-width:var(--mm-page-width)}
body main .not-found-card{max-width:760px;margin-block:40px}
body main.mm-investigation{width:calc(100% - var(--mm-page-gutter)*2);max-width:var(--mm-page-width);margin-inline:auto}

@media(max-width:760px){body main:not(.portal-home)>header:not(.article-hero){padding-block:24px;margin-bottom:18px}body main:not(.portal-home) .about-hero__grid{grid-template-columns:1fr}body main:not(.portal-home) :is(.simulator-layout,.risk-calculator-layout,.valuation-layout,.research-workspace-layout){grid-template-columns:1fr}body main.article-page .article-hero{grid-template-columns:1fr}body main.article-page .article-hero__image{max-height:180px}body main:not(.portal-home) :is(.simulator-controls,.risk-controls,.valuation-controls,.scenario-studio__controls){padding:16px}}

/* All homepage section edges use the same border box, including nested wrappers. */
body .portal-home :is(#markets-now,.home-ai-preview,.home-advertising){width:calc(100% - var(--mm-page-gutter)*2);max-width:var(--mm-page-width);padding-inline:0;margin-inline:auto;box-sizing:border-box}
body .portal-home .home-tools-group :is(.quick-value,.home-tools,.home-tool-extras){padding-inline:0}
body .portal-home .home-tools-group .quick-value{padding:20px 22px}
body .portal-home .editorial-heading,body .portal-home .audience-hubs{box-sizing:border-box}
body .portal-home .home-ai-preview .portal-section__head h2,body .portal-home #markets-now h2{font:700 26px/1.25 var(--mm-ui-font);color:var(--mm-ink)}
body .portal-home .home-ai-preview .portal-section__head{justify-content:space-between;gap:12px}
body .portal-home .home-ai-preview>details{padding:12px 16px;background:#fff}
body .portal-home .home-ai-preview .ai-insights{gap:14px;align-items:start}
body .portal-home .home-ai-preview .ai-insights>article{padding:16px;min-height:0;height:auto;border:1px solid var(--mm-line);border-radius:10px;background:var(--mm-surface);gap:12px}
body .portal-home .home-ai-preview .earnings-preview__intro{min-height:0}
body .portal-home .home-ai-preview .earnings-preview__steps{margin:12px 0;gap:6px}
body .portal-home .home-ai-preview .earnings-preview__steps>span{padding:8px;min-height:0}
body .portal-home .home-ai-preview .earnings-preview__footer{margin-top:12px;padding-top:12px;gap:12px}
body .portal-home .home-ai-preview .research-availability{padding:8px 10px;margin:10px 0;font-size:13px}
body .portal-home .home-ai-preview .research-entry__examples{margin:10px 0;gap:6px}
body .portal-home .home-ai-preview .research-entry__examples button{padding:6px 10px;min-height:32px;font-size:13px}
body .portal-home .home-ai-preview .ai-workspace-link{margin-top:10px}
body .portal-home .home-ai-preview h3{font:700 18px/1.3 var(--mm-ui-font);margin:0 0 8px;color:var(--mm-ink)}

/* Shorter first impression; keep the verified price chart and its disclosures. */
body .portal-home [data-mm-landing] .mm-landing{max-width:1400px;padding-inline:32px}
body .portal-home .landing-hero{padding-block:32px;gap:36px;grid-template-columns:1fr 1fr}
body .portal-home .mm-landing h1{font-size:clamp(34px,3.6vw,50px);line-height:1.08;margin:16px 0}
body .portal-home .landing-lead{font-size:16px;line-height:1.6}
body .portal-home .landing-actions{margin-top:18px}
body .portal-home .living-viewport{padding:18px;border-radius:14px;box-shadow:0 10px 28px #163c7017;background:linear-gradient(110deg,#245eba,#527add);border-color:#527add;color:#fff}
body .portal-home .living-viewport :is(.living-top,.living-heading small,.living-disclosure,.living-event small){color:#fff}
body .portal-home .living-viewport .living-heading h2{color:#fff}
body .portal-home .living-viewport .living-demo{background:#17355626;border-color:#ffffff66;color:#fff}
body .portal-home .living-viewport .living-chart text{fill:#fff}
body .portal-home .living-viewport .living-chart>g>path{stroke:#ffffff40}
body .portal-home .living-viewport .living-chart>path{stroke:#fff}
body .portal-home .living-viewport .living-event{background:#17355633;border-color:#ffffff66;color:#fff}
body .portal-home .living-viewport .living-event:hover{background:#17355655;border-color:#fff}
body .portal-home .living-viewport .living-event>span:first-child{color:#fff}
body .portal-home .living-viewport a:focus-visible{outline-color:#fff}
@media(forced-colors:active){body .portal-home .living-viewport .living-chart path{stroke:CanvasText}body .portal-home .living-viewport .living-chart text{fill:CanvasText}}
body .portal-home .living-heading{margin-top:16px}
body .portal-home .living-chart{height:170px;margin-top:12px}
body .portal-home .living-event{margin-top:12px;padding:10px;border-radius:8px}
body .portal-home .living-disclosure{margin-top:10px;font-size:12px}
@media(max-width:760px){:root{--mm-page-gutter:20px}body .portal-home [data-mm-landing]{min-height:1105px}body .portal-home [data-mm-landing] .mm-landing{padding-inline:20px}body .portal-home .landing-hero{grid-template-columns:1fr;gap:20px;padding-block:24px}body .portal-home .home-ai-preview .ai-insights{grid-template-columns:1fr}body .portal-home .home-ai-preview .earnings-preview__footer{flex-wrap:wrap}}
