/* Shared by gscribe_about.html and gscribe_help.html. Same palette as the app
 * (css/editor.css, css/nav.css). */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font:
    17px/1.6 'Lato',
    Calibri,
    sans-serif;
}

/* top bar, like the app's */
header {
  display: flex;
  align-items: center;
  height: 49px;
  background: linear-gradient(to right, var(--header-start), var(--header-end));
  border-bottom: 1px solid var(--black);
}
header .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--black);
}
header .tile img {
  display: block;
  height: 40px;
}
header .word {
  display: block;
  height: 30px;
  margin-left: 14px;
}
header .title {
  margin-left: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
header .open {
  margin: 0 12px 0 auto;
  padding: 6px 14px;
  color: var(--gray-93);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--gray-93);
  border-radius: 17px;
}
header .open:hover {
  background: var(--wash-15);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
h1 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 700;
}
.lead {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 19px;
  font-weight: 300;
}

section {
  margin-bottom: 18px;
  padding: 18px 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--shadow-35);
}
h3 {
  margin: 18px 0 8px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}
h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
}
p {
  margin: 0 0 12px;
}
p:last-child {
  margin-bottom: 0;
}
ul {
  margin: 0;
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
li::marker {
  color: var(--green);
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}
.formula {
  display: block;
  margin: 4px 0 12px;
  padding: 8px 14px;
  color: var(--text-strong);
  font:
    15px/1.5 Menlo,
    Consolas,
    monospace;
  background: var(--gray-12);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  overflow-x: auto;
}
.note-pattern {
  color: var(--text-strong);
  font-family: Menlo, Consolas, monospace;
}
.people li span {
  color: var(--text-dim);
}
.credit {
  color: var(--text-dim);
}

@media (max-width: 520px) {
  header .title {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  section {
    padding: 16px 16px 18px;
  }
}

/* ---- help page extras ---- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 5px 13px;
  color: var(--gray-93);
  font-size: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.toc a:hover {
  background: var(--gray-27);
  text-decoration: none;
}
section[id] {
  scroll-margin-top: 16px;
}
h3 + p,
h3 + ul {
  margin-top: 0;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 7px;
  color: var(--text-strong);
  font:
    13px/1.5 Menlo,
    Consolas,
    monospace;
  text-align: center;
  background: var(--gray-12);
  border: 1px solid var(--gray-33);
  border-bottom-width: 2px;
  border-radius: 4px;
}
table {
  width: 100%;
  margin: 8px 0 12px;
  border-collapse: collapse;
}
th,
td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--black);
}
th {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-33);
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  color: var(--text-strong);
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
.tip {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: var(--gray-12);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}
.tip strong {
  color: var(--green);
}
.menu-path {
  color: var(--text-strong);
  font-weight: 700;
}
@media (max-width: 520px) {
  td:first-child {
    white-space: normal;
  }
}
