/**
 * @file Theming nodes in full view mode.
 **/

.full {
  /*  */
}

.full {
  --full-color: var(--color-primary-b);
  --full-bg: var(--color-grey-light-aaa);
  --full-hero-1: var(--color-secondary-b);
  --full-hero-2: var(--color-secondary-c);
}

.full--blue {
  --full-color: var(--color-primary-b);
  --full-hero-1: var(--color-primary-b);
  --full-hero-2: var(--color-primary-c);
}

.full--blue.full--landing-page {
  --full-bg: var(--color-primary-d);
}

.full--green {
  --full-color: var(--color-secondary);
  --full-hero-1: var(--color-secondary-b);
  --full-hero-2: var(--color-secondary-c);
}

.full--green.full--landing-page {
  --full-bg: var(--color-secondary-f);
}

.full--purple {
  --full-color: var(--color-tertiary);
  --full-hero-1: var(--color-tertiary);
  --full-hero-2: var(--color-tertiary-b);
}

.full--purple.full--landing-page {
  --full-bg: var(--color-tertiary-c);
}


.full__header {
  position: relative;
  --color-text: var(--color-white);
}

.full--no-image .full__header {
  background-color: var(--full-hero-1);

}


.full__image {
  position: relative;
  /* inset: 0; */
  z-index: 0;
  overflow: hidden;

}

.full__image img {
  width: 100%;
  height: auto;
}

.full__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: calc(2* var(--spacing));
  justify-content: flex-end;
  /* height: 100%; */
  padding-block: 2rem 2rem;
}

.full--has-image .full__text {
  position: absolute;
  inset: auto 0 0 0;
  padding-block: 5rem 2rem;
  /* overflow: hidden; */

}

@media screen and (min-width: 960px) {
  .full__image {
    min-height: 390px;
  }

  .full--has-image .full__text {
    bottom: 4rem;
  }
}

.full--has-image .full__text>* {
  position: relative;
  z-index: 1;
}

@media all and (min-width: 1280px) {

  .full--no-image .full__text {
    min-height: 320px;
  }
}

.full__text>* {
  margin-block: 0;
  color: var(--color-text);
}

.full--has-image .full__header .full__text .arc {
  overflow: hidden;
  position: absolute;
  inset: 0;
}

.full--has-image .full__header .full__text .arc::before {
  content: '';
  background-image: linear-gradient(to top, var(--full-hero-1), var(--full-hero-2));
  border-top-right-radius: 100%;
  border-top-left-radius: 100%;
  position: absolute;
  top: var(--spacing-large);
  inset-inline: -25%;
  bottom: 0;
}

@media screen and (min-width: 768px) {
  .full--has-image .full__header .full__text {
    padding-block: 2rem;
    justify-content: center;
    top: 0;
  }

  .full--has-image .full__header .full__text .arc::before {
    display: none;
  }
}

@media screen and (min-width: 400px) {
  .full__image::after {
    top: 33%;
  }
}


.full__pretitle {
  font-size: .5em;
  font-weight: 400;
}

.full__content {
  padding-block: .1px;
  background-color: var(--full-bg);
  position: relative;
}

@media all and (min-width:768px) {
  .full__image::after {
    background-image: linear-gradient(to right, var(--full-hero-1) 67%, var(--full-hero-2));
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    border-top-left-radius: 0;
    inset-block: -50%;
    inset-inline-start: 0;
    inset-inline-end: 33%;
    position: absolute;
    content: '';

  }

  .full__image .media {
    width: 67%;
    margin-left: auto;
  }

  .full__image .media img {
    width: 100%;
    height: auto;
  }

  .full__text {
    padding-block: 7rem;
    justify-content: center;
  }

  .full--has-image .full__text>* {
    max-width: 64%;
  }


}

/* Sections */
.full__sections>h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: calc(1.5 * var(--spacing)) 0;
  position: relative;
  color: var(--color-text);
}

.full__sections>h3 span {
  background-color: var(--color-white);
  position: relative;
  padding-inline-end: var(--spacing);
}

.full__sections>h3::before {
  content: '';
  top: 50%;
  height: 1px;
  margin-top: 1px;
  inset-inline: 0;
  position: absolute;
  background-color: var(--border-color);
}

.full__sections__items {
  display: flex;
  gap: calc(1.5 * var(--spacing));
  flex-wrap: wrap;
}

.full__sections__items>a {
  width: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing);
  background-color: #E7F1EF;
  border-radius: 1rem;
  border: 1px solid var(--border-color-light);
  color: var(--color-text);
  padding: calc(.5 * var(--spacing)) var(--spacing);
}

.full__sections__items>a:hover,
.full__sections__items>a:focus,
.full__sections__items>a:active {
  background-color: var(--full-bg);
}

.full__sections__items>a svg path {
  stroke: var(--full-color);
}

.full__sections__items>a span {
  flex: 1;
}

@media (min-width: 768px) {
  .full__sections__items>a {
    width: calc(50% - .75 * var(--spacing));
  }
}

/* Metas */

.full__metas {
  display: flex;
  flex-direction: column;
  gap: calc(1.5 * var(--spacing));
  margin: calc(2 * var(--spacing)) 0 0;
  border-top: 1px solid var(--border-color);
  padding: calc(2 * var(--spacing)) 0 0 0;
}

.full__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: flex-start;
  flex-direction: column;
}

.full__meta.full__date {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing);
}

.full__label {
  display: flex;
  gap: .5rem;
  color: var(--color-grey-dark-b);
  font-weight: 600;

  /* align-items: center; */
}

.full__meta>.field {
  flex: 1;
}

.full__label svg {
  width: 20px;
  /* height: auto; */
}

.full__label svg path {
  fill: var(--color-primary-b);
}

.full__meta .field--type-entity-reference .field__item {
  background-color: #C6DFFF !important;
  text-decoration: none;
}

.full__fund-value {
  align-items: flex-start;
}

@media screen and (min-width: 768px) {
  .full__meta {
    align-items: center;
    flex-direction: row;
    gap: var(--spacing);
  }

  .full__label {
    min-width: 120px;
  }
}

.node__content>.views-element-container {
  margin-bottom: 3rem;
  padding-top: 3rem;
}