@import url("https://fonts.googleapis.com/css2?family=LXGW+WenKai+Mono+TC&display=swap");
/* What the book view needs beside the colours: the same reading measure and
   leading as the site, and the same look for a key. */
.content main { max-width: 46em; }
.content p, .content li { line-height: 1.8; }
kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  border: 1px solid var(--table-border-color);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--table-alternate-bg);
  font-size: 0.85em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Terminal cells in code blocks: see cells.js. */
pre .cell1,
pre .cell2 {
  display: inline-block;
  text-align: center;
  transform-origin: left center;
}
pre .cell1 { width: 1ch; }
pre .cell2 { width: 2ch; }
/* A frame of box lines is drawn at the terminal's line height, so `│` joins. */
pre.frame,
pre.frame code { line-height: 1.2; }
pre.cjk,
pre.cjk code {
  /* mdBook sets its code font with !important, so this one has to say it too. */
  font-family: "LXGW WenKai Mono TC", var(--mono-font, monospace) !important;
}

/* Keymap in the top bar (2026-10-30): a word, not an icon, because it is the
   one page a reader comes back to. */
.right-buttons .keymap-link {
  display: inline-block;
  margin: 0 0.6em;
  font-size: 0.9em;
  line-height: var(--menu-bar-height);
  color: var(--icons);
  text-decoration: none;
}
.right-buttons .keymap-link:hover {
  color: var(--icons-hover);
}
/* The switch to the site rendering, at the foot of the sidebar. */
.sidebar-scrollbox .twin {
  display: block;
  margin: 1.5em 0 1em;
  padding-inline-start: 1.5em;
  font-size: 0.85em;
  color: var(--sidebar-non-existant);
  text-decoration: none;
}
.sidebar-scrollbox .twin:hover {
  color: var(--sidebar-active);
}
