/*
	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: 600;
  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.
 */
/**
 *	Fluid sized fonts
 *	Read more here:
 *	https://css-tricks.com/snippets/css/fluid-typography/
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
:root {
  --spacing-block: 7.5rem;
  --spacing-block-small: 3rem;
  --spacing-content: 5rem;
  --spacing-grid-gap: 4rem;
  --element-width-wide: 2000px;
  --element-width-content: 950px;
  --element-width-text-narrow: 850px;
  --element-border-radius: 16px;
  --element-aspect-ratio: 3 / 2;
  --font-family: "Roboto", Helvetica, arial, sans-serif;
  --font-family-display: Georgia, serif;
  --font-size-ui: 14px;
  --font-size-ui-mobile: 12px;
  --color__white: rgb(252, 252, 252);
  --color__black: rgb(24, 24, 24);
  --color__grey: rgb(102, 102, 102);
  --color__grey-light: #EDEDED;
  --color__grey-light2: #d9d9d9;
  --color__grey-light-alt: rgb(217, 217, 217);
  --color__grey-lightest: rgb(248, 248, 248);
  --color__green: rgb(57, 115, 102);
  --color__green-dark: #397366;
  --color__green-light: rgb(215, 241, 236);
  --color__green-bright: #50B275;
  --color__mint-green: #A7D9CC;
  --color__green-light2: #EEF6F4;
  --color__green-lightest: rgb(243, 248, 247);
  --color__green-lime: rgb(232, 246, 213);
  --color__blue-light: rgb(208, 238, 252);
  --color__turqoise: #EDF7F5;
  --color__text: var(--color__grey);
  --color__green-light-new: #50B275;
  --color__green-light-new-2: #C5E1CC;
  --color__green-light-new-3: #397467;
  --color__new-bg: #ebebeb;
}

body {
  background-color: var(--color__new-bg);
}

section.text-and-media .block-section-wrapper > div {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  section.text-and-media .block-section-wrapper {
    display: flex;
    align-items: center;
  }
  section.text-and-media .block-section-wrapper > div {
    width: 50%;
    flex-shrink: 0;
  }
}
section.text-and-media.media-right .media-wrapper {
  order: 2;
}

section.text-and-media.media-right .content-wrapper {
  order: 1;
}

@media screen and (min-width: 1000px) {
  section.text-and-media.media-right .content-wrapper {
    padding: 10vh 10vw 10vh 5vw;
    margin-right: -5vw;
  }
}
@media screen and (min-width: 1000px) {
  section.text-and-media.media-left .content-wrapper {
    padding: 10vh 5vw 10vh 10vw;
    margin-left: -5vw;
  }
}
section.text-and-media .media-wrapper {
  width: 50%;
}

@media screen and (max-width: 999px) {
  section.text-and-media .media-wrapper .media-item-asset,
  section.text-and-media .media-wrapper img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
section.text-and-media .content-wrapper {
  container-type: inline-size;
}

@media screen and (max-width: 999px) {
  section.text-and-media .content-wrapper:not(.has-background) {
    padding-top: 1.25rem;
  }
  section.text-and-media .content-wrapper.has-background {
    padding: 5vw;
  }
}
@media screen and (min-width: 1000px) {
  section.text-and-media .content-wrapper {
    border-radius: var(--element-border-radius);
  }
}
section.text-and-media .content-wrapper-inner {
  max-width: 100%;
}

@media screen and (min-width: 1000px) {
  section.text-and-media .content-wrapper-inner {
    width: 34.375rem;
  }
}
section.text-and-media .text-and-media__main-copy {
  line-height: 1.6 !important;
  font-size: clamp(15px, 0.28rem + 0.75vw, 19px) !important;
}

@supports (font-size: 1cqi) {
  section.text-and-media .text-and-media__main-copy {
    font-size: clamp(15px, 0.2rem + 1.1cqi, 19.5px) !important;
  }
}
section.text-and-media .text-and-media__main-copy p, section.text-and-media .text-and-media__main-copy ul, section.text-and-media .text-and-media__main-copy ol, section.text-and-media .text-and-media__main-copy li, section.text-and-media .text-and-media__main-copy blockquote, section.text-and-media .text-and-media__main-copy td, section.text-and-media .text-and-media__main-copy th, section.text-and-media .text-and-media__main-copy dd, section.text-and-media .text-and-media__main-copy dt, section.text-and-media .text-and-media__main-copy div, section.text-and-media .text-and-media__main-copy span, section.text-and-media .text-and-media__main-copy a, section.text-and-media .text-and-media__main-copy strong, section.text-and-media .text-and-media__main-copy em, section.text-and-media .text-and-media__main-copy big, section.text-and-media .text-and-media__main-copy small, section.text-and-media .text-and-media__main-copy label,
section.text-and-media .text-and-media__main-copy .has-larger-font-size, section.text-and-media .text-and-media__main-copy .has-huge-font-size, section.text-and-media .text-and-media__main-copy .has-small-font-size, section.text-and-media .text-and-media__main-copy .has-regular-font-size, section.text-and-media .text-and-media__main-copy .has-normal-font-size,
section.text-and-media .text-and-media__main-copy .wp-block-paragraph, section.text-and-media .text-and-media__main-copy .wp-block-list, section.text-and-media .text-and-media__main-copy .is-style-lead, section.text-and-media .text-and-media__main-copy .is-style-default {
  font-size: inherit !important;
  line-height: 1.6 !important;
}

section.text-and-media .pretitle {
  margin-bottom: 4.375rem;
  color: var(--color__green);
  padding-left: 3.75rem;
  position: relative;
}

section.text-and-media .pretitle:before {
  content: "";
  display: block;
  width: 3.125rem;
  border-top: 0.0625rem solid var(--color__green);
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
}

section.text-and-media .stm-button {
  margin-top: 1.875rem;
}

section.text-and-media .download-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: solid 1px var(--color__green);
  padding: 0.375rem 0;
}

section.text-and-media .download-item h3 {
  font-weight: 400;
  font-size: 1rem;
}

section.text-and-media .download-item:first-of-type {
  margin-top: 1.875rem;
}

section.text-and-media .download-item:last-of-type {
  border-bottom: solid 1px var(--color__green);
}

section.text-and-media .download-item .stm-button {
  margin-top: 0;
  padding: 0.25rem 0.625rem;
  border: none;
  font-size: 0.8125rem;
}

section.text-and-media .download-item .stm-button:after {
  transform: rotate(90deg);
}

section.text-and-media .accordion {
  display: block;
  margin-top: 1.875rem;
  border-bottom: solid 1px var(--color__green);
}

section.text-and-media .accordion summary {
  cursor: pointer;
  display: block;
  padding: 0.625rem 0;
  border-top: solid 1px var(--color__green);
  font-size: 1.25rem;
  font-family: var(--font-family-display);
  transition: background-color 0.3s;
}

section.text-and-media .accordion summary .icon {
  display: inline-block;
  float: right;
  font-size: 0.75rem;
  font-family: var(--font-family);
  color: var(--color__green);
  margin-top: 0.3125rem;
}

section.text-and-media .accordion summary:hover {
  background-color: var(--color__green-lightest);
}

section.text-and-media .accordion details[open] summary .icon {
  transform: rotate(180deg);
}
