/*----- BASE STYLES -----*/
*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-size: 14px;
  line-height: 1.5;
  font-family: "Open Sans", "sans-serif";
  font-weight: 400;
  font-style: normal;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  color: #3a3e42;
}

hr {
  border: 0;
  height: 1px;
  background: #cacbcc;
}

/*----- TYPOGRAPHY -----*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

h1 {
  font-size: 28px;
  letter-spacing: -0.2px;
}

h2 {
  font-size: 24px;
}

h3, h4, h5, h6 {
  font-size: 16px;
}

p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 1em;
}

a {
  color: #0587aa;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
  cursor: pointer;
}
a:hover {
  color: rgb(2.4179271709%, 65.2840336134%, 82.2095238095%);
}

.erk-link {
  color: #0587aa;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
  cursor: pointer;
}
.erk-link:hover {
  color: rgb(2.4179271709%, 65.2840336134%, 82.2095238095%);
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

/* Remove browser's default style from text inputs. */
input[type=text] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.small {
  font-size: 12px;
}

.info {
  display: inline;
  vertical-align: top;
}

.text-content {
  font-size: 16px;
}

.micro {
  font-size: 10px;
}

/*----- LIST STYLES -----*/
.erk-ulist {
  list-style: none;
  line-height: 1.3;
  padding: 0;
}
.erk-ulist__item {
  padding: 3px 0;
}
.erk-ulist--bulleted {
  padding-left: 1em;
  text-indent: -1em;
}
.erk-ulist--bulleted .erk-ulist__item:before {
  content: "";
  display: inline-block;
  height: 7px;
  width: 7px;
  background-color: #3dc8d3;
  border-radius: 50%;
  margin-right: 0.7em;
}

.erk-olist {
  list-style-position: inside;
  padding-left: 1em;
  text-indent: -1em;
  line-height: 1.3;
}
.erk-olist__item {
  padding: 3px 0;
}

/*----- FORMS -----*/
.erk-form__fieldset {
  border: 0;
  padding-left: 0;
  font-size: 14px;
}
.erk-form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 0;
}

input, select, button {
  height: 30px;
}

input[type=radio] {
  height: initial;
}

input, textarea, select {
  color: #3a3e42;
  background-color: #fff;
  border: #cacbcc 1px solid;
  border-radius: 1px;
  font-size: 14px;
  padding: 5px;
  transition: all 0.1s ease;
}
input:hover, textarea:hover, select:hover {
  border-color: #8b8d8e;
}
input:focus, textarea:focus, select:focus {
  color: #3a3e42;
  border-color: #3a3e42;
  outline: none;
}

.erk-checkboxes input[type=checkbox], .erk-checkboxes input[type=radio] {
  display: none;
}
.erk-checkboxes input[type=checkbox] + label, .erk-checkboxes input[type=radio] + label {
  cursor: pointer;
}
.erk-checkboxes input[type=checkbox] + label span, .erk-checkboxes input[type=radio] + label span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: -1px 4px 0 0;
  vertical-align: middle;
  border: #cacbcc 1px solid;
  border-radius: 1px;
  background-color: #fff;
}
.erk-checkboxes input[type=checkbox]:checked + label span:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: relative;
  top: -2px;
  left: 1px;
  color: #3dc8d3;
}

.erk-radio input[type=radio] + label span {
  border-radius: 50%;
}
.erk-radio input[type=radio]:checked + label span {
  box-shadow: inset 0px 0px 0px 3px #fff;
  background-color: #3dc8d3;
}

.erk-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #3a3e42;
}
.erk-select__wrap {
  position: relative;
}
.erk-select--multiple {
  height: 80px;
}
.erk-select:before {
  content: "\f078";
  font-family: FontAwesome;
  color: #8b8d8e;
  position: absolute;
  pointer-events: none;
  font-size: 14px;
  top: 6px;
  right: 0;
  width: 32px;
  height: 25px;
  text-align: center;
}

/*----- Buttons -----*/
.erk-button {
  color: #3dc8d3;
  border: #3dc8d3 1px solid;
  background-color: transparent;
  font-size: 14px;
  font-weight: 700;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.1s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}
