:root {
  --ncsc-green: #76d2b6;
  --vmt-color-primary: var(--ncsc-green);
  --vmt-font-family: "RO Sans", Calibiri, sans-serif;
  --vmt-text-color: black;
  --vmt-text-gray-color: #696969;
  --vmt-border-color: #696969;
  --vmt-background-color: #ececec;
  --vmt-background-clear-color: white;
  --vmt-background-hover-color: #d6f1e9;
  --vmt-page-padding: 0.5rem;
  --vmt-title-bar-color: var(--vmt-color-primary);
  --vmt-link-color: #01689b;
  --vmt-max-width: 1024px;
}

@font-face {
  font-family: "RO Sans";
  font-weight: normal;
  font-style: normal;
  src:
    url("assets/RO-SansWebText-Regular.woff2") format("woff2"),
    url("assets/RO-SansWebText-Regular.woff") format("woff");
}
@font-face {
  font-family: "RO Sans";
  font-weight: normal;
  font-style: italic;
  src:
    url("assets/RO-SansWebText-Italic.woff2") format("woff2"),
    url("assets/RO-SansWebText-Italic.woff") format("woff");
}
@font-face {
  font-family: "RO Sans";
  font-weight: bold;
  font-style: normal;
  src:
    url("assets/RO-SansWebText-Bold.woff2") format("woff2"),
    url("assets/RO-SansWebText-Bold.woff") format("woff");
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--vmt-font-family);
  text-color: var(--vmt-text-color);
  background-color: var(--vmt-background-color);
}
body {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

* {
  box-sizing: border-box;
  line-height: 1.5em;
}

a,
a:active,
a:visited {
  color: var(--vmt-link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.5rem;
}
h2 {
  font-size: 1.2rem;
}

/** Header */
header {
  width: 100%;
}
header > * {
  width: 100%;
  display: flex;
  justify-content: center;
}
header > * > * {
  padding: 0 var(--vmt-page-padding);
  width: 100%;
  max-width: var(--vmt-max-width);
}
header #logo_container {
  background-color: var(--vmt-background-clear-color);
  height: 120px;
}
header #logo_container > * {
  display: flex;
  justify-content: center;
}
header #logo_container img {
  max-width: 100%;
  position: relative;
  left: 128px;
}
@media (max-width: 500px) {
  header #logo_container img {
    left: auto;
    width: 48px;
    object-fit: cover;
    object-position: left;
  }
}
header #title_bar {
  background-color: var(--vmt-title-bar-color);
  padding-top: 1rem;
  padding-bottom: 1rem;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}
header nav ul {
  list-style-type: none;
  display: flex;
}
header nav li.current a {
  color: var(--vmt-text-gray-color);
}
header nav li:not(:last-child)::after {
  color: var(--vmt-link-color);
  content: ">";
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

main {
  padding: var(--vmt-page-padding);
  width: 100%;
  max-width: var(--vmt-max-width);
}

main > section {
  border-radius: 2px;
  padding: 1rem;
  background-color: var(--vmt-background-clear-color);
  box-shadow: 0 0 2px #ddd;
  margin-bottom: 2em;
}
main > section > :first-child {
  margin-top: 0;
}
main > section > :last-child {
  margin-bottom: 0;
}

table.striped {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
table.striped tr th {
  text-align: left;
}

@media (min-width: 800px) {
  table.striped:not(.compact) td,
  table.striped:not(.compact) th {
    padding: 0.5rem;
  }
  table.striped.anchors td {
    padding: 0;
  }
  table.striped.anchors a {
    padding: 0.5rem;
  }
}

table.striped tr:nth-child(even) {
  background-color: #f2f2f2;
  border-radius: 2px;
}

table.striped tr:hover td,
table.striped tr:focus-within td {
  background: var(--vmt-background-hover-color);
  outline: none;
}

table.striped.anchors td > a,
table.striped.anchors td > a:hover,
table.striped.anchors td > a:visited {
  display: block;
  color: var(--vmt-text-color);
  text-decoration: none;
}

div.level {
  width: 50px;
  border-radius: 4px;
  padding: 2px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
div.level.low {
  background-color: #c2fbc2;
}
div.level.medium {
  background-color: #fae9c4;
}
div.level.high {
  background-color: #f0cac7;
}

article > dl,
article > section {
  display: grid;
  grid-template-columns: 140px auto;
  grid-gap: 0.5rem 1rem;
  margin-top: 1rem;
}
article > section > :last-child {
  margin-bottom: 0;
}
article > section h3 {
  text-align: right;
  color: var(--vmt-text-gray-color);
  font-weight: normal;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

article > dl {
  margin: 2rem 0;
}

article > dl dt {
  text-align: right;
  color: var(--vmt-text-gray-color);
}

article > dl dd {
  margin-left: 0;
  font-weight: bold;
}

article > section p {
  margin-top: 0;
}

article > section ul {
  list-style: inside;
  padding: 0;
  margin: 0 0.5em;
}

@media (max-width: 768px) {
  article > dl,
  article > section {
    display: block;
  }
  article > dl dt {
    margin-top: 1rem;
    display: block;
    text-align: left;
  }
  article section h3 {
    text-align: left;
  }
}

.popover {
  display: inline-block;
  position: relative;
}
.popover summary {
  border: 1px solid var(--vmt-border-color);
  padding: 1em;
  cursor: pointer;
}
.popover > :last-child {
  background-color: var(--vmt-background-clear-color);
  position: absolute;
  right: 0;
  border: 1px solid var(--vmt-border-color);
  padding: 1rem;
}

.cursor_pointer {
  cursor: pointer;
}

.pagination {
  display: flex;
  gap: 1em;
  margin: 0.5em;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}
.question-mark {
  margin-left: 0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ccc;
  font-size: 12px;
  cursor: pointer;
}

.tooltip-content {
  text-align: left;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 300px;
  background-color: #333;
  color: white;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  margin-bottom: 5px;
  z-index: 10;
}

.tooltip-container:hover .tooltip-content,
.question-mark:focus + .tooltip-content {
  display: block;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
