/* Black on white, pink accent, Arial. No rust/orange. */
:root, .light, .rust, .coal, .navy, .ayu {
  --bg: #fff; --fg: #000; --links: #d01a57; --sidebar-bg: #fff; --sidebar-fg: #000;
  --sidebar-active: #d01a57; --sidebar-header-border-color: #f22468; --sidebar-spacer: #000; --sidebar-non-existant: #777; --quote-bg: #fafafa; --quote-border: #f22468;
  --table-border-color: #ddd; --table-header-bg: #fff; --table-alternate-bg: #fafafa; --inline-code-color: #000;
  --searchbar-border-color: #000; --theme-hover: #fde6ee; --icons: #000; --icons-hover: #f22468;
  --mono-font: Menlo, Consolas, monospace;
}
html, body, .sidebar, .menu-title { font-family: Arial, Helvetica, sans-serif; }
h1, h2, h3, h4, strong, b, th, .menu-title, .chapter li a strong { font-weight: normal; }
strong { color: #d01a57; }
.sidebar { border-right: 1px solid #000; }
table thead th { border-bottom: 2px solid #000; }
pre, code { border-radius: 0; }
/* Google Merchant origin badges: machine data is the pink one. */
.gmc { display: inline-block; font-family: var(--mono-font); font-size: .85em; padding: 0 .35em; margin: .1em 0;
  text-decoration: none; white-space: nowrap; }
a.gmc:hover { text-decoration: underline; }
.gmc.machine { color: #fff !important; background: #d01a57; border: 1px solid #d01a57; }
.gmc.authored { color: #000 !important; border: 1px solid #000; }
.gmc.none { color: #666 !important; border: 1px dashed #999; }
td code { white-space: nowrap; }
/* Tables use the full page width; prose and code stay in the readable column. */
.content main { max-width: none; }
.content main > :not(.table-wrapper):not(.wide):not(pre:has(> code.language-text)) { max-width: var(--content-max-width); margin-inline: 0; }
.table-wrapper { width: 100%; }
.table-wrapper table { width: 100%; }
/* Full-width tables leave no room for the side arrows: use the bottom prev/next links instead. */
.nav-wide-wrapper { display: none; }
.mobile-nav-chapters { display: block; }
table td, table thead th { padding: 6px 10px; }
.rule { display: inline-block; min-width: 28ch; }
.gmc.personal { color: #fff !important; background: #000; border: 1px solid #000; }
/* Diagrams use the full page width, like tables. */
.wide { width: 100%; margin: 1.5em 0; }
.wide img { display: block; width: 100%; height: auto; }
/* Text diagrams use the full page width too, and scroll only if the page is narrower than the diagram. */
.content main > pre:has(> code.language-text) { max-width: none; overflow-x: auto; }
/* One theme only: hide the picker, and a theme saved before it was hidden still renders black on white. */
#mdbook-theme-toggle, #mdbook-theme-list { display: none !important; }
html.rust, html.coal, html.navy, html.ayu { color-scheme: light; }
/* Pages that opt in with <div class="full-page"></div>: prose, code and tables all use the full width. */
.full-page { display: none; }
.content main:has(.full-page) > * { max-width: none; }
.content main:has(.full-page) pre { overflow-x: auto; }
