/******************************************************************************
 * Digitaal Vlaanderen ReSpec base stylesheet
 ******************************************************************************/

:root {
  --text: #000000;
  --bg: #ffffff;
  --heading-text: #0055cc;
  --a-normal-text: #034575;
  --a-normal-underline: #707070;
  --a-visited-text: #034575;
  --a-visited-underline: #bbbbbb;
  --a-active-text: #c00000;
  --tocsidebar-bg: #f7f8f9;
  --tocsidebar-text: var(--text);
  --tocsidebar-shadow: rgba(0, 0, 0, 0.1);
  --tocsidebar-heading-text: #5a6872;
  --blockquote-border: #c0c0c0;
  --borderedblock-bg: rgba(0, 85, 204, 0.05);
  --issue-border: #e05252;
  --issue-bg: #fbe9e9;
  --issueheading-text: #831616;
  --example-border: #e0cb52;
  --example-bg: #fcfaee;
  --exampleheading-text: #574b0f;
  --note-border: #52a352;
  --note-bg: #e9fbe9;
  --noteheading-text: #1f6b1f;
  --def-border: #8ccbf2;
  --def-bg: #ddeeff;
  --datacell-border: #c0c0c0;
}

body {
  counter-reset: example figure issue;
  max-width: 50em;
  margin: 0 auto 4em;
  padding: 1.6em 1.5em 0 calc(26px + 1.5em);
  color: var(--text);
  background: var(--bg);
  font-family: sans-serif;
  line-height: 1.5;
  widows: 2;
  orphans: 2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

div.head {
  margin-bottom: 1em;
}

div.head h1 {
  margin: 0 0 0.1em;
  color: var(--heading-text);
  font-size: 220%;
  font-weight: 700;
}

div.head h2 {
  margin: 0 0 1.5em;
  color: var(--heading-text);
  font-size: 140%;
  font-weight: 400;
}

div.head hr {
  border: 0;
  border-top: 1px solid #cccccc;
}

.head > a.logo:first-child {
  float: right;
  margin: 0.4rem 0 0.2rem 1rem;
  border: 0;
  text-decoration: none;
}

.head .logo img {
  display: block;
  max-width: 18.75rem;
  height: auto;
}

p.copyright,
p.copyright small {
  font-size: small;
}

h1,
h2,
h3,
h4,
h5,
h6,
dt {
  page-break-after: avoid;
  page-break-inside: avoid;
  color: var(--heading-text);
  font-family: inherit;
  line-height: 1.2;
  hyphens: manual;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 3rem;
}

h1 {
  font-size: 170%;
}

h2 {
  font-size: 140%;
}

h3 {
  font-size: 120%;
}

h4,
dt {
  font-weight: 700;
}

h5 {
  font-style: italic;
}

h6 {
  font-variant: small-caps;
}

p {
  margin: 1em 0;
}

ul,
ol {
  margin-left: 0;
  padding-left: 2em;
}

li {
  margin: 0.25em 0 0.5em;
  padding: 0;
}

dl dd {
  margin: 0 0 0.5em 2em;
}

.head dd + dd {
  margin-top: -0.5em;
}

a[href] {
  color: var(--a-normal-text);
  text-decoration-color: var(--a-normal-underline);
  text-decoration-skip-ink: none;
}

a:visited {
  color: var(--a-visited-text);
  text-decoration-color: var(--a-visited-underline);
}

a[href]:focus,
a[href]:hover {
  text-decoration-thickness: 2px;
}

a[href]:active {
  color: var(--a-active-text);
  text-decoration-color: var(--a-active-text);
}

pre,
code,
samp {
  font-family: Menlo, Consolas, "DejaVu Sans Mono", Monaco, monospace;
  font-size: 0.9em;
  hyphens: none;
  text-align: left;
  text-transform: none;
  font-variant: normal;
}

pre {
  overflow: auto;
  margin: 1em 0;
  padding: 1em;
  border: 1px solid var(--datacell-border);
  border-radius: 0.25em;
  background: #f7f7f7;
}

pre code,
code code {
  font-size: 100%;
}

blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 0.5em solid var(--blockquote-border);
  background: var(--borderedblock-bg);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0.4em 0.6em;
  border: 1px solid var(--datacell-border);
  vertical-align: top;
}

th {
  font-weight: 700;
  text-align: left;
}

table.data,
table.simple {
  width: 100%;
  margin: 1em 0;
}

figure,
.figure {
  display: block;
  margin: 2em 0;
  text-align: center;
}

figcaption,
.caption {
  margin-top: 0.5em;
  font-style: italic;
}

.issue,
.note,
.example,
.advisement {
  margin: 1em 0;
  padding: 1em;
  border-left: 0.5em solid;
}

.issue {
  border-color: var(--issue-border);
  background: var(--issue-bg);
}

.note {
  border-color: var(--note-border);
  background: var(--note-bg);
}

.example {
  border-color: var(--example-border);
  background: var(--example-bg);
}

.issue-title,
.note-title,
.example-title,
.marker {
  display: block;
  font-weight: 700;
}

.issue-title {
  color: var(--issueheading-text);
}

.note-title {
  color: var(--noteheading-text);
}

.example-title {
  color: var(--exampleheading-text);
}

dfn {
  font-weight: 700;
}

.toc,
#toc ol {
  list-style: none;
}

#toc a {
  text-decoration: none;
}

#toc a:hover,
#toc a:focus {
  text-decoration: underline;
}

@media screen and (min-width: 78em) {
  body:not(.toc-inline) {
    margin: 0 4em;
    padding-left: 29em;
  }

  body:not(.toc-inline) #toc {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 23.5em;
    overflow: auto;
    padding: 0 1em 0 calc(1em + 26px);
    color: var(--tocsidebar-text);
    background-color: var(--tocsidebar-bg);
    box-shadow: -0.1em 0 0.25em var(--tocsidebar-shadow) inset;
  }

  body:not(.toc-inline) #toc h2 {
    margin-top: 0.8rem;
    color: var(--tocsidebar-heading-text);
    font-variant: all-small-caps;
    text-transform: lowercase;
  }
}

@media print {
  body {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #toc-nav {
    display: none;
  }
}
