/* Scoped to the two ASP.NET documentation viewers and their same-origin reader. */
body.docs-enhanced,html[data-doc-reader]{--doc-bg:#fff;--doc-surface:#f2f6fc;--doc-text:#17263d;--doc-muted:#47576d;--doc-link:#1457b7;--doc-line:#ccd6e5;color-scheme:light}
html[data-theme=dark] body.docs-enhanced,html[data-doc-reader][data-theme=dark]{--doc-bg:#101a2a;--doc-surface:#19283e;--doc-text:#eff4fc;--doc-muted:#bfcee2;--doc-link:#a4c5ff;--doc-line:#43546f;color-scheme:dark}
body.docs-enhanced{background:var(--doc-bg);color:var(--doc-text)}
.docs-enhanced :is(header,aside,.reader-top){background:var(--doc-bg);color:var(--doc-text);border-color:var(--doc-line)}
.docs-enhanced main{background:var(--doc-surface);height:calc(100dvh - 76px)}
.docs-enhanced header{height:auto;min-height:76px;flex-wrap:wrap}
.docs-enhanced :is(a,header>a,aside .eyebrow){color:var(--doc-link)}
.docs-enhanced :is(aside>p,#doc-count){color:var(--doc-muted)}
.docs-enhanced input,.docs-enhanced #doc-theme{background:var(--doc-surface);color:var(--doc-text);border:1px solid var(--doc-line);border-radius:8px;font:inherit;padding:10px 12px}
.docs-enhanced #doc-theme{cursor:pointer;min-height:44px;white-space:nowrap}
.docs-enhanced input::placeholder{color:var(--doc-muted);opacity:1}
.docs-enhanced #doc-topics a{color:var(--doc-link)}
.docs-enhanced #doc-topics a[aria-current],.docs-enhanced #doc-topics a:hover{background:var(--doc-surface);color:var(--doc-link);text-decoration:underline}
.docs-enhanced .docs-resources{font-size:12px;line-height:1.7;border-block:1px solid var(--doc-line);padding:12px 0;margin-bottom:14px}
.docs-enhanced .docs-resources p{margin:0 0 8px}.docs-enhanced .docs-resources nav{display:flex;flex-wrap:wrap;gap:6px 12px}.docs-enhanced .docs-resources nav a{font-size:12px;text-decoration:underline}
.docs-enhanced :is(a,input,button,summary):focus-visible{outline:3px solid var(--doc-link);outline-offset:3px}
.docs-enhanced iframe{background:var(--doc-bg);border-color:var(--doc-line)}
.docs-enhanced .skip:focus{background:var(--doc-bg);color:var(--doc-link)}
html[data-doc-reader],html[data-doc-reader] body{background:var(--doc-bg)!important;color:var(--doc-text)!important}
html[data-doc-reader] body :is(div,span,p,li,td,th,h1,h2,h3,h4,h5,pre,code){background-color:transparent!important;color:var(--doc-text)!important}
html[data-doc-reader] body :is(#mainSection,#mainBody,#nstext,#scrollyes,#scrtext){background:var(--doc-bg)!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html[data-doc-reader] body a{color:var(--doc-link)!important;text-underline-offset:3px}
html[data-doc-reader] body table{max-width:100%!important;width:100%!important;border-color:var(--doc-line)!important}
html[data-doc-reader] body :is(td,th){white-space:normal!important;overflow-wrap:anywhere;border-color:var(--doc-line)!important}
html[data-doc-reader] body pre{background:var(--doc-surface)!important;padding:14px!important;border:1px solid var(--doc-line)!important;overflow:auto!important;max-width:100%!important;white-space:pre!important}
html[data-doc-reader] body img{max-width:100%;height:auto}
@media(max-width:760px){.docs-enhanced header{padding:14px 16px;gap:12px}.docs-enhanced header>nav{order:2;flex:0 0 100%;flex-wrap:wrap;gap:8px 18px}.docs-enhanced #doc-theme{margin-left:auto;font-size:13px}.docs-enhanced main{height:auto}.docs-enhanced aside{padding:16px}.docs-enhanced #doc-topics{max-height:180px}.docs-enhanced .reader{padding:12px;height:80dvh;min-height:480px}.docs-enhanced .reader-top{padding:12px;gap:8px}.docs-enhanced .docs-resources{margin-bottom:10px;padding:10px 0}}
