/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/** Side margins for content blocks (hero-text, key-figures, etc.) */
/*
	Variables for legacy dc plugins
*/
:root {
  --timeline-group-band-height: 56px;
}

.timeline {
  display: flex;
  justify-content: center;
  min-height: 28.125rem;
  margin: auto;
}

.timeline .block-section-wrapper {
  /* Use global 90% + margin auto so left/right align with other blocks */
}

@media screen and (max-width: 999px) {
  .timeline .block-section-wrapper {
    display: flex;
    place-items: center;
    place-content: center;
    justify-content: center;
  }
}
.timeline .swiper {
  width: 100%;
  margin: 0;
  overflow: visible;
}

@media screen and (max-width: 849px) {
  .timeline .swiper {
    max-width: calc(100% - 30px);
  }
}
@media (min-width: 1610px) {
  .timeline .swiper {
    max-width: calc(1440px + (100% - 1440px) / 2);
  }
}
.timeline .swiper header {
  margin-bottom: 2.625rem;
  /* height: rem-calc(40); */
  position: relative;
}

.timeline .swiper header .header-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

@media screen and (max-width: 849px) {
  .timeline .swiper header .header-wrapper {
    place-content: center;
  }
}
.timeline .swiper header .header-wrapper .timeline-title {
  font-size: 2.5rem;
  line-height: 1.3;
}

@media screen and (max-width: 999px) {
  .timeline .swiper header .header-wrapper .timeline-title {
    font-size: 1.75rem;
    line-height: 1.4;
  }
}
.timeline .swiper header .header-wrapper .swiper-control {
  display: flex;
  flex-direction: row;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-pagination {
  display: flex;
  position: relative;
  top: 50%;
  margin-right: 50px;
  width: 273px;
  height: 1rem;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-pagination .swiper-pagination-bullet {
  display: block;
  background: var(--color__blue-lighter);
  width: 100%;
  height: 0.125rem;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--color__blue-dark);
}

@media screen and (max-width: 999px) {
  .timeline .swiper header .header-wrapper .swiper-control .swiper-pagination {
    right: unset;
    width: 50%;
  }
}
.timeline .swiper header .header-wrapper .swiper-control .swiper-button {
  display: flex;
  gap: 2rem;
  margin-right: 45px;
  height: 100%;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-next,
.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-prev {
  position: relative;
  display: flex;
  width: 50px;
  height: 50px;
  border-radius: 687.037px;
  border: 1.296px solid var(--Dark-blue, #12374f);
  padding: 11.667px 13.611px;
  justify-content: center;
  align-items: center;
  font-family: "icon" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-next:after,
.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-prev:after {
  color: var(--color__blue-dark);
  font-size: 1.25rem;
}

.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-next.swiper-button-disabled,
.timeline .swiper header .header-wrapper .swiper-control .swiper-button .swiper-button-prev.swiper-button-disabled {
  opacity: 0.5;
}

.timeline .swiper header .swiper-pagination-lock {
  display: none;
}

.timeline .swiper .swiper-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.timeline .swiper .swiper-slide {
  width: 20.625rem;
  height: auto;
  position: relative;
  padding-top: var(--timeline-group-band-height);
}

.timeline .swiper .swiper-slide h1 {
  -webkit-hyphens: auto;
          hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 130%;
}

.timeline .swiper .swiper-slide .timeline-item {
  display: flex;
  flex-direction: column;
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color__blue-lighter);
  color: var(--color__blue-dark);
  width: 20.625rem;
  height: 22.5rem;
  padding: 1.25rem;
  border-radius: 6px;
}

@media screen and (max-width: 999px) {
  .timeline .swiper .swiper-slide .timeline-item .timeline-content {
    height: 16.25rem;
  }
}
@media screen and (max-width: 849px) {
  .timeline .swiper .swiper-slide .timeline-item .timeline-content {
    height: 22.5rem;
  }
}
.timeline .swiper .swiper-slide .timeline-item .timeline-content.background-dark-blue {
  background: var(--color__blue-dark);
  color: var(--color__white);
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content .content-top .content-year {
  font-weight: bold;
  margin: 0 0 0.3125rem 0;
  font-size: 1.125rem;
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content .content-bottom .content-text {
  font-weight: bold;
  margin: 0;
  font-size: 1rem;
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content .content-bottom .activate {
  margin-top: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content .content-bottom .activate .dot {
  height: 0.9375rem;
  width: 0.9375rem;
  border-radius: 100%;
  border: solid 0.05625rem white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline .swiper .swiper-slide .timeline-item .timeline-content .content-bottom .activate .dot:after {
  content: "";
  background: white;
  display: block;
  height: 55%;
  width: 55%;
  border-radius: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.timeline .swiper .swiper-slide .timeline-item .info-warning-wrapper {
  display: flex;
  align-items: flex-start;
  margin-top: 1.25rem;
  gap: 0.9375rem;
  font-size: 1rem;
}

.timeline .swiper .swiper-slide .timeline-item .info-warning-wrapper .icon-info-warning::before {
  display: block;
  height: 1.5625rem;
  width: 1.5625rem;
  font-size: 1rem;
  line-height: 1;
}

.timeline .swiper .swiper-slide .timeline-item .info-warning-wrapper p {
  font-weight: 600;
  margin: auto 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.timeline .swiper .timeline-group-band {
  position: absolute;
  left: 0;
  width: 0;
  top: 8px;
  height: var(--timeline-group-band-height);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
  border: 1px solid var(--color__blue-dark);
  border-radius: 9999px;
  background: #fff;
  box-sizing: border-box;
  padding-left: 1.875rem;
  padding-right: 1rem;
}

.timeline .swiper .timeline-group-label {
  pointer-events: none;
  font-weight: bold;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  font-size: 1.125rem;
}

@media screen and (max-width: 849px) {
  .timeline .swiper .swiper-control,
  .timeline .swiper .swiper-button,
  .timeline .swiper .swiper-button-next,
  .timeline .swiper .swiper-button-prev,
  .timeline .swiper .swiper-pagination {
    display: none !important;
  }
  .timeline .swiper .swiper-wrapper {
    display: block;
    position: relative;
    transform: none !important;
    height: auto !important;
  }
  .timeline .swiper .timeline-group-band {
    display: none !important;
  }
  .timeline .swiper .timeline-group-mobile-band {
    display: block;
    width: 100%;
    max-width: 35rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color__blue-dark);
    border-radius: 0.875rem;
    background: #fff;
    font-weight: 700;
    color: var(--color__blue-dark);
  }
  .timeline .swiper .swiper-slide {
    display: flex !important;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 1.25rem 0 !important;
    padding-top: 0;
  }
  .timeline .swiper .swiper-slide .timeline-item {
    width: 100%;
    max-width: 35rem;
    margin: 0 auto;
  }
  .timeline .swiper .swiper-slide .timeline-item .timeline-content {
    width: 100%;
    height: auto;
    min-height: 10.625rem;
  }
  .timeline .swiper .swiper-slide .content-title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 0.625rem;
  }
}
