/* Shared section navigation for long reading pages. */
.ss-main .mg-reading-page{max-width:1240px;margin-inline:auto;width:100%;box-sizing:border-box}
.mg-reading-page>header{max-width:860px;margin-bottom:30px}
.mg-reading-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:start;margin-top:30px}
.mg-reading-sidebar{position:sticky;top:104px;max-height:calc(100dvh - 128px);overflow:auto;overscroll-behavior:contain;padding:20px 14px;border:1px solid var(--line,#90628255);border-radius:16px;background:var(--surface,#171019);scrollbar-width:thin;box-sizing:border-box}
.mg-reading-label{margin:0 10px 12px!important;font-size:12px!important;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--pink-ink,#f86bb3)!important;line-height:1.5!important}
.mg-reading-menu>summary{display:none}
.mg-reading-menu nav{display:grid;gap:4px;margin:0;padding:0}
.mg-reading-page .mg-reading-menu a{display:block;padding:10px 12px;border-radius:9px;border-inline-start:3px solid transparent;color:var(--text,#f7eff5);font-size:14px;font-weight:500;line-height:1.5;text-decoration:none;overflow-wrap:anywhere;transition:background-color 140ms ease,color 140ms ease}
.mg-reading-page .mg-reading-menu a:hover,.mg-reading-page .mg-reading-menu a[aria-current="location"]{color:var(--pink-ink,#f86bb3);background:var(--raised,#a75c8420);border-inline-start-color:var(--pink-ink,#f86bb3)}
.mg-reading-menu :is(a,summary):focus-visible{outline:2px solid var(--pink-ink,#f86bb3);outline-offset:2px}
.mg-reading-content{min-width:0;max-width:850px}
/* The site already reserves 90px through scroll-padding-top. */
.mg-reading-page .mg-reading-content section{scroll-margin-top:20px;overflow-wrap:break-word}
.mg-reading-content>section:first-child,.mg-reading-content>.mg-trust-body>section:first-child{padding-top:0}
.mg-reading-content>section:first-child>h2{margin-top:0}
.mg-reading-content :is(p,li){max-width:78ch}
.mg-reading-content>.mg-seo-help{margin-top:24px;border-top:1px solid var(--line,#90628255)}
html[data-theme=light] .mg-reading-sidebar{background:#fcf6fa;border-color:#d9bfce}
html[data-theme=light] .mg-reading-page .mg-reading-menu a{color:#432438}
html[data-theme=light] .mg-reading-page .mg-reading-menu a:hover,html[data-theme=light] .mg-reading-page .mg-reading-menu a[aria-current="location"]{background:#f3e1ec;color:#a70060}
@media(max-width:850px){
 .mg-reading-layout{grid-template-columns:minmax(0,1fr);gap:26px;margin-top:24px}
 .mg-reading-sidebar{position:static;max-height:none;padding:0;border-radius:12px;overflow:visible}
 .mg-reading-label{display:none}
 .mg-reading-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;padding:16px 18px;min-height:48px;box-sizing:border-box;color:var(--heading,#f7eff5);font-size:15px;font-weight:650}
 .mg-reading-menu>summary::-webkit-details-marker{display:none}
 .mg-reading-menu>summary::after{content:'+';font-size:22px;color:var(--pink-ink,#f86bb3)}
 .mg-reading-menu[open]>summary::after{content:'−'}
 .mg-reading-menu nav{padding:0 10px 12px}
 .mg-reading-page .mg-reading-menu a{min-height:44px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.mg-reading-page .mg-reading-menu a{transition:none}}
@media print{.mg-reading-sidebar{display:none}.mg-reading-layout{display:block}.mg-reading-content{max-width:none}}
