/* docs — a reader for long markdown on a phone first, a laptop second. */
body { font-family: system-ui, sans-serif; line-height: 1.5; max-width: 48rem;
       margin: 1rem auto; padding: 0 1rem; color: #222; background: #fff; }
header { padding: .5rem 0; border-bottom: 1px solid #ddd; margin-bottom: 1rem; }
h1, h2, h3 { line-height: 1.2; }
a { color: #0b5cad; }
.error { color: #b00; }

/* The page's contents list. Collapsed behind nothing: on a 4000-line spec the list
   IS the navigation, so it sits at the top where a phone lands. */
.toc { font-size: .9em; background: #f6f6f6; padding: .5rem 1rem; border-radius: .4rem; }
.toc ul { padding-left: 1.1rem; margin: .2rem 0; }

/* Long lines in tables and code must scroll inside themselves, never widen the page. */
table { border-collapse: collapse; display: block; overflow-x: auto; margin: 1rem 0; }
th, td { border: 1px solid #ddd; padding: .3rem .5rem; vertical-align: top; }
pre { overflow-x: auto; background: #f6f6f6; padding: .6rem; border-radius: .3rem; }
code { font-size: .9em; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }

/* A #R10.4 link lands here. Highlight it so the eye finds it among 97 others. */
li[id^="R"]:target { background: #fff6d6; outline: 2px solid #e0b000; }
li[id^="R"] { scroll-margin-top: 1rem; }

header .signout { display: inline; margin-left: .5rem; }