.erk-button:hover, .erk-button:active, .erk-button:focus {
  border-color: rgb(36.9635854342%, 82.1288515406%, 85.7030812325%);
  background-color: rgb(36.9635854342%, 82.1288515406%, 85.7030812325%);
  color: #fff;
}
.erk-button:active, .erk-button:focus {
  border-color: rgb(17.5014005602%, 72.7899159664%, 77.1652661064%);
  outline: none;
}
.erk-button--light {
  color: #3a3e42;
  border: #cacbcc 1px solid;
  font-weight: 400;
}
.erk-button--light:hover, .erk-button--light:active, .erk-button--light:focus {
  color: #3a3e42;
  border-color: #8b8d8e;
  background-color: transparent;
}
.erk-button--light:active, .erk-button--light:focus {
  border-color: #3a3e42;
}
.erk-button--dark {
  color: #fff;
  background-color: #3dc8d3;
  font-weight: 700;
}
.erk-button--dark:hover {
  color: #fff;
  background-color: rgb(36.9635854342%, 82.1288515406%, 85.7030812325%);
}
.erk-button--dark:active, .erk-button--dark:focus {
  color: #fff;
}
.erk-button--inline {
  display: inline;
  height: initial;
}

.erk-btn-group > * {
  border-radius: 0;
  float: left;
}
.erk-btn-group > *:first-of-type {
  border-right-width: 0;
}
.erk-btn-group > *:last-of-type {
  border-left-width: 0;
}

.erk-input-btn > * {
  float: left;
}
.erk-input-btn > *:first-child {
  border-right-width: 0;
}

/*----- Icons -----*/
.erk-icon-button {
  height: 30px;
  width: 30px;
  padding: 0;
}
.erk-icon-button .fa {
  padding: 0;
}
.erk-icon-button__icon {
  position: relative;
}
.erk-icon-button__icon .fa {
  position: absolute;
  top: 0;
  left: 0;
  padding: 9px;
  color: #8b8d8e;
  font-size: 14px;
}
.erk-icon-button__icon input[type=text] {
  padding-left: 28px;
}
.erk-icon-button__icon--after {
  margin-left: 0.4em;
}
.erk-icon-button__icon--before {
  margin-right: 0.6em;
}

/* Style for low-fatigue reading. */
.erk-text {
  font-size: 16px;
}

/* Button border radius normalisation */
button,
[type=button],
[type=reset],
[type=submit] {
  border-radius: 0;
}

.subpage-footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.subpage-footer-logos__logo {
  max-height: 5rem;
}

/* GRID SYSTEM */
/* TODO: OPTIMIZE */
/* 480px handheld devices */
/* 1920px / 2 - vertical UI space. */
/* 2560px / 2 - vertical UI space. */
body {
  margin: 20px;
}
@media (max-width: 450px) {
  body {
    margin: 10px;
  }
}

.page-content-wrapper {
  margin: auto;
  clear: both;
}

