/*
	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.4s;
}

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.accordion .block-section-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8.4375rem;
}

section.accordion .block-section-wrapper.accordion-wide {
  grid-template-columns: 1fr;
  grid-gap: 2.5rem;
}

@media screen and (max-width: 999px) {
  section.accordion .block-section-wrapper {
    grid-template-columns: 1fr;
    grid-gap: 3.125rem;
  }
}
section.accordion .block-section-wrapper:not(.accordion-wide) > div:only-child, section.accordion .block-section-wrapper:not(.accordion-wide) > div:only-of-type {
  justify-self: center;
  grid-column: 1/-1;
  max-width: 62.5625rem;
}

section.accordion .accordion-wrapper {
  width: 100%;
  overflow: hidden;
}

section.accordion .accordion-wrapper .accordion-item {
  border: 1px solid #375172;
  border-radius: 0.3125rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

section.accordion .accordion-wrapper .accordion-item.active .accordion-header {
  margin-bottom: 0.9375rem;
}

section.accordion .accordion-wrapper .accordion-item.active .accordion-header i.icon {
  transform: rotate(180deg);
}

section.accordion .accordion-wrapper .accordion-header {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease;
}

section.accordion .accordion-wrapper .accordion-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

section.accordion .accordion-wrapper .accordion-header i.icon {
  transition: transform 0.3s ease;
  font-size: 0.375rem;
  display: inline-block;
  margin-left: 0.5rem;
}

section.accordion .accordion-wrapper .accordion-header:hover h3 {
  text-decoration: underline;
}

section.accordion .accordion-wrapper .accordion-body {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

section.accordion .accordion-wrapper .accordion-body p, section.accordion .accordion-wrapper .accordion-body div, section.accordion .accordion-wrapper .accordion-body ul, section.accordion .accordion-wrapper .accordion-body li {
  margin: 0.5rem 0;
}
