/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/**==================================================================================================================================
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
*/
/*
	Variables for legacy dc plugins
*/
section.list-items {
  --list-items-bg: var(--color__blue);
  --list-items-text: var(--color__white);
  margin: var(--spacing-block) 0;
  color: var(--list-items-text);
}

section.list-items[data-background-color=white] {
  --list-items-bg: var(--color__white);
  --list-items-text: var(--color__moss-green);
}

section.list-items[data-background-color=beige] {
  --list-items-bg: var(--color__beige);
  --list-items-text: var(--color__black);
}

section.list-items[data-background-color=moss-green] {
  --list-items-bg: var(--color__moss-green);
  --list-items-text: var(--color__white);
}

section.list-items[data-background-color=blue] {
  --list-items-bg: var(--color__blue);
  --list-items-text: var(--color__white);
}

section.list-items[data-background-color=light-blue] {
  --list-items-bg: var(--color__light-blue);
  --list-items-text: var(--color__blue);
}

section.list-items[data-background-color=green-dark] {
  --list-items-bg: var(--color__green-dark);
  --list-items-text: var(--color__green-light);
}

section.list-items[data-text-color=white] {
  --list-items-text: var(--color__white);
}

section.list-items[data-text-color=black] {
  --list-items-text: var(--color__black);
}

section.list-items[data-text-color=moss-green] {
  --list-items-text: var(--color__moss-green);
}

section.list-items[data-text-color=blue] {
  --list-items-text: var(--color__blue);
}

section.list-items[data-text-color=green-light] {
  --list-items-text: var(--color__green-light);
}

section.list-items .list-items__surface {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  overflow: hidden;
  padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 4.5vw, 4.5rem);
  border-radius: var(--element-border-radius);
  background: var(--list-items-bg);
  min-height: 37.5rem;
}

section.list-items .list-items__intro {
  position: relative;
  z-index: 1;
  max-width: 32.5rem;
}

section.list-items .list-items__title {
  margin: 0;
  color: inherit;
  font-family: "Noe-Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

section.list-items .list-items__text {
  max-width: 50ch;
  margin-top: 2.375rem;
  color: inherit;
  text-wrap: pretty;
}

section.list-items .list-items__text > :first-child {
  margin-top: 0;
}

section.list-items .list-items__text > :last-child {
  margin-bottom: 0;
}

section.list-items .list-items__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: -webkit-max-content minmax(0, 1fr);
  grid-template-columns: max-content minmax(0, 1fr);
  -moz-column-gap: 1.125rem;
       column-gap: 1.125rem;
  row-gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

section.list-items.list-items--time .list-items__list {
  -moz-column-gap: calc(3.5rem + 8px);
       column-gap: calc(3.5rem + 8px);
}

section.list-items .list-items__item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: start;
}

section.list-items .list-items__item-body {
  min-width: 0;
}

section.list-items .list-items__bullet {
  --list-items-title-size: 1.625rem;
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  margin-top: calc((var(--list-items-title-size) * 1.3 - 1rem) / 2);
  margin-right: 1rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: currentColor;
}

section.list-items .list-items__bullet::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--list-items-bg);
}

section.list-items .list-items__item-title {
  margin: 0;
  color: inherit;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.3;
}

section.list-items .list-items__time {
  white-space: nowrap;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0.24375rem;
}

section.list-items .list-items__item-text {
  margin-top: 1rem;
  color: inherit;
  text-wrap: pretty;
}

section.list-items .list-items__item-text > :first-child {
  margin-top: 0;
}

section.list-items .list-items__item-text > :last-child {
  margin-bottom: 0;
}

section.list-items .list-items__watermark {
  position: absolute;
  left: -0.5rem;
  bottom: -0.5rem;
  z-index: 0;
  width: 17.5rem;
  opacity: 0.13;
  pointer-events: none;
  transform: scaleX(-1);
}

section.list-items .list-items__watermark svg {
  display: block;
  width: 100%;
  height: auto;
}

section.list-items .list-items__watermark svg path {
  fill: var(--list-items-text);
}

@media screen and (max-width: 75em) {
  section.list-items .list-items__surface {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.5rem var(--page-gutter) 7.75rem;
  }
  section.list-items .list-items__intro {
    max-width: none;
  }
  section.list-items .list-items__title {
    font-size: 1.75rem;
  }
  section.list-items .list-items__item-title {
    font-size: 1.375rem;
  }
  section.list-items .list-items__time {
    font-size: 1rem;
    margin-top: 0.24375rem;
  }
  section.list-items.list-items--time .list-items__list {
    -moz-column-gap: 2.5rem;
         column-gap: 2.5rem;
  }
  section.list-items .list-items__bullet {
    --list-items-title-size: 1.375rem;
  }
  section.list-items .list-items__list {
    row-gap: 1.75rem;
  }
  section.list-items .list-items__watermark {
    width: 9.375rem;
  }
}