.split {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.grid-lg-1of1,
.grid-lg-1of2,
.grid-lg-1of3,
.grid-lg-1of4,
.grid-lg-1of6,
.grid-lg-2of3,
.grid-lg-5of12,
.grid-lg-7of12,
.grid-md-1of1,
.grid-md-1of2,
.grid-md-1of3,
.grid-md-1of4,
.grid-md-1of6,
.grid-md-2of3,
.grid-md-5of12,
.grid-md-7of12,
.grid-sm-1of1,
.grid-sm-1of2,
.grid-sm-1of3,
.grid-sm-1of4,
.grid-sm-1of6,
.grid-sm-2of3,
.grid-sm-5of12,
.grid-sm-7of12,
.grid-xs-1of1,
.grid-xs-1of2,
.grid-xs-1of3,
.grid-xs-1of4,
.grid-xs-1of6,
.grid-xs-2of3,
.grid-xs-5of12,
.grid-xs-7of12 {
  width: 100%;
}

/* XS */
.grid-xs-1of1 {
  width: 100%;
}

.grid-xs-2of3 {
  width: 66.66%;
}

.grid-xs-7of12 {
  width: 58.33%;
}

.grid-xs-1of2 {
  width: 50%;
}

.grid-xs-5of12 {
  width: 41.16%;
}

.grid-xs-1of3 {
  width: 33.33%;
}

.grid-xs-1of4 {
  width: 25%;
}

.grid-xs-1of6 {
  width: 16.66%;
}

/* SM */
@media (min-width: 450px) {
  .grid-sm-1of1 {
    width: 100%;
  }
  .grid-sm-2of3 {
    width: 66.66%;
  }
  .grid-sm-7of12 {
    width: 58.33%;
  }
  .grid-sm-1of2 {
    width: 50%;
  }
  .grid-sm-5of12 {
    width: 41.16%;
  }
  .grid-sm-1of3 {
    width: 33.33%;
  }
  .grid-sm-1of4 {
    width: 25%;
  }
  .grid-sm-1of6 {
    width: 16.66%;
  }
}
/* MD */
@media (min-width: 900px) {
  .grid-md-1of1 {
    width: 100%;
  }
  .grid-md-2of3 {
    width: 66.66%;
  }
  .grid-md-7of12 {
    width: 58.33%;
  }
  .grid-md-1of2 {
    width: 50%;
  }
  .grid-md-5of12 {
    width: 41.16%;
  }
  .grid-md-1of3 {
    width: 33.33%;
  }
  .grid-md-1of4 {
    width: 25%;
  }
  .grid-md-1of6 {
    width: 16.66%;
  }
}
/* LG */
@media (min-width: 1250px) {
  .grid-lg-1of1 {
    width: 100%;
  }
  .grid-lg-2of3 {
    width: 66.66%;
  }
  .grid-lg-7of12 {
    width: 58.33%;
  }
  .grid-lg-1of2 {
    width: 50%;
  }
  .grid-lg-5of12 {
    width: 41.16%;
  }
  .grid-lg-1of3 {
    width: 33.33%;
  }
  .grid-lg-1of4 {
    width: 25%;
  }
  .grid-lg-1of6 {
    width: 16.66%;
  }
}
/* Helper for center aligned content. Ex. CMS subpages. */
.content-wrapper, .bb-project-gallery {
  width: 86%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .content-wrapper, .bb-project-gallery {
    max-width: 660px;
  }
}
.content-wrapper--pheno-list {
  display: flex;
}
@media (max-width: 1380px) {
  .content-wrapper--pheno-list {
    display: block;
    width: initial;
    max-width: 95%;
  }
}

/* ~$gray */
/* Menu */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  clear: both;
  padding: 15px 20px;
  font-size: 14px;
  z-index: 1200;
  transition: padding 200ms;
}
.header--center {
  margin: auto auto 0 auto;
}
.header--scrolled {
  padding: 0.5rem 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px 2px rgba(128, 128, 128, 0.66);
}

.header--light .menu-addon {
  color: #fff;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
}

.header--light .submenu {
  color: #fff;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
}

.header--light .burger__open-button {
  color: #fff;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
}

.logo {
  width: 140px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
}

.logo--blue {
  background-image: url("/assets/images/elurikkus_logo.svg");
}

.logo--white {
  background-image: url("/assets/images/elurikkus_logo_white.svg");
}

.menu {
  padding-right: 20px;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  -ms-flex: 1;
  flex: 1;
  margin: -6px 0; /* Compensate for menu addon height */
  display: none;
}
@media (min-width: 1050px) {
  .menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
  }
}

.menu-addon {
  color: #666;
  opacity: 0.8;
  border-right: 2px solid rgba(102, 102, 102, 0.8);
  padding: 1px 15px;
  margin-right: 5px;
  font-size: 0.8em;
  font-weight: bold;
  line-height: 1.2em;
  letter-spacing: 0.5px;
  text-align: right;
}

