*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
  -webkit-text-size-adjust: none;
}

html {
  /* Let body handle overflow-x */
}
body {
  overflow-x: hidden;
}

.legal b {
  font-weight: 500;
}

html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 62.5%;
}

:root {
  --page-gutter: clamp(1.8rem, 4.2vw, 10rem);
}

@media (min-width: 768px) and (max-width: 1023px) {
  html {
    font-size: 52.5%;
  }
}

body {
  margin: 0;
 background: #FFFFFF; /* f4f2ed F7f7f7 FEFEFE #F8F8F7;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  /* Keep elastic overscroll color separate from first-paint page color. */
  html {
    background-color: var(--mobile-elastic-bg-color, var(--eirene-overscroll-active-color, var(--eirene-header-nav-bg-solid, #ffffff)));
  }

  body {
    background: var(--mobile-initial-bg-color, var(--mobile-elastic-bg-color, var(--eirene-overscroll-active-color, var(--eirene-header-nav-bg-solid, #ffffff))));
  }

  body.dark-theme {
    background: var(--mobile-initial-bg-color, var(--eirene-overscroll-active-color, #050505));
  }

  body:not(.dark-theme) .site-wrapper {
    background-color: #ffffff;
  }
}

.site-wrapper {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .site-wrapper {
    padding: 0rem;
  }
}

.site-body-wrapper {
  display: flex;
  flex-direction: column;
  padding-top: 1px;
  flex: 1 0 auto;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ------- */
/* Headers */
/* -------- */

h1, h2, h3, h4, h5 {
  margin: 0;
}

@media only screen  {
  .legal h1, .legal h2, .legal h3 {
    color: #6095c1;
  }
  
  .legal h3 {
    margin-top: 2.8rem;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .legal h3 {
    margin-top: 3.6rem;
  }
}

h1 br {
  display: none;
}

h1 {
  font-family: 'sh-new-regular', -apple-system, 'Source Sans Pro', sans-serif;
  font-weight: 300;
  font-size: 4.0rem;
  line-height: 1.15;
  letter-spacing: 0.01rem;
  color: rgb(33, 36, 43);
}

@media (min-width: 768px) {
  h1 {
    font-size: 6.0rem;
    line-height: 1.13;
  }
  
  h1 br {
    display: block;
  }
}

h2,
h2 a {
  font-family: 'Lato','Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.31;
  letter-spacing: 0.02rem;
  color: #0365bf;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.6rem;
    line-height: 1.2;
  }
}

h2 a:hover {
  text-decoration: underline;
}

p + h2,
ul + h2,
ol + h2,
.table-wrapper + h1,
.table-wrapper + h2,
.table-wrapper + h3,
.table-wrapper + h4,
p + h1,
ul + h1,
ol + h1,
.table-wrapper + h1 {
  margin-top: 7.5rem;
}


h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.35;
  letter-spacing: 0.02rem;
}

@media screen and (min-width: 768px) {
  h3 {
    font-size: 2.3rem;
    font-size: 2.1rem;
    line-height: 1.38;
  }
}

h4 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.64;
  color: #404041;
}

ul + h4 {
  margin-top: 2.6rem;
}

@media (min-width: 768px) {
  ul + h4 {
    margin-top: 3.1rem;
  }
}

p + h4,
h2 + h4 {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  h4 {
    font-size: 2.0rem;
    line-height: 1.7;
  }

  p + h4,
  h2 + h4 {
    margin-top: 3rem;
  }
}

h5 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.23;
}

@media (min-width: 768px) {
  h5 {
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 1.29;
  }
}

.printThisPage[_content-c7] {
  margin: 0 24px 0 0;
  background: url(./Print.svg) no-repeat 0 0;
  background-size: 16px 16px;
  font-size: 16px;
  padding: 0 0 0 16px;
  line-height: 1em;
  text-decoration: none;
  display: inline-block;
  float: left;
}

p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 'Roboto', 'Junge', 'Merriweather', sans-serif; */
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.65;
  margin-bottom: 0;
  margin-top: 1.3rem;
  color: #404041;
  text-rendering: optimizeLegibility;
}


.legal p {
  font-size: 1.35rem;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  /* background-color: rgb(255, 255, 255, 0.5); */
  color: #333;
  font-style:normal
}

p.notes {
  padding: 10px 0 0;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  color: rgb(77, 77, 77);
  font-style:normal;
  background-color: transparent;
}

@media (min-width: 768px) {
  p {
    font-size: 2.0rem;
    line-height: 1.7;
    margin-top: 3rem;
  }
}

h4 + p,
p:first-child {
    margin-top: 0;
    text-align: justify;
}

h2 + p,
h3 + p,
.section__header h2 + p {
  margin-top: 1.2rem;
}

@media (min-width: 768px) {
  h2 + p,
  h3 + p,
  .section__header h2 + p {
    margin-top: 1.8rem;
  }
}

.section__header + p {
  margin-top: 1.6rem;
}

@media (min-width: 768px) {
  .legal {
    --legal-text-offset: clamp(3.2rem, 3.9vw, 8.4rem);
    --legal-bookmark-width: clamp(2.4rem, 3.2vw, 3.8rem);
    --legal-bookmark-edge-gap: clamp(1.2rem, 2.0vw, 3.0rem);
    margin-left: var(--legal-text-offset);
  }

  .legal .page-header__description {
    position: relative;
  }

  .legal p {
     margin-top: 0.4em;
     margin-bottom: 1em;
  }
}

@media only screen and (max-width: 767px) {
  .bookmark {
      display:none
  }
}

.bookmark {
  box-sizing: border-box;
  position: fixed;
  top: 33.333vh;
  left: calc(var(--legal-bookmark-edge-gap, 1.2rem) + (var(--legal-bookmark-width, 3.2rem) / 2));
  width: var(--legal-bookmark-width, 3.2rem);
  transform: translateY(-50%);
  overflow: visible;
  z-index: 1;
  opacity: 0.8;
}

.bookmark--text {
  font-size: 1.5rem;
  word-spacing: 8px;
  font-weight: 400;
  height: 1.5em;
  left: 0.2rem;
  line-height: 1.5;
  white-space: nowrap;
  position: absolute;
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transform: rotate(90deg);
  transform:rotate(90deg)
}



.bookmark--text:after {
  background-image: url(slashes.svg);
  background-position: 0 75%;
  background-repeat: no-repeat;
  background-size: 100%;
  content: "";
  display: block;
  height: 1em;
  left: calc(100% + 2rem);
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width:5em
}

figcaption {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3333333;
  max-width: 84rem;
  font-weight: 300;
  margin-top: 1.3rem;
}

@media (min-width: 768px) {
  figcaption {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-top: 3rem;
  }
}

.sans-small {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3333333;
}

@media (min-width: 768px) {
  .sans-small {
    font-size: 1.6rem;
    line-height: 1.5;
  }
}

.caption {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3333333;
  max-width: 84rem;
  margin-top: 1.3rem;
  display: block;
}

@media (min-width: 768px) {
  .caption {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-top: 3rem;
  }
}

.title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.3rem;
  line-height: 1.69;
  text-transform: uppercase;
}

.bibtex {
  padding-top: 0 !important;
}

.bibtex .card {
  max-width: 71rem;
  margin-top: 0 !important;
}

.bibtex__title,
.bibtex__content p {
  font-family: 'Source Code Pro', sans-serif;
  font-size: 1.0rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

strong {
  font-weight: 600;
}

a {
  color: #27AAE1;
  cursor: pointer;
  /*position: relative;*/
  text-decoration: none;
  display: inline-block;
}

p + a {
  margin-top: 2.5rem;
}

p a { 
  display: inline;
  -webkit-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
}

p a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  p a { 
    display: inline;
  }
}

img {
  display: inline-block;
  border: 0;
}

p.title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6923076923076923;
  letter-spacing: 0.1rem;
  color: #404041;
  margin: 0;
}

@media (min-width: 768px) {
  p.title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6923076923076923;
    letter-spacing: 0.1rem;
    color: #404041;
    margin: 0;
  }
}

/* ---------------- */
/* Full width image */
/* ---------------- */

.image--full-width {
  max-width: 100%;
  display: block;
}

h2 + .image--full-width {
  margin-top: 2.5rem;
}

p + .image--full-width {
  margin-top: 2.5rem;
}

.button-2 + .image--full-width {
  margin-top: 3rem;
}

.page-header + .image--full-width,
.authors + .image--full-width {
  margin-top: 4rem;
}

@media (min-width: 768px) {
  
  h2 + .image--full-width {
    margin-top: 3.75rem;
  }

  p + .image--full-width {
    margin-top: 3rem;
  }

  .page-header + .image--full-width,
  .authors + .image--full-width {
    margin-top: 6.85rem;
  }
}

.container-wrapper .image--full-width:first-child {
  margin-top: -2.3rem;
}

.author-inline + .image--full-width {
  margin-top: 3.6rem;
}

.image--full-width + .image--full-width {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .image--full-width + .image--full-width {
    margin-top: 4.1rem;
  }
}

/* ---------------- */
/*  Elements        */
/* ---------------- */

button {
  cursor: pointer;
}

@media (max-width: 1024px) {
  a,
  button {
    outline: none;
  }
}

.site-wrapper ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .site-wrapper ul {
    padding: 0 0 0 1.1rem;
  }
}

h4 + ul {
  margin-top: 1.4rem;
}

.site-wrapper p + ul {
  margin-top: 2.2rem;
}

@media (max-width: 768px) {
  .site-wrapper p + ul {
    margin-top: 3rem;
  }
}

.site-wrapper li {
  font-size: 1.35rem;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  background-color: rgb(255, 255, 255, 0.5);
  color: #333;
  font-style:normal;
}

.site-wrapper li:first-child {
  margin-top: 0;
}

.site-wrapper ul li:before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 0;
  background: #404041;
  width: 3px;
  height: 3px;
  border-radius: 100%;
}

@media (min-width: 768px) {
  .site-wrapper li {
    font-size: 1.35rem;
    margin-left: 1em;
  }
}

.list__title,
.filter__title {
  color: #0365BF;
  font-size: 1.8rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

/* --------- */
/* Container */
/* --------- */

.container-wrapper {
  padding: 4.8rem 0;
}

@media (min-width: 768px) {
  .container-wrapper {
    padding: 8rem 0;
  }
}

.container-wrapper--white {
  background: #fff;
}

.container-wrapper--blue {
  background: #0D1A41;
}

.container-wrapper--blue p,
.container-wrapper--blue h2 {
  color: #fff;
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 128.0rem;
  padding: 0 var(--page-gutter);
}

@media (min-width: 768px) {
  .container {
    margin: 0 auto;
    max-width: 114.6rem;
    padding: 0 var(--page-gutter);
  }
}

@media only screen and (min-width: 1280px) {
  .container {
    max-width: 144.6rem;
    padding: 0 var(--page-gutter);
  }
}

/* ------------- */
/* Header Images */
/* ------------- */

/* About in the press */
.background-image--about-in-the-press {
  background: url('../images/headers/mobile/about-in-the-press-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--about-in-the-press {
    background-image: url('../images/headers/desktop/about-in-the-press.png');
    background-size: 2400px auto;
  }
}

/* About overview */
.background-image--about-overview {
  background: url('../images/headers/mobile/about-overview-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--about-overview {
    background-image: url('../images/headers/desktop/about-overview.png');
    background-size: 2400px auto;
  }
}

/* Blog news */
.background-image--blog-news {
  background: url('../images/headers/mobile/blog-news-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--blog-news {
    background-image: url('../images/headers/desktop/blog-news.png');
    background-size: 2400px auto;
  }
}

/* Blog overview */
.background-image--blog-overview {
  background: url('../images/headers/mobile/blog-overview-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--blog-overview {
    background-image: url('../images/headers/desktop/blog-overview.png');
    background-size: 2400px auto;
  }
}

/* Blog research blog */
.background-image--blog-research {
  background: url('../images/headers/mobile/blog-research-blog-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--blog-research {
    background-image: url('../images/headers/desktop/blog-research-blog.png');
    background-size: 2400px auto;
  }
}

/* Careers fellowships */
.background-image--careers-fellowships {
  background: url('../images/headers/mobile/careers-fellowships-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--careers-fellowships {
    background-image: url('../images/headers/desktop/careers-fellowships.png');
    background-size: 2400px auto;
  }
}

/* Careers mitacs */
.background-image--careers-mitacs {
  background: url('../images/headers/mobile/careers-mitacs-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--careers-mitacs {
    background-image: url('../images/headers/desktop/careers-mitacs.png');
    background-size: 2400px auto;
  }
}

/* Careers overview */
.background-image--careers-overview {
  background: url('../images/headers/mobile/careers-overviews-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--careers-overview {
    background-image: url('../images/headers/desktop/careers-overviews.png');
    background-size: 2400px auto;
  }
}

/* Publications */
.background-image--publications {
  background: url('../images/headers/mobile/publications-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--publications {
    background-image: url('../images/headers/desktop/publications.png');
    background-size: 2400px auto;
  }
}

/* Research applied research */
.background-image--research-applied-research {
  background: url('../images/headers/mobile/research-applied-research-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--research-applied-research {
    background-image: url('../images/headers/desktop/research-applied-research.png');
    background-size: 2400px auto;
  }
}

/* Research fundamental research */
.background-image--research-fundamental-research {
  background: url('../images/headers/mobile/research-fundamental-research-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--research-fundamental-research {
    background-image: url('../images/headers/desktop/research-fundamental-research.png');
    background-size: 2400px auto;
  }
}

/* Research overview */
.background-image--research-overview {
  background: url('../images/headers/mobile/research-overview-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--research-overview {
    background-image: url('../images/headers/desktop/research-overview.png');
    background-size: 2400px auto;
  }
}

/* Team */
.background-image--team {
  background: url('../images/headers/mobile/team-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--team {
    background-image: url('../images/headers/desktop/team.png');
    background-size: 2400px auto;
  }
}

/* Video interview series */
.background-image--video-interview-series {
  background: url('../images/headers/mobile/video-interview-series-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--video-interview-series {
    background-image: url('../images/headers/desktop/video-interview-series.png');
    background-size: 2400px auto;
  }
}

/* Video lecture series */
.background-image--video-lecture-series {
  background: url('../images/headers/mobile/video-lecture-series-mobile.png') top center no-repeat;
  background-size: 500px auto;
}

@media (min-width: 768px) {
  .background-image--video-lecture-series {
    background-image: url('../images/headers/desktop/video-lecture-series.png');
    background-size: 2400px auto;
  }
}

/* -------------- */
/* Section styles */
/* -------------- */

.section {
  padding: 4.4rem 0;
  position: relative;
}

.page-header + .section {
  padding-top: 4rem;
  /* padding-bottom: 5.5rem; */
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
  
  .page-header + .section {
    padding-top: 7rem;
  }
}

.col-2__item .section:first-child {
  padding-top: 0;
}

.section--no-divider {
  padding: 3rem 0;
}

.section--no-divider:last-child {
  padding: 3rem 0;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .section--no-divider {
    padding: 4.6rem 0;
  }
}

@media (min-width: 768px) {
  .image--full-width + .section--no-divider,
  .section--table + .section {
    padding: 6.8rem 0 3.4rem;
  }
}

.section:first-child {
  margin-top: 0;
}

.section:before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 0.2rem;
  background-image: -webkit-gradient(linear, left top, right top, from(#2cacd1), color-stop(57%, #0365bf), to(#0d1a41));
  background-image: -webkit-linear-gradient(left, #2cacd1, #0365bf 57%, #0d1a41);
  background-image: -o-linear-gradient(left, #2cacd1, #0365bf 57%, #0d1a41);
  background-image: linear-gradient(to right, #2cacd1, #0365bf 57%, #0d1a41);
}

@media (min-width: 768px) {
  .section:last-child {
    padding-bottom: 3.25rem;
  }

  .section .section:last-child {
    padding-bottom: 0;
  }
}

.section:after {
  content: '';
  position: absolute;
  top: -7px;
  right: 0;
  width: 12px;
  height: 12px;
  border: solid 2px #0d1a41;
  border-radius: 100%;
  background: #F8F8F7;
}

.section:first-of-type:before,
.section:first-of-type:after,
.section--no-divider:before,
.section--no-divider:after {
  display: none;
}

.section__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 2.7rem;
  margin-top: -0.7rem;
}

@media (min-width: 768px) {
  .section__header {
    margin-bottom: 4.2rem;
    margin-top: -1rem;
  }
}

.section__header h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2857142857142858;
  letter-spacing: 0.01000000014901161rem;
  color: #0365bf;
}

@media (min-width: 768px) {
  .section__header h2 {
    font-size: 3rem;
    line-height: 1.2666666666666666;
    letter-spacing: 0.02357143rem;
  }
}

.col-2__item .section__header {
  margin-bottom: 0;
}

.page-header + .section--heading,
.section--heading {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .page-header + .section--heading,
  .section--heading {
    padding-bottom: 0;
  }
}

/* ------------- */
/* Video wrapper */
/* ------------- */

.video-wrapper {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------- */
/* Global Flickity styles */
/* ---------------------- */

.flickity-page-dots {
    position: static;
    bottom: auto;
    top: calc(100% + 3rem);
    left: 0;
    width: auto;
    height: 0.8rem;
  }

  @media (min-width: 768px) {
    .flickity-page-dots {
      position: absolute;
      margin: 0;
    }
  }

  .flickity-page-dots .dot {
    margin: 0;
    width: 0.8rem;
    height: 0.8rem;
    background: #d9edf4;
    opacity: 1;
    margin-left: 10px;
    -webkit-transition: background 0.2s;
    -o-transition: background 0.2s;
    transition: background 0.2s;
    padding: 0;
  }

  .flickity-page-dots .dot:before {
    display: none;
  }

  .flickity-page-dots .dot:first-child {
    margin-left: 0;
  }

  .flickity-page-dots .dot.is-selected {
    background: #1fabe0;
  }

  /*------------------*/
  /* Side bars styles */
  /*------------------*/

  .authors {
		margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
		.authors {
			margin-top: 0;
			text-align: right;
		}
	}

  .authors__heading {
    font-family: 'Source Sans Pro', sans-serif;
		font-size: 1.5rem;
		font-weight: 400;
  }

  @media (min-width: 768px) {
		.authors__heading {
			font-size: 1.6rem;
		}
	}

	.authors-list {
		list-style: none;
    padding: 0;
    margin-top: 1.2rem
	}

  .authors-list__link {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.9rem;
  }

  a.authors-list__link:hover {
    text-decoration: underline;
  }

	@media (min-width: 768px) {
		.authors-list__link {
      font-size: 2.1rem;
		}
  }
  
  .author-inline {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6153846153846154;
    letter-spacing: 0.1rem;
    color: #404041;
    text-transform: uppercase;
  }

  .author-inline a {
    color: #27aae1;
  }

  .page-header + .author-inline {
    margin-top: 2rem;
  }

  /*---------------------*/
  /* Divided link styles */
  /*---------------------*/

  .card-authors + .divided-links {
    margin-top: auto;
    padding-top: 4.5rem;
  }

  @media (min-width: 768px) {
    .card-authors + .divided-links {
      padding-top: 2.9rem;
    }
  }

  .divided-links__item {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    text-decoration: none;
    position: relative;
    padding-right: 12px;
    margin-right: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .divided-links__item:last-child {
    margin-right: 0;
    padding-right: 0;
  }

  .divided-links__item:last-child:after {
    display: none;
  }

  .divided-links__item:hover {
    text-decoration: underline;
  }

  @media (min-width: 768px) {
    .divided-links__item {
      font-size: 2.1rem;
    }
  }

  .divided-links__item:after {
    width: 1px;
    height: 70%;
    background: #ffc127;
    color: #FFC20E;
    font-weight: 300;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    content: '';
  }

  .divided-links__item:last-child::after {
    content: '';
    margin: 0;
  }

  /* ------------- */
  /* Small sidebar */
  /* ------------- */

  .small_sidebar {
    margin-top: 2.5rem;
  }

  @media (min-width: 768px) {
    .small_sidebar {
      margin-top: 0;
    }
  }

  .small_sidebar__item {
    margin-top: 2.5rem;
  }

  .small_sidebar__item:first-child {
    margin-top: 0;
  }
  
  @media (min-width: 768px) {
    .small_sidebar__item {
      margin-top: 4rem;
    }
  }

  .small_sidebar_header {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 2.3rem;
    line-height: 1.35;
    letter-spacing: 0.02rem;
  }

  @media (min-width: 768px){
    .small_sidebar_header {
      font-size: 2.1rem;
      line-height: 1.38;
    }
  }

  .small_sidebar__item a {
    margin-top: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.6rem;
  }

  .small_sidebar__item a:hover {
    text-decoration: underline;
  }

  @media (min-width: 768px) {
    .small_sidebar__item a {
      margin-top: 1rem;
    }
  }
  
/* ------------ */
/* Sidebar icon */
/* ------------ */

.sidebar-icon {
  display: none;
}

@media (min-width: 768px) {
  .sidebar-icon {
    display: block;
  }
}

.sidebar-icon img {
  max-width: 100px;
}

/* ------- */
/* Sitemap */
/* ------- */

.sitemap-list {
  margin-left: 0;
  padding-left: 0;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

.sitemap-list > li {
  border-top: 1px dotted lightgrey;
  padding-top: 1.5rem;
  padding-left: 0;
}

.sitemap-list > li:last-child {
  border-bottom: 1px dotted lightgrey;
  padding-bottom: 1.5rem;
}

.sitemap-list > li:before {
  display: none;
}

.sitemap-list ul {
  margin-top: 0.5rem;
}

.sitemap-list ul a {
  font-size: 1.5rem;
}

.sitemap-list ul li {
  margin-top: 0;
}

/* ---- */
/* Blog */
/* ---- */

@media (max-width: 767px) {
  .page-blog .col-3__item:nth-child(4),
  .page-blog .col-3__item:nth-child(5),
  .page-blog .col-3__item:nth-child(6) {
    display: none;
  }
}

p.image + p.image {
  margin-top: 5rem;
}


a[id][name] {
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
}


/* Restore bullet points for privacy and legal text */
.page-header__description ul {
  list-style-type: disc !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  padding-left: 2.5rem !important;
}
.page-header__description ul li {
  margin-bottom: 0.5rem;
}

/* Restore bullet points for privacy and legal text */
.page-header__description ul {
  list-style-type: disc !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  padding-left: 2.5rem !important;
}
.page-header__description ul li {
  margin-bottom: 0.5rem;
}


/* ==========================================================================
   Print Styles for Home Pages / General Layouts (Professional Business Document Fix)
   ========================================================================== */
@media print {
  @page {
    size: letter;
    margin-top: 1in;
    margin-right: 1in;
    margin-bottom: 1in;
    margin-left: 0.5in;
  }
  
  html, body, .site-wrapper, .site-body-wrapper, .site-body, main, .main-content, .container, .page-header, .container-wrapper, header, .header-wrapper, footer, .footer {
    background: #fff !important;
    background-image: none !important;
    background-color: #fff !important;
    color: #000 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    float: none !important;
    position: static !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Force dark text explicitly everywhere for safety */
  h1, h2, h3, h4, h5, h6, p, a, span, div, li, dd, dt, blockquote, .page-header__title, .page-header__description, .principles h2, .principles p {
    color: #000 !important;
    text-shadow: none !important;
  }

  /* Professional typography */
  h1 { font-size: 14pt !important; margin-bottom: 0.25rem !important; line-height: 1.2 !important; }
  h2 { font-size: 12pt !important; margin-bottom: 0.25rem !important; line-height: 1.2 !important; }
  h3 { font-size: 10pt !important; margin-bottom: 0.2rem !important; line-height: 1.2 !important; }
  p, li, dd, dt, blockquote, .page-header__description, .principles p {
    font-size: 8.5pt !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    margin-bottom: 0.75rem !important;
  }

  /* Hide all images except the logo */
  img, object, embed, video, canvas, svg, picture, .principles__visual {
    display: none !important;
  }
  
  /* Remove section backgrounds globally */
  .background-image, [class*='background-image'] {
    background-image: none !important;
    background-color: transparent !important;
  }

  /* Ensure the header logo is visible */
  header {
    display: flex !important;
    height: auto !important;
    background: none !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
    border-bottom: 2px solid #000 !important; /* Professional separation line */
    padding-bottom: 1rem !important;
  }
  .site-header, .header-wrapper {
    display: block !important;
    position: static !important;
    height: auto !important;
    background: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
  }
  
  /* The logo explicitly */
  .header-logo, .fwt-logo {
    display: block !important;
    background-image: url(../assets/eirene_logo_n.svg) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    width: 200px !important;
    height: 60px !important;
    min-height: 60px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide unnecessary UI elements */
  body .footer__mobile-top-row, body .footer__mobile-top-row .footer__list__item, body .footer__mobile-top-row .footer__list__link,
  .footer__links-row,
  .language-selector,
  .menu-lang-w,
  .mobile-hide,
  .glass-dots-btn,
  .glass-dropdown-menu,
  .mobile-menu-button, 
  .glass-dropdown-w,
  .cookie-settings,
  .modal,
  .up-btn,
  .contact-settings,
  .particles-container,
  .locations__map,
  .contact { 
    display: none !important;
  }


  /* Allow copyright in footer */
  footer {
    display: block !important;
    background: transparent !important;
    color: #000 !important;
    border-top: 1px solid #000 !important;
    margin-top: 2rem !important;
    padding-top: 1rem !important;
    height: auto !important;
    page-break-inside: avoid;
  }
  body .footer__mobile-top-row,
  body .footer__mobile-top-row * ,
  body .footer__mobile-top-row .footer__list__item,
  body .footer__mobile-top-row .footer__list__link,
  body .language-selector,
  body .footer__links-row,
  body .footer__links-row * ,
  body .footer__list__item,
  body .footer__list__link,
  body .footer__dev,
  body .footer__logo,
  body .ag-web {

    display: none !important;
  }
  p.notes, .footer__copyright {
    display: block !important;
    font-size: 9pt !important;
    text-align: left !important;
    color: #000 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  /* Stack flex grids to ensure flow */
  .col-2, .col-3, .col-4, .col-2-even, .row, .col-2__item, .col-3__item, .col-4__item, .col-2-even__item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .principles__item {
    margin-bottom: 1.5rem !important;
  }

  /* Prevent page breaks inside core blocks */
  figure, table, pre, blockquote, section, .section, .home-section {
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  /* Ensure auto-heights everywhere to prevent text cutting */
  .hero, .hero-section {
    min-height: auto !important;
    height: auto !important;
  }
  
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Structural layout for legal pages: Native Grid for the side bookmark entirely eliminating offsets and absolute clipping */
  .legal.page-header {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .legal.page-header .page-header__title {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Secure CSS Grid to render vertical bookmark natively alongside paragraphs - eliminating left clipping and manually pushing text */
  .legal.page-header .page-header__description {
    display: grid !important;
    grid-template-columns: 4rem 1fr !important;
    column-gap: 1.5rem !important; 
    align-items: start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* All paragraphs stream securely into the right hand column */
  .legal.page-header .page-header__description > * {
    grid-column: 2 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* The bookmark sits squarely in the left column spanning infinitely down */
  .legal.page-header .bookmark {
    grid-column: 1 !important;
    grid-row: 1 / 999 !important;
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .legal.page-header .bookmark:after {
    display: none !important;
  }

  /* Ensure text rotates perfectly within bounds */
  .legal.page-header .bookmark--text {
    position: absolute !important;
    top: 3rem !important;
    left: -2rem !important; /* Position perfectly within bounds */
    color: #000 !important;
    font-size: 8.0pt !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    writing-mode: horizontal-tb !important;
    
    /* Rotate from left edge, no horizontal centering */
    transform-origin: left center !important;
    transform: rotate(90deg) !important;
    visibility: visible !important;
  }
  
  .legal.page-header .bookmark--text:after {
    content: "" !important;
    display: inline-block !important;
    background-image: url(slashes.svg) !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    margin-left: 2rem !important;
    vertical-align: middle !important;
    height: 1em !important;
    width: 4rem !important;
  }

}
/* Glassmorphism Pill Button */
.glass-pill-button {
  display: inline-block;
  padding: 10px 26px;
  font-size: 1.3em;
  font-weight: normal;
  text-decoration: none !important;
  color: #111;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 4rem; /* Safe space below */
}

@media (max-width: 767px) {
  .glass-pill-button {
    font-size: 1.15em;
    padding: 8px 22px;
  }
}

.glass-pill-button:hover,
.glass-pill-button:focus,
.glass-pill-button:active {
  text-decoration: none !important;
}

.glass-pill-button:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  color: #000;
}

.glass-pill-button:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}


/* Support Page explicit minimum height to prevent squishing and ensure footer sits at bottom */
.support-content {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
}

/* Fix Safari iOS Micromodal Close Button Issue */
.CookieS__close *, .ContactUS__close * {
    pointer-events: none !important;
}

.CookieS__close, .ContactUS__close {
    pointer-events: auto !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Explicitly bind fixes for iOS Safari private/normal browsing modes */
.CookieS__close, .ContactUS__close {
    position: absolute !important;
    z-index: 9999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure nothing covers the button */
.CookieS__container::before, .CookieS__container::after,
.ContactUS__container::before, .ContactUS__container::after {
    pointer-events: none !important;
}

/* Ensure the path events are captured uniformly */
.CookieS__close svg, .ContactUS__close svg,
.CookieS__close path, .ContactUS__close path {
    pointer-events: none !important;
}

/* Optimize touch events for mobile, remove 300ms delay, and prevent double-tap zoom */
a, button, input[type="button"], input[type="submit"], [role="button"] {
    touch-action: manipulation;
}

/* Optimize touch events for mobile, remove 300ms delay, and prevent double-tap zoom */
a, button, input[type="button"], input[type="submit"], [role="button"] {
    touch-action: manipulation;
}
/* Fix iOS Auto Zoom on Input */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
  select,
  textarea,
  input {
    font-size: 16px !important;
  }
}

/* GTM Height Override (To allow native scroll tracking over 100vh) */
html, body {
  position: relative !important;
  min-height: 100vh !important;
  height: auto !important;
}

/* Fix for the unwanted black dot at the left edge of legal paragraphs on desktop devices */
.legal .page-header__description > *::before {
    display: none !important;
}
.legal .page-header__description > *::after {
    display: none !important;
}
.bookmark::before, .bookmark::after,
.bookmark--text::before, .bookmark span::before, .bookmark span::after {
    display: none !important;
}
/* Re-enable the slashes.svg which is an after element */
.bookmark--text::after {
    display: block !important;
}
.page-header__description ul li::before {
    display: block !important;
}

/* Force hide any stray dot artifacts arising from unclosed lists or phantom pseudo elements next to the first legal paragraph */
.legal .page-header__description > p:first-of-type::before,
.legal .page-header__description > div.bookmark::before,
.legal .page-header__description > div.bookmark::after,
.bookmark--text::before,
.bookmark span::before,
.bookmark span::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Also explicitly prevent standard list-style rendering on these containers */
.bookmark,
.bookmark--text,
.legal .page-header__description {
    list-style: none !important;
}

.page-header__description {
  list-style: none !important;
  list-style-type: none !important;
}

.page-header__description::before,
.page-header__description *::before,
.legal.page-header *::before {
  display: none !important;
  content: none !important;
}

.legal.page-header {
  list-style: none !important;
  list-style-type: none !important;
}
@media only screen {
  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    margin: 0 !important;
  }
  .site-wrapper {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
  .site-body-wrapper {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .footer {
    flex-grow: 0 !important;
    margin-top: auto !important;
  }
}

/* Smart color adaptation behind bounce back for overscroll on dark theme pages */
html.dark-theme,
html:has(body.dark-theme) {
  --eirene-overscroll-top-color: var(--dynamic-bg-color, #050505);
  --eirene-overscroll-bottom-color: var(--eirene-footer-bg-solid, #0d1a41);
  background-image:
    linear-gradient(
      to bottom,
      var(--eirene-overscroll-active-color, var(--eirene-overscroll-top-color, #050505)) 0%,
      var(--eirene-overscroll-active-color, var(--eirene-overscroll-top-color, #050505)) 100%
    ) !important;
  background-color: var(--eirene-overscroll-active-color, var(--eirene-overscroll-top-color, #050505)) !important;
}
body.dark-theme {
  background-color: transparent !important;
}

/* Base text color switch to light for dark pages */
body.dark-theme {
  color: #f1f1f1;
}

/* Allow text content to remain readable if not explicitly colored */
body.dark-theme p, 
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6 {
  color: #f1f1f1;
}
/* Preserve dark text for light glass cards on dark theme pages */
body.dark-theme .login-container {
  color: #111;
}
body.dark-theme .login-container h1,
body.dark-theme .login-container h2,
body.dark-theme .login-container p,
body.dark-theme .login-container label {
  color: #111;
}

/* Ensure links in login container are visible */
body.dark-theme .login-container a:not(.apple-sign-in-btn) {
  color: #27aae1; /* eirene standard blue */
}
