/* Global variables. */
:root {
  --sans-font: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Customized (light) theme */

  --bg: #fff;
  --accent-bg: #ECECEC;
  --text: #212121;
  --text-light: #585858;
  --border: #8EA6B5;
  --accent: #284B63;
  --accent-light: #8EA6B5;
  --code: #3C6E71;
  --preformatted: #353535;
  --marked: #ffdd33;
  --disabled: #efefef;
}

/* Customized dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #8EA6B5;
    --accent-light: #284B63;
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
}

:root {
  --sans-font: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  line-height: 1.8;
  font-weight: 400;
}

/* Body alternatives */
body.wide {
  grid-template-columns: 1fr min(80rem, 90%) 1fr;
}


/* Navigation */

header nav a.current {
  background-color: var(--accent);
  color: var(--accent-bg);
}

@media only screen and (max-width: 720px) {
  header nav a {
    display: block;
  }
}


/* Tables */

@media only screen and (max-width: 720px) {
  table td {
    display: block;
  }

  table.card td {
    width: 100% !important;
  }
}

/* Card like table with no header row and only a header column */
table.card td {
  vertical-align: top;
}

table.card td {
  border: none;
  width: 30%;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

table.card tr {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px dashed var(--border);
}

table.card tr:first-child {
  border-top: 1px solid var(--border);
}

table.card tr:last-child {
  border-bottom: 1px solid var(--border);
}

table.card tr td:first-child {
  background-color: var(--accent-bg);
  min-width: 40%;
  font-weight: bold;
}

table.card tr td:first-child::after {
  content: ":";
}

table.card span {
  margin-right: 1rem;
  font-weight: bolder;
}

table.card td p:first-child {
  margin-top: 0;
}

table.card td p:last-child {
  margin-bottom: 0;
}


/* Card gallery */

table.cardgallery td {
  border: none;
  text-align: center;
}