.submenu {
  position: relative;
  padding: 0 10px 0 10px;
  color: #666;
}
.submenu__title {
  padding: 0;
  font-weight: bold;
}
.submenu__title--language {
  text-transform: initial;
}
.submenu__title-link {
  color: inherit;
  cursor: pointer;
}
.submenu__title-link:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.65;
}
.submenu__title-link--disabled {
  color: #cacbcc !important;
  cursor: not-allowed;
}
.submenu__title-link--disabled:hover {
  color: #8b8d8e !important;
}
.submenu__title-addon {
  font-size: 0.5rem;
}
.submenu__dropdown {
  position: absolute;
  z-index: 1100;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  margin-top: 10px;
  white-space: nowrap;
  border: 1px solid #8d8d8d;
  display: none;
}
.submenu__dropdown:after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 15px;
  bottom: 100%;
}
.submenu__dropdown-pointer {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #8d8d8d;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  top: -10px;
}
.submenu__dropdown-pointer-fill {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #fff;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  top: -9px;
}
.submenu__dropdown-content {
  margin-top: 0px;
  background-color: #fff;
  padding: 10px;
}
.submenu__dropdown-link {
  display: block;
  color: #3a3e42;
}
.submenu__dropdown-link:hover {
  color: #3dc8d3;
  text-decoration: none;
}

/* WEIRD */
.submenu:hover .submenu__dropdown {
  display: inline-block;
}

.burger {
  position: absolute;
  right: 12px;
}
@media (min-width: 1050px) {
  .burger {
    display: none;
  }
}
.burger__home-link {
  display: none;
}
@media (max-width: 450px) {
  .burger__home-link {
    display: block;
  }
}
.burger__logo {
  width: 100px;
  height: 100%;
  margin-bottom: 2rem;
}
.burger__popup {
  text-align: left;
  display: none;
}
.burger__popup--open {
  display: inherit;
}
.burger__popup {
  position: fixed;
  top: 0;
  right: 0;
  overflow-y: auto;
  z-index: 1100;
  border: 1px solid #8d8d8d;
  background-color: #fff;
}
@media (max-width: 450px) {
  .burger__popup {
    width: 100%;
    height: 100%;
    border: 0;
  }
}
.burger__popup-content {
  padding: 10px 20px;
}
.burger__submenu {
  margin-bottom: 1em;
}
.burger__submenu--language {
  margin-top: 2rem;
}
.burger__submenu-title {
  font-weight: bold;
}
.burger__link {
  color: inherit;
}
.burger__link:hover {
  text-decoration: none;
  color: #3dc8d3;
}
.burger__close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 2rem;
  line-height: 0;
  font-size: 2rem;
  padding: 0 4px; /* Makes this particular character square. */
  border: none;
  cursor: pointer;
  color: inherit;
  background: none;
}
.burger__open-button {
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  height: 2rem;
  line-height: 0;
  padding: 0 4px;
  margin-top: -3px;
  color: inherit;
  background-color: transparent;
}

/* XXX */
.language {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  -ms-flex: 0 0;
  flex: 0 0;
  white-space: nowrap;
}
.language .active {
  text-decoration: underline;
}
.language {
  display: none;
}
@media (min-width: 1050px) {
  .language {
    display: inherit;
  }
}

.language > ul {
  margin: 0;
}

.language > ul > li {
  display: inline-block;
}

/**
 * Not sure where the breakpoint for this should be.
 * TODO: Experiment.
 */
/* eElurikkus styles */
section {
  margin-bottom: 3rem;
}

