/* Funding uses a stable server-rendered template; JavaScript only selects tabs. */
html:not([data-mm-funding-route]) .funding-tabs{display:none}
.funding-tabs [role="tab"]{background:var(--mm-lilac-light);color:var(--purple)}
html[data-mm-funding-route="study"] .funding-tabs [aria-controls="funding-study"],
html[data-mm-funding-route="work"] .funding-tabs [aria-controls="funding-work"],
html[data-mm-funding-route="pause"] .funding-tabs [aria-controls="funding-pause"]{background:var(--purple);color:var(--mm-c-cbc4b9,#cbc4b9)}
html[data-mm-funding-route="study"] .funding-panel:not([data-mm-funding-panel="study"]),
html[data-mm-funding-route="work"] .funding-panel:not([data-mm-funding-panel="work"]),
html[data-mm-funding-route="pause"] .funding-panel:not([data-mm-funding-panel="pause"]){display:none!important}
/* One route at a time, using the site's existing palette, gutters and controls. */
body:not(.mm-admin-page) main>.funding-options{background:var(--lilac);padding-top:var(--mm-section-top);padding-inline:var(--mm-page-x)}
.funding-options>.study-section-head{max-width:100%;margin-bottom:35px}
.funding-tabs{justify-content:flex-start;margin:0 0 45px;gap:10px}
.funding-tabs .testimonial-filter{min-width:100px}
.funding-tabs .testimonial-filter[aria-selected="false"]{background:var(--mm-lilac-light,var(--mm-c-d3bfd6,#d3bfd6))}
.funding-panel-viewport{min-width:0;overflow:visible;position:relative;isolation:isolate}
body:not(.mm-admin-page) .funding-options .funding-panel{display:flow-root;padding:0;background:transparent;min-width:0}
.funding-panel[hidden]{display:none!important}
.funding-panel>.study-section-head{margin-bottom:35px}
.funding-panel .study-steps{margin-bottom:50px}
.funding-panel .study-card{background:rgb(var(--mm-rgb-ffffff,255 255 255) / .3)}
.funding-panel .study-switch-guide{margin-top:0;grid-template-columns:minmax(0,1fr);gap:30px}
.funding-panel .study-switch-guide>.study-banner-copy{grid-column:1;padding-top:0!important}
.funding-panel .study-switch-guide>h3{grid-column:1}
/* Study already includes a), b), c) in the editable headings. */
#study-switch-provider .study-switch-instructions{padding-left:0;list-style:none}
#study-switch-provider .study-switch-instructions>li{padding-left:0}
.mm-funding-email-heading{margin:50px 0 25px;font-size:clamp(24px,2vw,32px);line-height:1.15}
.funding-panel .mm-funding-email{margin-top:25px}
.mm-funding-email>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none}
.mm-funding-email>summary::-webkit-details-marker{display:none}
.mm-funding-email>summary h3{margin:0}
.mm-funding-email>summary::after{content:'+';font-family:var(--mm-body-font);font-size:var(--body-copy-size);flex-shrink:0}
.mm-funding-email>summary[aria-expanded="true"]::after{content:'−'}
.mm-email-inner{display:flow-root;padding-top:30px}
.mm-email-reveal{min-height:0}
.funding-panel:focus-visible{outline:2px solid var(--mm-focus-colour,var(--purple));outline-offset:5px}
@media(max-width:800px){
 body:not(.mm-admin-page) main>.funding-options{padding-bottom:var(--mm-mobile-section-bottom,29px)}
 .funding-tabs{margin-bottom:30px;gap:10px}
 .funding-tabs .testimonial-filter{min-width:0;flex:1}
 .funding-panel .study-steps{margin-bottom:35px}
}
@media(prefers-reduced-motion:reduce){.funding-panel-viewport{scroll-behavior:auto}}
