
.mg-header-inner{flex-wrap:wrap;gap:12px}.mg-header-inner>a:not(.mg-logo):not(.mg-panel-link){color:#fff;text-decoration:none;font-size:14px;margin-right:auto}
.mg-header-inner :is(button,a:where(.mg-panel-link)),footer :is(button,a:where(.mg-panel-link)),.mg-dialog :is(button,a:where(.mg-panel-link)),#notice-dismiss{font:inherit;min-height:44px;border:1px solid #88b8dc;border-radius:6px;background:#fff;color:#123552;padding:10px 14px;cursor:pointer}
.mg-header-inner :is(button,a:where(.mg-panel-link)){background:#174c75;color:#fff;border-color:#477da4}.mg-header-inner :is(button,a:where(.mg-panel-link)):hover{background:#226590}
:is(button,a:where(.mg-panel-link)):focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #00a5db;outline-offset:3px}
.mg-hero-copy{position:relative;z-index:2}.mg-hero-copy h1{overflow-wrap:break-word}.mg-reading{max-width:1280px;margin:0 auto}.mg-article{min-width:0;line-height:1.75}
.mg-article>h2{margin-top:40px;scroll-margin-top:110px}.mg-article p{margin:16px 0}.mg-article ul,.mg-article ol{padding-left:24px}.mg-toc>a{display:block;padding:9px 0;line-height:1.5}
.mg-article .mg-art{margin:28px 0;max-width:100%;background:#09253e;border-radius:10px;overflow:hidden}.mg-article .mg-art img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain}
.mg-article table{width:100%;table-layout:fixed;overflow-wrap:anywhere;border-collapse:collapse}.mg-article th,.mg-article td{padding:12px;text-align:left;border:1px solid #b9ccdc}
.mg-media{max-width:1240px;margin:0 auto;padding:20px;display:flex;flex-wrap:wrap;gap:12px}.mg-media-caption{font-size:13px;color:#425b70;border-left:3px solid #168ac3;padding:4px 12px}
footer.mg-footer{padding:32px max(20px,calc((100% - 1240px)/2));display:flex;flex-wrap:wrap;align-items:center;gap:18px}footer.mg-footer p{max-width:550px}footer.mg-footer>a:not(.mg-logo){color:#fff}
dialog :is(button,a:where(.mg-panel-link)){font:inherit;min-height:44px;padding:10px 14px;border-radius:5px}dialog label{line-height:1.5}dialog input[type=search]{font:inherit;min-height:44px;width:100%;padding:10px;border:1px solid #537994;border-radius:5px}
dialog nav,dialog div:has(>a[data-search-result]){display:grid;gap:6px}dialog a[data-search-result]{display:block;padding:12px;border-radius:5px;line-height:1.5;background:#edf4fa;color:#173c5c;text-decoration:none}dialog a[data-search-result]:hover{background:#dcecf7}dialog a[data-search-result][hidden]{display:none}
.mg-error{max-width:900px;margin:50px auto;padding:30px;min-height:40vh}.mg-error h1{font-size:clamp(28px,5vw,44px);line-height:1.2}
@media(max-width:900px){.mg-header-inner>a:not(.mg-logo):not(.mg-panel-link){display:none}.mg-header-inner{justify-content:space-between}.mg-toc{margin-bottom:24px}.mg-article{padding:26px}.mg-media{padding:16px}}
@media(max-width:640px){.mg-header-inner{gap:8px}.mg-header-inner :is(button,a:where(.mg-panel-link)){padding:9px 10px;font-size:13px}.mg-reading{padding:20px 16px}.mg-article{padding:20px}.mg-article .mg-art img{max-height:240px}.mg-toc{padding:16px}.mg-article th,.mg-article td{padding:10px}.mg-cookie-banner{max-height:35vh;overflow:auto}.mg-hero-copy{max-width:100%}.mg-hero-copy h1{font-size:30px}footer.mg-footer{display:grid;padding:24px 20px}}

/* Actual Chrome UI-05 correction: keep the notice readable without covering the page. */
.mg-cookie[hidden]{display:none!important}
@media(max-width:640px){.mg-cookie{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;max-height:40vh;overflow:auto;padding:14px 16px}.mg-cookie>strong,.mg-cookie>p{grid-column:1/-1;min-width:0;max-width:none;margin:0}.mg-cookie>p{font-size:14px;line-height:1.45}.mg-cookie>a{font-size:13px;line-height:1.4;min-height:44px;display:flex;align-items:center}.mg-cookie>:is(button,a:where(.mg-panel-link)){font-size:14px;min-height:44px}}

/* Wrapped headers also occur near tablet/desktop breakpoints. */
@media(max-width:1100px){.mg-article>h2{scroll-margin-top:170px}}

/* Honor the actual reading preference on the scrolling root, not only descendants. */
:root[data-reduce-motion="true"]{scroll-behavior:auto!important}
