/*
 * Additive styling for mandoc HTML5.
 * Keep the original OSKT styles loaded first, then restore the restrained
 * proportions and typographic hierarchy of the typeset manual pages here.
 */
.mandoc {
  box-sizing: border-box;
  color: #111;
  font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.36;
  margin: 0 auto;
  max-width: 58rem;
  overflow-wrap: normal;
  padding: 1.75rem 4.5rem 3rem;
}

.mandoc *,
.mandoc a,
.mandoc a:visited,
.mandoc em,
.mandoc strong,
.mandoc tt {
  color: inherit;
}

/* Running title and footer, matching the three-part troff page furniture. */
.mandoc table.head,
.mandoc table.foot {
  border-collapse: collapse;
  color: #111;
  font-size: 0.88rem;
  font-weight: normal;
  table-layout: fixed;
  width: 100%;
}

.mandoc table.head {
  margin: 0 0 2.25rem;
}

.mandoc table.foot {
  margin: 3rem 0 0;
}

.mandoc table.head td,
.mandoc table.foot td {
  padding: 0;
  width: 33.333%;
}

.mandoc .head-ltitle,
.mandoc .foot-left {
  text-align: left;
}

.mandoc .head-vol,
.mandoc .foot-date {
  text-align: center;
}

.mandoc .head-rtitle,
.mandoc .foot-os {
  text-align: right;
}

.mandoc .foot-os.foot-left {
  text-align: left;
}

/* The body hangs from compact, unruled section headings as in troff output. */
.mandoc .manual-text {
  font-family: inherit;
}

.mandoc section.Sh {
  margin: 1.9rem 0 0 1.55rem;
}

.mandoc section.Sh:first-child {
  margin-top: 0;
}

.mandoc h1.Sh {
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0;
  line-height: inherit;
  margin: 0 0 0.35rem -1.55rem;
  padding: 0;
}

.mandoc section.Ss {
  margin-left: 1.55rem;
}

.mandoc h2.Ss {
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  line-height: inherit;
  margin: 1.3rem 0 0.35rem -1.1rem;
  padding: 0;
}

.mandoc h1.Sh a,
.mandoc h2.Ss a {
  border: 0;
  color: inherit;
  text-decoration: none;
}

.mandoc h1.Sh a:hover,
.mandoc h2.Ss a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.mandoc .Pp {
  margin: 0.75rem 0;
}

/* mdoc semantic typography. */
.mandoc code,
.mandoc var {
  font-family: inherit;
}

.mandoc code.Nm,
.mandoc .Fl,
.mandoc .Cm,
.mandoc .Ic,
.mandoc code.In,
.mandoc .Fd,
.mandoc .Fn,
.mandoc .Cd,
.mandoc .Ms,
.mandoc .Sy {
  font-style: normal;
  font-weight: bold;
}

.mandoc .Ar,
.mandoc .Ad,
.mandoc .Fa,
.mandoc .Ft,
.mandoc .Pa,
.mandoc .Va,
.mandoc .Vt,
.mandoc .Em {
  font-style: italic;
  font-weight: normal;
}

.mandoc .Ev,
.mandoc .Dv,
.mandoc .Er,
.mandoc .Li {
  font-family: monospace;
  font-style: normal;
  font-weight: normal;
}

.mandoc .Nd,
.mandoc .Bf,
.mandoc .Op {
  display: inline;
}

.mandoc code.Fl {
  white-space: nowrap;
}

.mandoc a.Xr {
  text-decoration: underline;
  text-decoration-color: #777;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* Displays and synopsis lines use the same measured indents as typeset mdoc. */
.mandoc ul,
.mandoc ol,
.mandoc dl {
  margin-bottom: 0;
  margin-top: 0;
}

.mandoc .Bl-item,
.mandoc .Bl-dash {
  list-style: none;
  padding-left: 0;
}

.mandoc .Bl-bullet {
  padding-left: 1.25rem;
}

.mandoc .Bl-enum {
  padding-left: 2rem;
}

.mandoc .Bl-item > li,
.mandoc .Bl-dash > li,
.mandoc .Bl-bullet > li,
.mandoc .Bl-enum > li {
  margin-top: 0.65rem;
}

.mandoc .Bl-compact > li {
  margin-top: 0;
}

.mandoc .Bd,
.mandoc .Bd-indent {
  margin-left: 3.8rem;
}

.mandoc .Bl-diag > dt {
  font-weight: bold;
}

.mandoc .Bl-diag > dd,
.mandoc .Bl-inset > dd,
.mandoc .Bl-ohang > dd {
  margin-left: 0;
}

.mandoc .Bl-hang > dd {
  margin-left: 6.5rem;
}

.mandoc .Bl-tag {
  margin-left: 6.5rem;
  margin-top: 0.75rem;
}

.mandoc .Bl-tag > dt {
  float: left;
  margin-left: -6.5rem;
  padding-right: 0.75rem;
  vertical-align: top;
}

.mandoc .Bl-tag > dd {
  clear: right;
  margin: 0 0 0.85rem;
  width: 100%;
}

.mandoc .Bl-compact > dd {
  margin-bottom: 0;
}

.mandoc table {
  max-width: 100%;
}

.mandoc pre {
  font-family: monospace;
  line-height: 1.25;
  max-width: none;
  overflow: visible;
}

.mandoc table.Nm,
.mandoc table.Bl-column {
  border-collapse: collapse;
}

.mandoc table.Nm td,
.mandoc table.Bl-column td {
  padding: 0 0.45rem 0 0;
  vertical-align: top;
}

.mandoc table.Nm td:first-child {
  white-space: nowrap;
}

@media (max-width: 48rem) {
  .mandoc {
    font-size: 0.98rem;
    padding: 1rem 1.25rem 2rem;
  }

  .mandoc .head-vol,
  .mandoc .head-rtitle,
  .mandoc .foot-os {
    display: none;
  }

  .mandoc table.head td,
  .mandoc table.foot td {
    width: auto;
  }

  .mandoc section.Sh,
  .mandoc section.Ss {
    margin-left: 1rem;
  }

  .mandoc h1.Sh {
    margin-left: -1rem;
  }

  .mandoc h2.Ss {
    margin-left: -0.65rem;
  }

  .mandoc .Bd,
  .mandoc .Bd-indent {
    margin-left: 1.5rem;
  }

  .mandoc .Bl-tag,
  .mandoc .Bl-hang > dd {
    margin-left: 0;
  }

  .mandoc .Bl-tag > dt {
    float: none;
    margin: 0.85rem 0 0.15rem;
  }

  .mandoc .Bl-tag > dd {
    margin-bottom: 0.55rem;
  }
}

@media print {
  .mandoc {
    font-size: 10pt;
    max-width: none;
    padding: 0;
  }

  .mandoc a.Xr {
    text-decoration: none;
  }
}
