/* Variables
---------------------------------------- */
:root {
  --primary: var(--link-blue);
  --secondary: #D05700;
  --dark: #232742;
  --light: var(--babyblue);
  --border: #D3D3D3;
  --color-text: var(--darkergrey);
  --color-heading: #505050; 

/*https://cssgradient.io/shades-of-blue/*/
  --kf-blue: #005DAB;
  --kf-blue-mid: #327DBB;
  --kf-blue-light: #72A0C1;
  --kf-blue-lighter: #7CB9E8;
  --kf-blue-lightest: #B1CDE5;
  --babyblue: #89CFF0;
  --babyblue-light: #C0E3F3;
  --babyblue-lightest: #EBF6FB;


  --darkgrey: #A0A0A0; 
  --darkergrey: #606060;
  --darkestgrey: #101010;
  --grey: #DCDCDC;
  --midgrey: #E8E8E8;
  --lightgrey:#f3f3f3;
  --lightergrey: #F8F8F8;
  --lightestgrey: #FCFCFC;

  --link-blue: #5D76A9;

  --redburn: #D05700;
}


/* Klaro -- Cookie Managment Overrides
---------------------------------------- */
.path-frontpage .field--name-field-kf-basic-paragraphs {
  max-height: 700px;
}
.klaro .context-notice {
  height: 300px;
}
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
  padding: .5em 1em 3em 1em;
}
.field--name-field-kf-event-videos,
.field--name-field-project-video {
  max-height: 450px;
}

/*.video-embed-field-provider-youtube {
  height: 200px;
}*/

/* 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: .85rem;
  font-weight: 300;
  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: 200;
  font-style: normal;
  line-height: 1.5;
}
h1 {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: .1rem;
  color: var(--color-text);
  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: 1rem;
  font-weight: 350;
/*  padding-bottom: 10px;*/
}
h3 {
  font-size: .9rem;
}
h4 {
  font-size: .8rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 1rem 0;
/*margin: 0;*/
}
b,
strong {
  font-weight: 500;
}
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(--primary);
  font-weight: 400;
}
a:active,
a:focus {
  text-decoration: none;
  border: 0;
  outline: 0;
}
a:hover {
  color: var(--secondary);
}
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: 1px solid var(--grey);
}
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
---------------------------------------- */
form {
  margin-bottom: 1rem;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.5;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
.button {
  display:inline-block;
}
.button,
button,
[type="button"],
[type="reset"],
[type="submit"] {
  position: relative;
  cursor: pointer;
  border: 0;
  padding: 6px 10px;
  line-height: 1.5;
  margin-right: 1rem;
  top: 22px;
  border-radius: 5px;
  border: 1px solid var(--grey);
  -webkit-appearance: button;
}
.sidebar-right .button,
.sidebar-right button {
  margin-right: 0;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 0;
}
button[disabled],
html input[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
input,
button,
textarea,
select {
  font: inherit;
}
input {
  line-height: normal;
}
input,
textarea {
  max-width: 100%;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--grey);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: 0;
}
textarea {
  width: 100%;
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  padding: 0;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
[type="file"] {
  cursor: pointer;
}
fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: block;
}
fieldset > :last-child {
  margin-bottom: 0;
}
legend {
/*  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;*/
}
optgroup {
  font-weight: bold;
}
select {
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--grey);
  border-radius: 5px;
}
label[for] {
  cursor: pointer;
}
/* Form */
.form-item {
/*  margin-bottom: 1rem;*/
}
.form-required:after {
  content: "*";
  display: inline-block;
  padding-left: 4px;
  color: red;
}
.form-item label {
  display: block;
}
label.option {
  display: inline;
  font-weight: normal;
}
::-webkit-input-placeholder {
  color: var(--border);
}
:-moz-placeholder {
  color: var(--border);
}
::-moz-placeholder {
  color: var(--border);
  opacity: 1;
}
:-ms-input-placeholder {
  color: var(--border);
}
.field--name-body input[type="text"],
.field--name-body input[type="email"],
.field--name-body input[type="url"],
.field--name-body input[type="password"],
.field--name-body input[type="search"],
.field--name-body textarea {
  display: block;
  margin-bottom: 0.8rem;
}
/* Common HTML Elements
---------------------------------------- */
hr {
  background-color: var(--babyblue-light);
  clear: both;
  width: 100%;
  max-width: 100%;
  height: 1px;
  border: 0;
  -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(--babyblue);
  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 {
   padding: 4px 0;
 }

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