/*
	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.text-content {
  --text-content-color: var(--color__black);
  margin: var(--spacing-block) 0;
  color: var(--text-content-color);
  /* --- Entrance (JS takes over after measure) ------------------------------ */
}

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

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

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

section.text-content .text-content__inner {
  max-width: 70ch;
}

section.text-content .text-content__title {
  margin: 0;
  font-family: "Noe-Display", serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  font-size: clamp(1.75rem, 2vw + 1.25rem, 3rem);
}

section.text-content .text-content__text {
  margin-top: 2.5rem;
  text-wrap: pretty;
}

section.text-content .text-content__text p {
  margin: 0;
}

section.text-content .text-content__text p + p {
  margin-top: 1em;
}

section.text-content .text-content__action {
  margin-top: 2.5rem;
}

section.text-content.text-content--left .text-content__inner {
  margin-right: auto;
  text-align: left;
}

section.text-content.text-content--right .text-content__inner {
  margin-left: auto;
  text-align: left;
}

section.text-content.text-content--center .text-content__inner {
  max-width: 90ch;
  margin-inline: auto;
  text-align: center;
}

section.text-content.text-content--anim-fade {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  section.text-content.text-content--anim-fade {
    opacity: 1;
  }
}
.acf-block-preview section.text-content.text-content--anim-fade {
  opacity: 1;
}
