/* Variables
---------------------------------------- */
:root {
  --primary: var(--iaae-purple);
  --secondary: #D05700;
  --dark: #232742;
  --light: var(--lightergrey);
  --border: var(--grey);
  --color-text: var(--darkestgrey);
  --color-heading: var(--darkestgrey); 

  --darkestgrey: #505050;
  --darkgrey: #A0A0A0; 
  --darkergrey: #696969;
  --grey: #D3D3D3;
  --midgrey: #E8E8E8;
  --lightgrey:#f3f3f3;
  --lightergrey: #F8F8F8;
  --lightestgrey: #FCFCFC;

  
  --cadetblue: #5F9EA0;
  --burlywood: #DEB887;
  --tan: #D2B48C;
  --tan-light: #E8D9C5;
  --sienna: #A0522D;
  --green: #89AD32;
  --blue: #296194;


  --iaae-pink: #E5D5D6;
  --iaae-royal-purple: #7852A9;
  --iaae-purple: #736183;
  --iaae-orange: #F9855A;
  --iaae-green: #0F6564;
  --iaae-apple: #89AD32;
  --iaae-apple-light: #C6D69B;
  --iaae-light-red: #D66878;
  --iaae-red: #B94D5E;
  --iaae-oxfam-green: #61A534;

}



/* Default box sizing.
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*.field {margin: 0 !important;}*/

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* HTML and Body
---------------------------------------- */
html:focus-within {
  scroll-behavior: smooth;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  color: var(--color-text);
  font-family: Roboto, Oxygen, -apple-system, BlinkMacSystemFont, 'Segoe UI', Ubuntu, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
/* Regions
---------------------------------------- */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}
summary {
  display: list-item;
  cursor: pointer;
}
details {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
template,
[hidden] {
  display: none;
}

/* Typography
---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}
h1 {
  font-size: 1.2rem;
  /*text-align: center;*/
  letter-spacing: .1rem;
  color: white;
  text-transform: uppercase;
  /*font-variant: small-caps;*/
  font-weight: 300;
}
.page-node-type-publications_wp_external h1,
.page-type-publications-cwpe h1,
.page-type-publications-journals h1,
.page-type-keynes-fund-projects h1,
.page-type-keynes-fund-news h1 {
  text-align: left;
  font-size: 1.1rem;
  letter-spacing: inherit;
  font-weight: 200;
}
h2 {
  font-size: 1.5rem;
/*  padding-bottom: 10px;*/
  margin-bottom: 1rem;

}
h3 {
  font-size: 1rem;
  padding-bottom: 1rem;
}
h4 {
  font-size: .9rem;
  padding-bottom: 1rem;
}
h5 {
  font-size: .8rem;
}
h6 {
  font-size: .8rem;
}
p {
  margin: 0 0 1rem 0;
/*margin: 0;*/
}
b,
strong {
  font-weight: 700;
}
dfn,
cite {
  font-style: italic;
}
del {
  text-decoration: line-through;
}
small {
  font-size: 80%;
}
big {
  font-size: 125%;
}
em {
  font-style: normal;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: var(--iaae-royal-purple);
  font-weight: 400;
}
a:active,
a:focus {
  text-decoration: none;
  border: 0;
  outline: 0;
}
a:hover {
  color: var(--iaae-green);
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}
/* Typography-> code tags */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1rem;
}
kbd,
samp {
  display: inline-block;
  margin: 0;
  padding: 0 5px;
}
pre {
  overflow: auto;
  margin: 1rem 0;
  padding: 1rem;
  tab-size: 2;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
tt,
var {
  font-family: monospace, monospace;
  font-style: italic;
}
mark {
  background: var(--primary);
}
acronym[title], abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
abbr,
acronym {
  cursor: help;
}

/* Media
---------------------------------------- */
audio,
canvas,
progress,
video {
  vertical-align: baseline;
  max-width:100%;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
img,
picture,
svg {
  max-width: 100% !important;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-style: none;
  vertical-align: middle;
}
.main-wrapper img {
  border: 3px solid var(--grey);
  padding: 4px;
  border-radius: 5px;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border: 0;
}
.align-left {
  margin: 0 1rem 0 0;
}
.align-right {
  margin: 0 0 0 1rem;
}
.align-center {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
figcaption {
  padding: 4px;
  font-size: 0.8rem;
  text-align: center;
}
.image-field {
/*  margin: 0 0 1rem 0;*/
}

/* Form
---------------------------------------- */

/* Common HTML Elements
---------------------------------------- */
hr {
  background-color: var(--grey);
  clear: both;
  width: 100%;
  max-width: 100%;
  height: 1px;
  border: 0;
  margin-bottom: 20px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  overflow: visible;
}
address {
  margin: 0 0 1rem 0;
  font-style: italic;
}
/* Definition Lists */
dt {
  font-weight: 700;
}
dd {
  margin: 0 0 1.2rem 0;
}
blockquote p {
  margin-left: 2rem;
}
blockquote {
  position: relative;
  background-color: var(--lightestgrey);
/*  margin: 0 2rem 2rem 2rem;*/
  padding: 2rem 3rem;
  margin-bottom: 2rem;
}
blockquote:before {
  font-family:Arial;
  content: "\201C";
  color: var(--lightergrey);
  font-size: 4em;
  position: absolute;
  left: 25px;
  top:10px;
}
blockquote > :last-child {
  margin-bottom: 0;
}

blockquote::after{
  content: '';
}

blockquote span{
  display:block;
  color:#333333;
  font-style: normal;
  font-weight: bold;
  margin-top:1em;
}

/* List
---------------------------------------- */
 ul,
 ol {
   margin: 0;
   padding: 0 0 1rem 1rem;
 }
 [dir="rtl"] ul,
 [dir="rtl"] ol {
   padding: 0 1rem 0.25rem 0;
 }
 ol ol,
 ul ul {
   margin: 0;
   padding: 0 0 0.25rem 1rem;
 }
 [dir="rtl"] ol ol,
 [dir="rtl"] ul ul {
   padding: 0 1rem 0.25rem 0;
 }
 ul {
   list-style: disc;
 }
 li > ul,
 li > ol {
   margin-bottom: 0;
 }
 [dir="rtl"] ul,
 [dir="rtl"] ol {
   padding: 0 1rem 0.25rem 0;
 }
 li {
  /*list-style: none;*/
   /*padding: 4px 0 4px 10px;*/
   }
 }


/* Table
---------------------------------------- */
table {width: 100%;} /* not sure why this must be here, too, doesn't work below */


table {
  font-size: .8rem;
  width: 100%;
  margin-bottom: 1rem;
  border-spacing: 0;
  border-collapse: collapse;
}
th,
tr,
td {
  vertical-align: middle;
}
tr {
  border-top: 1px solid var(--midgrey);
}
thead {
  background-color: var(--grey);
  font-weight: bold;
}
th {
  margin: 0;
  padding: 5px 10px;
  text-align: left;
}
td {
  margin: 0;
  padding: 0 10px;
  border-right: 1px solid var(--grey);
  border-left: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}


/* Table even-odd colouring
---------------------------------------- */

table tr:nth-child(odd) td { 
  background-color: var(--lightergrey); 
}
table1 tr:nth-child(even) td { 
  background-color:#0000ff 
}
