/* Garry's charts. Uses common.css from archsoc.com */


/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: normal;
  src: url('/fonts/open-sans-v40-latin-regular.woff2') format('woff2');
}

/* open-sans-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: normal;
  src: url('/fonts/open-sans-v40-latin-italic.woff2') format('woff2');
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: bold;
  src: url('/fonts/open-sans-v40-latin-700.woff2') format('woff2');
}

/* open-sans-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: bold;
  src: url('/fonts/open-sans-v40-latin-700italic.woff2') format('woff2');
}

/* eb-garamond-regular - latin */
@font-face {
  font-display: swap; /* Check https:<h2></h2>//developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/eb-garamond-v27-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* eb-garamond-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/eb-garamond-v27-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* eb-garamond-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: bold;
  src: url('/fonts/eb-garamond-v27-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* eb-garamond-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: bold;
  src: url('/fonts/eb-garamond-v27-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ==================== */
:root {
  --main-bg-colour: white;
  --body-bg-colour: white;
  --border-colour: #3300CC;
  --table-border-colour:#3300CC;
  --heading-colour: #3300CC;
  --link-colour: #0000CD;
  --link-colour-hover: #708090;
  --link-colour-visited: #99CC33;
  --footer-sidebar-colour:#808080;
  --body-font:"Open Sans";
  --heading-font:"EB Garamond";
}
/* ================= */
main {
  border: 1px solid var(--border-colour);
}

#TOC{
  border: 1px solid var(--border-colour);
}

body {
/* Note on font property;
Format is font-style font-variant font-weight font-size/line-height font-family
Mandatory: font-size and font-family
Prop font-size only takes one value, and must be used with line-height. Prop inherit does not work well
*/
  background: var(--body-bg-colour) scroll;
  font-family: var(--body-font), sans-serif;
  font-weight: normal;
line-height: 1.2em;
}

figcaption, footer p, #TOC, nav#generalinfo, nav#navinfo {
  font-family: var(--body-font);
}

footer{
  border: 1px solid var(--border-colour);
}

footer p {
  color: var(--footer-sidebar-colour);
  font-size: 0.8em;
  line-height: 1.5em;
}
main a:link{
color: var(--link-colour);
}

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

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

h1, h2, h3, h4 {
  color: var(--heading-colour);
  font-family: var(--heading-font), serif;
  font-weight: normal;
}
h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.6em;
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1em;
}
li {
line-height: 1.25em;
}
#navinfo::before {
/* Otherwise treated as inline */
  content: "Other Rooms in Dr Garry's Terrace";
  font-size: 1em;
  font-weight: bold;
}
#navinfo, #subinfo, #generalinfo, #relatedinfo {
  border: 1px solid var(--border-colour);
/*  color: black; */
  font-size: 1em;
  line-height: 1em;
}

nav#generalinfo{
  border: 1px solid var(--border-colour);
  color: black;
  font-size: 1em;
  line-height: 1.25em;
  margin-bottom: 1em;
  padding: 0.5em;
}

nav#navinfo {
  border: 1px solid var(--border-colour);
  color: black;
  font-size: 1em;
  line-height: 1.25em;
  padding:0.5em;
}