/* Small additions to mdBook's own theme. Colours come from mdBook's
   variables, so each of its light and dark themes still applies. */

/* A focus ring you can see on every link, button and field, in every theme. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--links);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links in body text are underlined, so they don't rely on colour alone. */
.content main a:not(.header) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Wide tables scroll inside themselves instead of widening the page. */
.content main table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* The version line at the bottom of each page. */
footer.bouncer-version {
  margin-top: 3em;
  padding-top: 0.75em;
  border-top: 1px solid var(--table-border-color);
  font-size: 0.875em;
  color: var(--fg);
  opacity: 0.85;
}

/* "Draft" and "status" notes: a bordered box with a text label, so the
   meaning doesn't depend on colour. */
.notice {
  margin: 1.25em 0;
  padding: 0.75em 1em;
  border: 1px solid var(--quote-border);
  border-left-width: 6px;
  background: var(--quote-bg);
  border-radius: 4px;
}
.notice > p:first-child { margin-top: 0; }
.notice > p:last-child { margin-bottom: 0; }

/* Keyboard-style labels for buttons and menu items in the apps. */
kbd {
  font-size: 0.9em;
  white-space: nowrap;
}
