/*
	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
*/
/*
	Variables for legacy dc plugins
*/
section.key-figures {
  --text-color: var(--color__dark-grey);
  --figure-color: var(--color__brand-copper);
  --figure-small-text-color: var(--color__grey);
  --accent-color: var(--color__dark-grey);
  --box-bg-color: var(--color__white);
  width: 100%;
  height: auto;
}

section.key-figures .numbers__category,
section.key-figures .key-figures__category {
  font-weight: 400;
}

section.key-figures .numbers__category::before,
section.key-figures .key-figures__category::before {
  background-color: var(--accent-color);
}

section.key-figures .block-section-wrapper .content-wrapper {
  display: flex;
  justify-content: space-between;
  font-weight: 300;
  gap: var(--spacing-content);
}

@media screen and (max-width: 1000px) {
  section.key-figures .block-section-wrapper .content-wrapper {
    gap: var(--spacing-content-small);
  }
}
@media screen and (max-width: 850px) {
  section.key-figures .block-section-wrapper .content-wrapper {
    flex-direction: column;
    gap: var(--spacing-content);
  }
}
section.key-figures .block-section-wrapper .content-wrapper .text-content-container {
  flex: 1 1 0;
}

section.key-figures .block-section-wrapper .content-wrapper .text-content-container .key-figures__header {
  margin-bottom: var(--spacing-content);
  font-weight: 300;
  padding-top: 0.5rem;
}

@media screen and (max-width: 850px) {
  section.key-figures .block-section-wrapper .content-wrapper .text-content-container .key-figures__header {
    margin-bottom: var(--spacing-content-small);
    padding-top: 0;
  }
}
section.key-figures .block-section-wrapper .content-wrapper .text-content-container .key-figures__text {
  max-width: 80%;
}

@media screen and (max-width: 1000px) {
  section.key-figures .block-section-wrapper .content-wrapper .text-content-container .key-figures__text {
    max-width: 100%;
  }
}
section.key-figures .block-section-wrapper .content-wrapper .text-content-container .key-figures__text p {
  margin: 0;
  text-wrap: balance;
}

section.key-figures .block-section-wrapper .content-wrapper .key-figures-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  gap: 1rem;
}

section.key-figures .block-section-wrapper .content-wrapper .key-figures-container .numbers__category {
  align-self: flex-start;
  margin-left: calc(20% + 15px);
}

@media screen and (max-width: 850px) {
  section.key-figures .block-section-wrapper .content-wrapper .key-figures-container .numbers__category {
    margin-left: 18px;
  }
}
section.key-figures .block-section-wrapper .content-wrapper .key-figures-container .figure {
  width: 80%;
  background-color: var(--box-bg-color);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.88375rem), calc(100% - 1.875rem) 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.88375rem), calc(100% - 1.875rem) 100%, 0 100%);
  border-radius: 0.375rem;
  padding: 1rem;
  color: var(--figure-small-text-color);
}

@media screen and (max-width: 850px) {
  section.key-figures .block-section-wrapper .content-wrapper .key-figures-container .figure {
    width: 100%;
  }
}
section.key-figures .block-section-wrapper .content-wrapper .key-figures-container .figure .figure-large-field {
  color: var(--figure-color);
  margin: 1.25rem 0;
}
