/*
	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.highlights {
  --highlights-gap: 1.25rem;
  --highlights-card-height: 19.6875rem;
  margin: var(--spacing-block) 0;
  /* --- Card ---------------------------------------------------------------- */
  /* --- Text cards ---------------------------------------------------------- */
  /* --- Link cards ---------------------------------------------------------- */
  /* --- Colors -------------------------------------------------------------- */
  /* --- Number + text: layout per card count -------------------------------- */
  /* --- Link layout: equal cards, up to four per row ------------------------ */
  /* --- Mobile -------------------------------------------------------------- */
  /* --- Entrance (JS takes over after measure) ------------------------------ */
}

section.highlights .highlights__title {
  font-family: "Noe-Display", serif;
  font-weight: 700;
  color: var(--color__moss-green);
  font-size: clamp(1.875rem, 2.6vw, 2.625rem);
}

section.highlights .highlights__grid {
  display: grid;
  grid-template-columns: 1fr;
  -moz-column-gap: var(--highlights-gap);
       column-gap: var(--highlights-gap);
  row-gap: 1.875rem;
  margin-top: 2.5rem;
}

@media screen and (min-width: 64.3125em) {
  section.highlights .highlights__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
section.highlights .highlights__card {
  --dot-card-color: var(--highlights-bg);
  --dot-opacity: 1;
  --dot-scale: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--highlights-card-height);
  padding: 2.5rem;
  border-radius: var(--element-border-radius);
  background: var(--highlights-bg);
  color: var(--highlights-text);
}

section.highlights .highlights__card::before, section.highlights .highlights__card::after {
  opacity: var(--dot-opacity);
}

section.highlights .highlights__card::before {
  transform: scale(var(--dot-scale));
}

section.highlights .highlights__card::after {
  transform: scale(calc(0.45 * var(--dot-scale)));
}

section.highlights .highlights__icon {
  display: block;
}

section.highlights .highlights__icon svg {
  display: block;
  width: 2.25rem;
  height: auto;
  fill: currentColor;
}

section.highlights .highlights__icon svg [fill]:not([fill=none]) {
  fill: currentColor;
}

section.highlights .highlights__icon svg [stroke]:not([stroke=none]) {
  stroke: currentColor;
}

section.highlights .highlights__icon svg .cls-1 {
  fill: var(--highlights-bg);
}

section.highlights .highlights__icon svg .cls-2 {
  fill: currentColor;
}

section.highlights .highlights__number {
  font-family: "Noe-Display", serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--highlights-number);
  font-size: clamp(5.125rem, 4.5vw, 6.25rem);
}

section.highlights .highlights__text {
  max-width: 100%;
  margin: 0;
}

section.highlights .highlights__card-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 140%;
  color: var(--highlights-number);
}

section.highlights .highlights__body {
  margin: 1.25rem 0 0;
  max-width: 100%;
  text-wrap: pretty;
}

section.highlights .highlights__card--wide .highlights__text {
  max-width: 40ch;
  text-wrap: pretty;
}

section.highlights .highlights__card--wide .highlights__body {
  max-width: 82%;
}

section.highlights .highlights__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

section.highlights .highlights__more-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  transform: rotate(-45deg);
}

section.highlights .highlights__more-arrow svg {
  display: block;
  width: 0.875rem;
  height: auto;
}

section.highlights .highlights__more-arrow svg [stroke]:not([stroke=none]) {
  stroke: currentColor;
}

section.highlights .highlights__card--beige {
  --highlights-bg: var(--color__beige);
  --highlights-number: var(--color__moss-green);
  --highlights-text: var(--color__moss-green);
}

section.highlights .highlights__card--moss-green {
  --highlights-bg: var(--color__moss-green);
  --highlights-number: var(--color__green-light);
  --highlights-text: var(--color__white);
}

section.highlights .highlights__card--oker {
  --highlights-bg: var(--color__oker);
  --highlights-number: var(--color__black);
  --highlights-text: var(--color__black);
}

