:root { color-scheme: light dark; --accent: #2f6fdb; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; max-width: 62rem; margin: 0 auto; padding: 1rem; line-height: 1.55; }
header nav { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; padding-bottom: .5rem; border-bottom: 1px solid var(--border, #ccc); margin-bottom: 1rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; margin-top: 1.5rem; } h3 { font-size: 1rem; }
.badges { white-space: nowrap; }
.badge { display: inline-block; font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: var(--badge-bg, #e8e8e8); color: var(--badge-fg, #333); margin-left: .3rem; vertical-align: middle; }
.fullname { color: var(--muted, #666); }
table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
th, td { text-align: left; padding: .3rem .6rem; border-bottom: 1px solid var(--border, #ddd); vertical-align: top; }
ul.funcs { list-style: none; padding-left: 0; }
ul.funcs li { padding: .2rem 0; }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-size: .9em; }
details.derived { margin: .3rem 0; }
details.overloads { margin: .3rem 0 .3rem 2rem; }
details.derived summary, details.overloads summary { cursor: pointer; color: var(--accent); }
details.overloads code { display: block; padding: .15rem 0; }
ul.ns-list { columns: 3; column-gap: 2rem; }
ul.ns-list li { break-inside: avoid; overflow-wrap: anywhere; }
@media (max-width: 42rem) { ul.ns-list { columns: 1; } }
#search { width: 100%; padding: .5rem; font-size: 1rem; margin: .5rem 0; }
#results { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
#results .result { display: flex; gap: .6rem; align-items: baseline; text-decoration: none; padding: .3rem .5rem; border-radius: 4px; }
#results .result:hover, #results .result:focus { background: var(--hover, #eee); }
#results .rtype { font-size: .7rem; text-transform: uppercase; color: var(--muted, #666); min-width: 3.5rem; }
#results .rns { color: var(--muted, #666); margin-left: auto; font-size: .85rem; }
footer { margin-top: 3rem; border-top: 1px solid var(--border, #ccc); color: var(--muted, #666); font-size: .85rem; }
.version-switcher { position: fixed; bottom: 1rem; right: 1rem; }
.version-switcher select { padding: .3rem .5rem; border-radius: 4px; font-size: .85rem; }
