:root {
  --simtab-ink: #263946;
  --simtab-slate: #405a73;
  --simtab-teal: #6a9f99;
  --simtab-orange: #c9783d;
  --simtab-mist: #f7f9f8;
  --simtab-rule: #d6dfdf;
}

body {
  color: var(--simtab-ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.navbar {
  border-bottom: 3px solid var(--simtab-teal);
  box-shadow: none;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.015em;
}

h1,
h2,
h3,
h4 {
  color: #31485b;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.contents h2,
#main h2 {
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--simtab-rule);
}

.contents h3,
#main h3 {
  margin-top: 1.8rem;
}

p,
li {
  max-width: 78ch;
}

a {
  text-underline-offset: 0.16em;
}

.contents a:not(.btn):not(.nav-link):hover,
#main a:not(.btn):not(.nav-link):hover {
  text-decoration-thickness: 2px;
}

pre {
  border: 1px solid var(--simtab-rule);
  border-left: 3px solid var(--simtab-teal);
  border-radius: 0.2rem;
  background: #f2f5f5;
}

code {
  font-size: 0.9em;
}

table {
  margin-top: 1.1rem;
  margin-bottom: 1.6rem;
}

.table > :not(caption) > * > * {
  padding: 0.65rem 0.75rem;
  border-color: var(--simtab-rule);
}

.table thead th {
  color: #2f4658;
  background: #edf2f1;
  border-bottom-color: var(--simtab-slate);
}

blockquote {
  color: #425967;
  border-left: 3px solid var(--simtab-teal);
  background: #f1f5f4;
  padding: 0.85rem 1rem;
}

details {
  margin: 1.2rem 0 1.8rem;
  border-top: 1px solid var(--simtab-rule);
  border-bottom: 1px solid var(--simtab-rule);
  padding: 0.7rem 0;
}

details summary {
  color: var(--simtab-slate);
  cursor: pointer;
  font-weight: 650;
}

.page-header {
  margin-bottom: 1.7rem;
}

.ref-index th,
.ref-index td {
  vertical-align: top;
}

.ref-index h2 {
  color: var(--simtab-slate);
}

.footer {
  border-top: 1px solid var(--simtab-rule);
}

:focus-visible {
  outline: 3px solid var(--simtab-orange);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
  }

  .contents h2,
  #main h2 {
    margin-top: 2rem;
  }

  #main > p:first-of-type img,
  #main > img[align="right"] {
    float: none !important;
    display: block;
    width: min(190px, 55vw);
    height: auto;
    margin: 0 auto 1.25rem;
  }

  pre {
    font-size: 0.82rem;
  }

  #main .sourceCode,
  #main pre,
  .flextable-shadow-host {
    max-width: 100%;
  }

  #main .sourceCode,
  .flextable-shadow-host {
    overflow-x: auto;
  }

  .template-article aside {
    display: none;
  }

  .table-responsive {
    border-bottom: 1px solid var(--simtab-rule);
  }
}