section.highlights .highlights__card--grey {
  --highlights-bg: var(--color__grey-light);
  --highlights-number: var(--color__black);
  --highlights-text: var(--color__black);
}

section.highlights .highlights__card--blue {
  --highlights-bg: var(--color__blue);
  --highlights-number: var(--color__white);
  --highlights-text: var(--color__white);
}

@media screen and (min-width: 64.3125em) {
  section.highlights:not(.highlights--link) .highlights__grid[data-count="1"] .highlights__card {
    grid-column: span 3;
  }
  section.highlights:not(.highlights--link) .highlights__grid[data-count="2"] .highlights__card:nth-child(2) {
    grid-column: span 2;
  }
  section.highlights:not(.highlights--link) .highlights__grid[data-count="3"] .highlights__card:nth-child(2) {
    grid-column: span 2;
  }
  section.highlights:not(.highlights--link) .highlights__grid[data-count="3"] .highlights__card:nth-child(3) {
    grid-column: span 3;
  }
  section.highlights:not(.highlights--link) .highlights__grid[data-count="4"] .highlights__card:nth-child(2),
section.highlights:not(.highlights--link) .highlights__grid[data-count="4"] .highlights__card:nth-child(3) {
    grid-column: span 2;
  }
  section.highlights:not(.highlights--link) .highlights__grid[data-count="5"] .highlights__card:nth-child(2) {
    grid-column: span 2;
  }
}
section.highlights.highlights--link {
  --highlights-card-height: 12.5rem;
}

@media screen and (min-width: 64.3125em) {
  section.highlights.highlights--link .highlights__grid {
    grid-template-columns: repeat(auto-fit, minmax(max(12.5rem, (100% - 3 * var(--highlights-gap)) / 4), 1fr));
  }
}
section.highlights.highlights--link .highlights__card {
  justify-content: flex-start;
  padding: 2.5rem;
}

section.highlights.highlights--link .highlights__card-title {
  font-size: 1.625rem;
  line-height: 150%;
  color: var(--highlights-text);
}

section.highlights.highlights--link .highlights__more {
  margin-top: auto;
  padding-top: 1rem;
}

@media screen and (max-width: 64.25em) {
  section.highlights {
    --highlights-gap: 0.875rem;
    --highlights-card-height: 11.25rem;
  }
  section.highlights .highlights__grid {
    row-gap: 2.5rem;
    margin-top: 1.75rem;
  }
  section.highlights .highlights__card {
    padding: 2.5rem;
  }
  section.highlights .highlights__icon {
    margin-bottom: 1rem;
  }
  section.highlights .highlights__text,
section.highlights .highlights__body {
    max-width: none;
    margin-top: 1rem;
  }
  section.highlights .highlights__card-title {
    font-size: 1.375rem;
  }
  section.highlights.highlights--link {
    --highlights-card-height: 7.5rem;
  }
  section.highlights.highlights--link .highlights__card-title {
    font-size: 1.125rem;
  }
}
section.highlights.highlights--anim-expand .highlights__card:not(.is-in) {
  -webkit-clip-path: inset(0 100% 0 0);
          clip-path: inset(0 100% 0 0);
  --dot-opacity: 0;
  --dot-scale: 0;
}

section.highlights.highlights--anim-expand .highlights__card:not(.is-in) > * {
  opacity: 0;
}

section.highlights.highlights--anim-dot .highlights__card {
  --dot-opacity: 0;
  --dot-scale: 0;
}

section.highlights.highlights--anim-fade {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  section.highlights.highlights--anim-expand .highlights__card {
    -webkit-clip-path: none;
            clip-path: none;
    --dot-opacity: 1;
    --dot-scale: 1;
  }
  section.highlights.highlights--anim-expand .highlights__card > * {
    opacity: 1;
  }
  section.highlights.highlights--anim-dot .highlights__card {
    --dot-opacity: 1;
    --dot-scale: 1;
  }
  section.highlights.highlights--anim-fade {
    opacity: 1;
  }
}