/* Search */
.searches {
  box-shadow: 0px 4px 16px 1px rgba(0, 0, 0, 0.2);
  padding: 4rem 1rem;
  background-color: #ffffff;
}
@media (min-width: 2100px) {
  .searches {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 450px) {
  .searches {
    padding: 2rem 0;
  }
}
@media (min-width: 450px) and (max-width: 1250px) {
  .searches {
    padding: 2rem 1rem;
  }
}

.hero-unit {
  /* XS */
}
@media (max-width: 450px) {
  .hero-unit {
    padding: 12rem 1rem 2rem 1rem;
    margin: 0;
  }
}
.hero-unit {
  /* SM */
}
@media (min-width: 450px) and (max-width: 900px) {
  .hero-unit {
    padding: 12rem 2rem 0 2rem;
    margin-bottom: 2rem;
  }
}
.hero-unit {
  /* UP TO MD */
}
@media (min-width: 900px) and (max-width: 1250px) {
  .hero-unit {
    padding: 14rem 4rem 0 4rem;
  }
}
.hero-unit {
  /* MD AND UP */
}
@media (min-width: 1250px) {
  .hero-unit {
    padding: 14rem 4rem 0 4rem;
  }
}
.hero-unit {
  /* Align with search section when it jumps to centre. */
}
@media (min-width: 2100px) {
  .hero-unit {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}
.hero-unit__top-line {
  color: #ffffff;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
  font-size: 22px;
  margin: 0;
}
@media (max-width: 900px) {
  .hero-unit__top-line {
    font-size: 18px;
  }
}
.hero-unit__bottom-line {
  color: #ffffff;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
  font-size: 28px;
  margin: 0;
}
@media (max-width: 900px) {
  .hero-unit__bottom-line {
    font-size: 22px;
  }
}
.hero-unit__background-container {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 28rem;
  background-color: rgb(17.5014005602%, 72.7899159664%, 77.1652661064%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
@media (min-width: 2561px) {
  .hero-unit__background-container {
    background-image: url("../images/hero-3440x720.jpg");
  }
}
@media (max-width: 2560px) {
  .hero-unit__background-container {
    background-image: url("../images/hero-2560x720.jpg");
  }
}
@media (max-width: 1366px) {
  .hero-unit__background-container {
    background-image: url("../images/hero-1366x720.jpg");
  }
}
@media (max-width: 720px) {
  .hero-unit__background-container {
    background-image: url("../images/hero-720x720.jpg");
  }
}
.hero-unit__background-container {
  /* TOP GRAIDENT */
}
.hero-unit__background-container:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 44, 55, 0.2));
}
.hero-unit__background-container {
  /* BOTTOM GRADIENT */
}
.hero-unit__background-container:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #fff);
}

.count-to {
  display: inline-block;
}

