@import url('fonts.css');


/* general style overrides */

html {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #f3f2f1;
}

body {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
}

@media (min-width: 768px) {
    article {
        padding-right: 25%;
    }
}

img {
    max-width:100%;
}

figcaption {
    text-align: center;
    font-size: 0.8rem;
}

.pull-quote {
    margin-left: 10px;
    font-style: italic;
}

.pull-right {
    text-align: right;
}

.narrative-image {
    object-fit: contain;
    display:block;
}

a {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    font-weight: bold
}

a :hover {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    font-weight: bold;
    color: #CB3564;
}

.small a {
    font-weight: normal
}

h1 {
    font-family: "Moderat-Extended-Bold", "Roboto", Arial, sans-serif !important;
    font-display: swap;
    color: #2e2d62;
    font-weight: 400;
    font-size: 3rem;
    margin-bottom: 50px !important;
    -webkit-font-smoothing: antialiased;
}

h2 {
    font-family: "Roboto", Arial, sans-serif;
    font-display: swap;
    color: #2e2d62;
    margin-bottom: 30px !important;
    font-size: 2.5rem;
    -webkit-font-smoothing: antialiased;
}

h3 {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    color: #2e2d62;
    margin-bottom: 30px !important;
    font-size: 2rem;
    -webkit-font-smoothing: antialiased;
}

p {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    color: #505050;
    margin-bottom: 20px !important;
    font-size: 1.2rem;
    line-height: 1.4;
}

ul {
    color: #505050;
    list-style-type: square;
}

li {
    color: #505050;
    margin-bottom: 5px;
}

/* Nav component */
@media (min-width: 992px) {
    nav {
        margin-bottom: 18px;
        border-bottom: None;
    }
}
@media (max-width: 991px) {
    nav {
        border-bottom: 4px solid #2E2D62
    }
}
.re-logo {
    max-height: 85px;
    min-height: 66px;
}
@media (max-width: 991px) {
    .re-logo {
        max-height: 48px;
    }
}

.nav-link {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    /* for some reason UKRI uses a slightly different colour on nav links */
    color: #232348;
    font-weight: 700;
    line-height: 21px;
    border-bottom: 3px solid white;
    -webkit-font-smoothing: antialiased;
}

.nav-link:hover {
    color: #2e2d62;
    border-bottom: 3px solid #2e2d62;
    border-radius: 0px;
}

.active-link {
    color: #CB3564;
}
.active-link:hover {
    color: #CB3564;
    border-bottom: 3px solid #CB3564;
    border-radius: 0px;
}

/* Responsive toggler component of navbar */

