:root { color-scheme: light; font: 100%/1.6 system-ui, sans-serif; color: #281d2a; background: #fcf9f7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: #6b0080; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #1768a1; outline-offset: 3px; }
.skip { position: absolute; top: .5rem; left: .5rem; background: white; padding: .5rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid #ded3da; background: #fff; }
.masthead nav, main { max-width: 73rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.masthead nav, .topics { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.masthead nav { padding-block: .9rem; }
.masthead a:first-child { font-weight: 750; }
main { padding-block: clamp(2rem, 5vw, 4rem); }
h1, h2 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-block: .25em; letter-spacing: -.04em; }
h2 { font-size: 1.25rem; margin-top: 0; }
.revision { color: #644863; margin-block: 0 1rem; }
.lead { max-width: 55ch; font-size: 1.15rem; }
p { max-width: 75ch; }
.topics { margin-block: 1.25rem 2rem; }
#search { margin-block: 2rem; scroll-margin-top: 1rem; }
label { display: block; font-weight: 700; }
input { width: min(100%, 32rem); border: 1px solid #988597; border-radius: .4rem; padding: .6em; font: inherit; }
[role="status"]:empty { display: none; }
#search-results { list-style: none; padding: 0; max-width: 45rem; }
#search-results li { border-top: 1px solid #ded3da; padding: .5rem 0; }
#search-results small { display: block; color: #644863; }
.topic-grid, .opcode-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; align-items: start; }
.topic-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); }
.topic-grid section, .opcode-groups section { background: #fff; border: 1px solid #ded3da; border-radius: .6rem; padding: 1.25rem; }
.topic-grid ul { margin-bottom: 0; padding-inline-start: 1.25rem; }
#browse-docs > h2 { margin-top: 2rem; }
details { border-top: 1px solid #ded3da; padding-block: .65rem; }
summary { cursor: pointer; font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: .3rem .4rem; border-bottom: 1px solid #ded3da; }
tbody th { font-weight: 500; }
:target { scroll-margin-top: 1rem; }
tr:target { background: #f4e4f5; }