.search-panel {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1250px) {
  .search-panel {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (max-width: 1250px) {
  .search-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 450px) {
  .search-panel {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.search-panel__title {
  text-transform: uppercase;
  font-weight: normal;
  padding-bottom: 0.5rem;
  margin: 0;
}
.search-panel__input {
  display: -ms-flexbox;
  display: flex;
  height: 36px;
}
.search-panel__input-field {
  -ms-flex: 1;
  flex: 1;
  height: inherit;
  border-right: none;
  text-overflow: ellipsis;
  padding: 0 10px;
  margin: 0; /* Eliminate default margin added by Safari browsers. */
}
.search-panel__input-field:hover {
  border-color: #cacbcc;
}
.search-panel__input-field:focus {
  border: 1px solid #3dc8d3;
}
.search-panel__input-button {
  height: inherit;
  padding: 0 10px;
  margin: 0; /* Eliminate default margin added by Safari browsers. */
  font-size: 16px;
  border: 1px solid #cacbcc;
  border-left: none;
}

.predefined-searches {
  margin: 0;
  padding: 0.5rem 0 0 0;
  text-align: center;
}

.predefined-searches > li {
  display: inline-block;
  margin: 0;
}

.predefined-searches > li > a {
  padding: 0 0.25rem;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: #8b8d8e;
}
.predefined-searches > li > a:hover {
  color: #3dc8d3;
}

.input-plus {
  display: -ms-flexbox;
  display: flex;
  max-width: 22rem;
}
.input-plus__field {
  -ms-flex: 1;
  flex: 1;
}
.cards {
  margin: 0 -10px;
}

.card {
  padding: 10px;
}

.card-content {
  height: 100%;
  min-height: 258px;
  padding: 1rem;
  background-size: cover;
  background-color: rgb(1.6179271709%, 43.6840336134%, 55.0095238095%);
  opacity: 0.95;
  transition-property: opacity, filter, background-image;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}
.card-content:hover {
  opacity: 1;
  filter: saturate(0.8);
}
.card-content__title {
  display: inline-block;
  opacity: 0.9;
  color: #fff;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
  margin: 0;
}
.card-content__title-link {
  color: #fff;
  display: block;
  width: 100%;
  transition-property: text-shadow, opacity, color;
  transition-duration: 100ms;
  transition-timing-function: ease-in-out;
}
.card-content__title-link:hover, .card-content__title-link:focus {
  color: #fff;
  opacity: 1;
  text-shadow: 0px 1px 9px rgba(33, 33, 33, 0.8);
}
.card-content__entry-link {
  font-size: 16px;
  opacity: 0.9;
  color: #fff !important;
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
  font-weight: bold;
  transition-property: text-shadow, opacity, color;
  transition-duration: 100ms;
  transition-timing-function: ease-in-out;
}
.card-content__entry-link:after {
  opacity: 0;
  content: "\f105";
  font-family: "FontAwesome";
  position: relative;
  right: 0;
  font-weight: normal;
  transition: all 100ms cubic-bezier(0.4, 0, 1, 1) 200ms;
}
.card-content__entry-link:hover, .card-content__entry-link:focus {
  color: #fff;
  opacity: 1;
  text-shadow: 0px 1px 9px rgba(33, 33, 33, 0.8);
}
.card-content__entry-link:hover:after, .card-content__entry-link:focus:after {
  opacity: 1;
  right: -5px;
}
.card-content__entry-link--external:after {
  font-size: 14px;
  content: "\f08e";
}
.card-content__entry-link--occurrences:after {
  font-size: 14px;
  content: "\f03a";
}
.card-content__entry-link--gallery:after {
  font-size: 14px;
  content: "\f03e";
}
.card-content__entry-link--map:after {
  font-size: 14px;
  content: "\f278";
}
.card-content__entry-link--species:after {
  font-size: 14px;
  content: "\f02b";
}
.card-content__entry-link--specielist:after {
  font-size: 14px;
  content: "\f02c";
}
.card-content__entry-link--institution:after {
  font-size: 14px;
  content: "\f19c";
}
.card-content__entry-link--collection:after {
  font-size: 14px;
  content: "\f187";
}
.card-content__entry-link--dataset:after {
  font-size: 14px;
  content: "\f1c0";
}

.record-count {
  display: inline-block;
  border-color: inherit;
  border-bottom: 0.125em solid;
}

.data-summary {
  color: #fff;
  height: 100%;
  min-height: 258px;
  background-color: rgb(1.6179271709%, 43.6840336134%, 55.0095238095%);
  text-shadow: 0px 1px 9px rgba(82, 73, 73, 0.65);
}
.data-summary__text {
  text-shadow: none;
}

.mini-cards {
  margin: -5px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.mini-cards__row {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.mini-card-container {
  -ms-flex-positive: 1;
  flex-grow: 1;
  margin: 5px;
}
.mini-card-container__card {
  height: 100%;
  padding: 10px;
  font-weight: bold;
  background-color: rgb(1.275070028%, 34.4268907563%, 43.3523809524%);
}

.map {
  opacity: 0.95;
  height: 100%;
}
.map:hover {
  opacity: 1;
  transition: all 0.25s ease-in-out;
}
.map__container {
  position: relative;
  height: 100%;
  background-color: #252525;
}
.map__overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1010;
}

.responsive-figure {
  margin: 0 1em;
}
.responsive-figure img {
  height: auto;
  max-width: 100%;
}
.responsive-figure figcaption {
  font-style: italic;
}
.responsive-figure--inline {
  display: inline-block;
}

.maintenance-notice {
  margin: -20px;
  margin-bottom: 20px;
  padding: 0.5rem 1rem;
  background-color: #3dc8d3;
  color: white;
}
.maintenance-notice p {
  margin-top: 0;
}
.maintenance-notice p:last-child {
  margin-bottom: 0;
}

.news-item-title {
  margin: 0;
}

.news-item-date {
  color: #666;
  font-family: monospace;
  font-size: 14px;
}

.news-item-external:after {
  font-family: "FontAwesome";
  content: "\f08e";
  font-size: 14px;
  margin-left: 2px;
}

.page-header-wrapper {
  position: relative;
  min-height: 356px;
  max-height: 356px;
  margin: 0 -20px;
}
@media (max-width: 450px) {
  .page-header-wrapper {
    margin: 0 -10px;
  }
}

.page-header {
  display: flex;
  position: relative;
  top: 8rem;
  padding: 0 20px;
}
@media (max-width: 450px) {
  .page-header {
    padding: 0 10px;
    top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.page-header__side-container {
  flex: 1;
  text-align: right;
}
@media (max-width: 900px) {
  .page-header__side-container {
    text-align: left;
  }
}
@media (max-width: 450px) {
  .page-header__side-container {
    flex: 0;
  }
}
.page-header__center-container {
  margin: auto 0 auto 0;
}
@media (max-width: 450px) {
  .page-header__center-container {
    flex: 1;
  }
}

.page-header-title {
  color: #3a3e42;
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 450px) and (max-width: 900px) {
  .page-header-title {
    font-size: 35px;
  }
}
@media (max-width: 450px) {
  .page-header-title {
    font-size: 30px;
  }
}

.page-header-image {
  max-height: 150px;
  max-width: 150px;
  margin: 0 2rem;
}
@media (max-width: 900px) {
  .page-header-image {
    max-height: 75px;
    max-width: 75px;
    margin: 0 0.5rem;
  }
}
@media (max-width: 450px) {
  .page-header-image {
    margin: 0.5rem;
  }
}

.page-background-wrapper {
  position: absolute;
  z-index: -1;
  bottom: 0;
  width: 100%;
  height: 28rem;
}

.page-background {
  height: 100%;
  width: 100%;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-background:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(140deg, #ffffff 25%, rgba(253, 253, 253, 0.28) 75%, rgba(255, 255, 255, 0.12));
}
.page-background:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(175deg, #fff 10%, rgba(253, 253, 253, 0.28) 60%, rgba(255, 255, 255, 0.12));
}

.secondary-menu-section {
  background-color: #F9F9F9; /* XXX temp random color */
  margin: 0 -20px 54px -20px;
}
@media (max-width: 450px) {
  .secondary-menu-section {
    margin: 0 -10px 54px -10px;
  }
}

.content-section {
  margin: 0 -20px 60px -20px;
}
@media (max-width: 450px) {
  .content-section {
    margin: 0 -10px;
  }
}
@media (max-width: 900px) {
  .content-section figure {
    margin-inline-end: 1em;
    margin-inline-start: 1em;
  }
}
.content-section figure > img {
  max-width: 100%;
}

.content-section-headline {
  margin-bottom: 1rem;
}

.subpage-menu {
  flex: 1;
  margin: 0 -10px;
  min-height: 40px;
  padding: 5px 0;
  position: relative;
  text-align: left;
}

.subpage-menu-item {
  display: inline-block;
  position: relative;
  padding: 5px 10px;
  color: #999;
  font-weight: bold;
}
.subpage-menu-item__link {
  color: inherit;
}
.subpage-menu-item__link:hover, .subpage-menu-item__link--active {
  color: #666;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.page-content-wrapper {
  min-height: 12rem;
}

.footer-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  margin-bottom: calc(3rem - 10px * 2);
  margin-top: 12rem;
}
@media (max-width: 598.5px) {
  .footer-container {
    margin: 12rem 0 0 0;
  }
}

.footer-logos {
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  margin: 2rem;
  justify-content: center;
}
.footer-logos__logo {
  height: 33px;
  margin: 1rem;
  flex: 1 0 21%;
  text-align: center;
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
}
.footer-logos__logo:hover {
  transform: scale(1.66);
}
@media (max-width: 450px) {
  .footer-logos__logo {
    flex: 1 0 50%;
    margin: 1.5rem 1rem;
  }
}
.footer-logos__logo--medium {
  height: 42px;
}
.footer-logos__logo--large {
  height: 56px;
}
.footer-logos__logo img {
  height: 100%;
}

.footer-licence {
  display: -ms-flexbox;
  display: flex;
  margin: 1rem;
}
.footer-licence__logo {
  height: 2rem;
  margin-right: 0.5rem;
  margin-top: 3px;
}
.footer-licence__text {
  font-size: 13px;
  color: #3a3e42;
}

.footer-nav {
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  margin: 0 -1rem 6rem -1rem;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
}
@media (max-width: 450px) {
  .footer-nav {
    margin: 0 0 6rem 0;
    -webkit-flex-flow: column;
    flex-flow: column;
  }
}

.footer-col {
  margin: 0 1rem 2rem 1rem;
}
@media (max-width: 900px) {
  .footer-col {
    margin: 0 2rem 2rem 2rem;
  }
}
.footer-col__title {
  color: #8b8d8e;
  font-weight: bold;
  letter-spacing: 0.03em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
.footer-col__link {
  color: #3a3e42;
  font-size: 13px;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}
.footer-col__link--external:after {
  font-family: "FontAwesome";
  content: "\f08e";
}

.bb-form-container {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}
.bb-form-container__column {
  margin: 0.75rem;
  flex: 0;
}
.bb-form-container__column--main {
  flex: 1;
  min-width: 300px;
}

.bb-field__label {
  display: block;
  min-width: 50%;
}
.bb-field__label--inline {
  display: inline;
}
.bb-field__label--hidden {
  display: none;
}
.bb-field__info {
  min-height: 36px;
  padding: 5px 10px;
  color: #888;
}
.bb-field__input {
  max-width: 28rem;
  min-width: 20rem;
  width: 100%;
  height: 36px;
  padding: 5px 10px;
}
.bb-field__input:hover {
  border-color: #cacbcc;
}
.bb-field__input:focus {
  border: 1px solid #3dc8d3;
}
.bb-field__input--hidden {
  display: none;
}
.bb-field {
  margin-bottom: 1rem;
}

textarea.bb-field__input {
  height: initial;
}

.bb-checkbox--inline,
.bb-radio--inline {
  height: 1em;
}

.bb-table {
  width: 100%;
  border-collapse: collapse;
}
.bb-table th {
  text-align: left;
  color: #8b8d8e;
}
.bb-table td {
  padding: 4px 6px;
  border: 1px solid #ddd;
}

.bb-map {
  height: 500px;
}

.mapbox-gl-draw_polygon.active {
  opacity: 0.5;
}

.mapboxgl-ctrl button:disabled {
  opacity: 0.25;
}

.bb-project-gallery {
  width: initial;
  max-width: 1875px;
  padding: 0 5rem;
  margin-top: 6rem;
}
@media (max-width: 1250px) {
  .bb-project-gallery {
    padding: 0 2rem;
  }
}
@media (max-width: 900px) {
  .bb-project-gallery {
    padding: 0 1rem;
  }
}
@media (max-width: 450px) {
  .bb-project-gallery {
    padding: 0 0.5rem;
  }
}

.bb-area-title {
  display: flex;
  justify-content: space-between;
}

/* Project "Meie naabrid" style. */
.neighbours-table {
  width: 100%;
  border-collapse: collapse;
  border-color: #aaa;
}
.neighbours-table th, .neighbours-table td {
  padding: 3px 6px;
}
.neighbours-table th {
  font-weight: bold;
  text-align: left;
}

/* Neighbours table cell background colors. */
.neighbours-cell--number {
  height: 3rem;
  width: 4rem;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  background-clip: padding-box;
}
.neighbours-cell--scientific {
  font-style: italic;
}

.neighbours-cell-bg-a {
  background-color: #25804c;
}

.neighbours-cell-bg-b {
  background-color: #b0bebe;
}

.neighbours-cell-bg-c {
  background-color: #f2c4d9;
}

.neighbours-cell-bg-ab {
  background-image: linear-gradient(145deg, #25804c 50%, #b0bebe 50%, #b0bebe 100%);
}

.neighbours-cell-bg-ac {
  background-image: linear-gradient(145deg, #25804c 50%, #f2c4d9 50%, #f2c4d9 100%);
}

.neighbours-cell-bg-ba {
  background-image: linear-gradient(145deg, #b0bebe 50%, #25804c 50%, #25804c 100%);
}

.neighbours-cell-bg-bc {
  background-image: linear-gradient(145deg, #b0bebe 50%, #f2c4d9 50%, #f2c4d9 100%);
}

.neighbours-legend-container {
  margin-bottom: 1rem;
}

.neighbours-legend {
  display: inline-block;
  height: 1em;
  width: 1.33em;
}
.neighbours-legend__a {
  background-color: #25804c;
}
.neighbours-legend__b {
  background-color: #b0bebe;
}
.neighbours-legend__c {
  background-color: #f2c4d9;
}

.project-content-wrapper {
  margin-top: 10rem;
}
