/*
 * general.css
*/

:root {
  --link-colour: #08b;
  --visited-link-colour: purple;
  --oops-colour: red;
  --frame-colour: #ccc
}

body {
  margin-bottom: 2em; /* just to stop nav appearing in same place as address on Chrome */
}

* {
  font-family: Helvetica, Arial, sans-serif;
}

a, a text {
  text-decoration: none;
  color: var(--link-colour);
  fill: var(--link-colour); /* for SVG text */
}
a.small-link {
  font-size: x-small;
}

a:visited {
  color: var(--visited-link-colour);
}

td.number, th.number {
  text-align: right;
}

.oops {
  font-weight: bold;
  color: var(--oops-colour);;
  fill: var(--oops-colour); /* for SVG <text> elements */
}

.test {
  stroke-width: 1;
  stroke: purple;
  fill: pink;
  fill-opacity: 1;
}

.main-heading {
  font-size: 32px;
  font-weight: bold;
}
.sub-heading {
  font-size: 10px;
  font-weight: bold;
}

object {
  border: 1px solid var(--frame-colour);
  border-radius: 5px;
}


.chart-thumb-link {
  width: 180px;
  height: 100px;
  border: 1px solid var(--frame-colour);
  border-radius: 5px;
  display: inline-block;
  background-size: contain;
  margin: .5em;
  padding: .5em;
  vertical-align: middle;
  text-align: center;
}

.chart-thumb-link:hover {
  border: 1px solid var(--link-colour);
}

.chart-thumb-link:visited {
  border: 1px solid var(--visited-link-colour);
}



h2 {
  margin-top: 2em;
  margin-bottom: 0px;
}
h3 {
  margin-top: 1em;
  margin-bottom: 0px;
}

blockquote {
  font-style: oblique;
}


/* !important abuse below is a bit horrible, but not sure how to override
   default browser behaviour otherwise */
h2 a {
  color: inherit !important;
}
h2 a:hover {
  color: var(--link-colour) !important;
}
h2 a:hover:visited {
  color: var(--visited-link-colour) !important;
}


dl.colour-key {
  display: flex;
  flex-wrap: wrap; /* variant on flex-flow */
  justify-content: flex-start
}
dl.colour-key dt {
  display: inline;
  flex: 1 10%;
  margin: 0;
}
dl.colour-key dd {
  display: inline;
  flex: 1 90%;
  margin: 0;
}

.invisible {
  opacity: 0.0;
}
.visible {
  opacity: 1.0;
}

ol.no-numbering {
  list-style-type: circle;
}
/* end of general.css */