.navbar-toggler {
    right: 15px;
    border: 3px solid #2E2D62;
    background-color: #fff;
    padding: 5px;
    top: 10px;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.lines {
    background: #2E2D62;
    position: relative;
    top: -5px;
}

.lines-alt {
    top: -5px !important;
}

.lines, .lines:before, .lines:after {
    display: inline-block;
    width: 20px;
    height: 2px;
    border-radius: 5px;
    background-clip: padding-box;
}

.lines:before, .lines:after {
    background: #2E2D62;
    position: absolute;
    left: 0;
    content: '';
}

.lines:before {
    top: 6px;
}

.lines:after {
    top: -6px;
}

/* Footer component */

.footer {
    background-color: #2e2d62 !important;
    color: white;
    padding: 50px 0px 25px 0px;
    margin-top: 20px;
}

.footer-heading {
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 1px solid #b1b4b6;
}

.footer-link {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 5px;
}

.footer-link:hover {
    color: white;
}

.footer-line {
    margin-bottom: 20px;
    background-color: white;
}

.footer-heading {
    font-family: "Moderat-Bold", "Roboto", Arial, sans-serif;
    font-display: swap;
    color: white;
}


/* Contact details component */

@media (min-width: 992px) {
    .lead-contact {
        display: block;
        position: absolute;
        width: 245px;
        right: 20px;
        top: 600px;
        background-color: #2e2d62;
        color: white;
        padding: 10px;
    }

    .lead-contact * {
    color: white !important;
    }
}

.lead-contact a::before {
    content:"\A";
    white-space: pre;
}

.lead-contact a {
    color: white !important;
    word-break: break-all; /* Enable links to flow over several lines, e.g. email addresses */
}

/* Score component */

.score > * {
    padding-right: 1rem;
}

div.score, div.contact {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Banner component */

.banner {
    width: 100%;
    background-color: #A91B2E;
    margin-bottom: 30px;
    overflow: hidden;
}

.banner-container {
    background-image: url('/images/RE web banners Architecture banner DT.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 100%;
    min-height: 96px;
    height: auto;
}

.banner-container.notes {
    background-image: url('/images/RE web banners Archi 2 banner DT.jpg');

}

.banner-container.dashboard {
    background-image: url('/images/RE web banners Engine banner DT.jpg');

}
.banner-container.about {
    background-image: url('/images/RE web banners Nat Hist banner DT.jpg');
}

.banner-links {
    font-family: "Roboto", Arial, sans-serif !important;
    font-display: swap;
    background-color: #2e2d62;
    max-width: fit-content;
}

.banner-links > ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

.banner-link {
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    border-radius: 0px;
}

.banner-link:hover {
    color: white;
    border-bottom: 2px solid white;
    border-radius: 0px;
    text-decoration: none;
}

@media (min-width: 768px) {
     .banner-container {
         min-height: 150px;
    }
}

@media (min-width: 992px) {
    .banner-container {
        max-width: 100%;
        min-height: 190px;
        max-height: 190px;
        height: auto;
    }

    .banner-links {
        font-family: "Roboto", Arial, sans-serif !important;
        font-display: swap;
        float: right;
        background-color: #2e2d62;
        margin-right: 20px;
    }

    .banner-links > ul > li {
        display: inline;
        margin-right: 10px;
        margin-top: 8px;
        margin-bottom: 4px;
    }

    .banner-links > ul > li:last-child {
        margin-right: 0px;
    }
}
@media (min-width: 1940px) {
        .banner {
        width: auto;
    }
}

/* Tables */

table.supporting-data {
    margin-bottom: 10px;
    width: 100%;
}
.supporting-data th, td {
    padding: 10px;
    margin: 10px;
    border: 1px solid grey;
    vertical-align: top;
}

table.notes {
    text-align:center
}

/* Footnotes */
.footnotes * {
    font-size: 0.8rem;
}

img + em {
    display: block;
}

/* Table */
.table-pts { background-color: #00bed5}
.table-wb { background-color: #e355ec}
.table-rp { background-color: #16978a}
.table-cpd { background-color: #c13d33}
.table-ip { background-color: #ff9d1b}
.table-pce { background-color: lightgrey}
.table-lgr { background-color: lightgrey}
.table-wt { background-color: white}

/* Timeline */
.timeline {
    position: relative;
    width: auto;
    margin: 0 auto;
    margin-top: 0.5em;
    padding-bottom: 1em;
    padding-top: 1em;
    padding-left: 0;
    }

.timeline-header {
    text-align: center;
}

.timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 4px;
    height: 100%;
    margin-left: -3px;
    background: #d7e4ed;
    z-index: 5;
}

.dir-l, .dir-r{
    position: relative;
    width: 40%;
    padding: 1em;
    background: #fff;
    margin-top: 0;
    margin-bottom: 1.5em;
}

.timeline-icon{
	position: absolute;
    background-color: #A91B2E;
	border-radius: 50%;
	z-index: 10;
    width: 27px;
    height: 27px;
    left: 50%;
    margin-left: -15px;
    box-shadow:  0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0), 0 0 0 5px rgba(0, 0, 0, 0.15);
}

.timeline a{
	margin-left: .3em;
}

.timeline-l, .timeline-r {
    font-size: 0.8rem;
}

.timeline-l{
    display:block;
    width: 40%;
    float: left;
}

.timeline-l:before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    position: absolute;
    right: -.95em;
    top: 1em;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 15px solid #fff;
}

.timeline-r{
    display: block;
    width: 40%;
    float: right;
}

.timeline-r:before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    position: absolute;
    left: -.9em;
    top: 1em;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-right: 15px solid #fff;
}

.timeline-blocks{
    display: block;
    height: auto;
    padding: 1em 0;
    position: relative;
    overflow: hidden;
}


.timeline-blocks .timeline-date-l, .timeline-blocks .timeline-date-r{
    position: absolute;
    right: 60%;
}

.timeline-blocks .timeline-date-r{ left: 60%; right: auto;}

.timeline-blocks a:hover{ color: #4B878D; }

.sr-only-focusable:focus {
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: underline;
    padding: 5px;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    white-space: inherit !important;
    color: #fff !important;
    background-color: #CB3564 !important;
    box-shadow: none;
}

/* Alert */
.alert {
    font-size: 1.0rem;
    padding: 10px;
    padding-bottom: 20px;
    background-color: #f3f2f1;
    vertical-align: bottom;
}
.previous-narrative .alert {
    font-size: 1.2rem;
    border: 1px solid #A91B2E;
}
.previous-narrative .alert .note-badge{
     background-color: #A91B2E;
}

/* Hidden */
.hidden {
    display: none;
}

/* Archived */
.previous-narrative {
    z-index:1;
    position:relative;
    background-image: url('/kef/images/archived.png');
    background-repeat: repeat-y;
    background-opacity: 0.4;
}
.watermark
{
    display:None;
}

/* Survey */
.survey {
    font-size: 0.8rem;
    padding: 10px;
    padding-bottom: 20px;
    background-color: #f3f2f1;
    vertical-align: bottom;
}
.note-badge {
    padding: 5px;
    background-color: #2e2d62;
    color: white;
    margin: 0px 10px 10px 0px;
    float:left;
}

/* Accordion */
.transition, ol > li i:before, ol > li i:after, p h4 h5 ul table tbody tr th td br mjx-container {
  transition: all 0.25s ease-in-out;
}

.flipIn, ol > li {
  animation: flipdown 0.5s ease both;
}

.no-select, h3 {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

ol {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
}

ol > li {
  position: relative;
  padding: 0;
  margin: 0;
  padding-bottom: 4px;
  padding-top: 18px;
  border-top: 1px dotted #dce7eb;
}
ol > li {
  animation-delay: 0.5s;
}
ol > li:last-of-type {
  padding-bottom: 0;
}
ol > li h3 {
  text-transform: none;
  display: block;
  margin: 0;
  cursor: pointer;
  transition: .2s;
}

ol > li p {
  position: relative;
  overflow: hidden;
  max-height: 500px;
  will-change: max-height;
  contain: layout;
  display: inline-block;
  opacity: 1;
  transform: translate(0, 0);
  transition: .3s opacity, .6s max-height;
  z-index: 2;
}

ol > li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 16px;
  right: 0;
}
ol > li i:before, ol > li i:after {
  content: "";
  position: absolute;
  background-color: #ff6873;
  width: 3px;
  height: 9px;
}
ol > li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
ol > li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}
ol > li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
ol > li input[type=checkbox]:checked ~ :not(h3, input, i) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-height: 0;
  opacity: 0;
  display: block;
  transform: translate(0, 50%);
}
ol > li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
ol > li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}