/******************************************************************

Stylesheet: Article modules

Summary box, definition box and the FAQ block. Compiled on its own so
it can be loaded in the block editor as well.

******************************************************************/
/******************************************************************

Stylesheet: Variables

Here is where we declare all our variables like colors, fonts,
base values, and defaults. We want to make sure this file ONLY
contains variables that way our files don't get all messy.
No one likes a mess.

******************************************************************/
/*********************
WRAPS
*********************/
/*********************
COLORS
*********************/
/*********************
FONT SIZES
*********************/
/*********************
PADDINGS
*********************/
/*********************
TRANSITIONS
*********************/
/******************************************************************

Stylesheet: Mixins Stylesheet

This is where you can take advantage of Sass' great features: Mixins.
I won't go in-depth on how they work exactly,
there are a few articles below that will help do that. What I will
tell you is that this will help speed up simple changes like
changing a color or adding CSS3 techniques gradients.

A WORD OF WARNING: It's very easy to overdo it here. Be careful and
remember less is more.

Helpful:
http://sachagreif.com/useful-sass-mixins/
http://thesassway.com/intermediate/leveraging-sass-mixins-for-cleaner-code
http://web-design-weekly.com/blog/2013/05/12/handy-sass-mixins/

******************************************************************/
/*********************
TRANSITION
*********************/
/*
I totally rewrote this to be cleaner and easier to use.
You'll need to be using Sass 3.2+ for these to work.
Thanks to @anthonyshort for the inspiration on these.
USAGE: @include transition(all 0.2s ease-in-out);
*/
/*********************
CSS3 GRADIENTS
Be careful with these since they can
really slow down your CSS. Don't overdo it.
*********************/
/* @include css-gradient(#dfdfdf,#f8f8f8); */
/*********************
BOX SIZING
*********************/
/* @include box-sizing(border-box); */
/* NOTE: value of "padding-box" is only supported in Gecko. So
probably best not to use it. I mean, were you going to anyway? */
/*********************
PSEUDO
*********************/
/* @include pseudo; */
/*********************
CSS TRIANGLE
*********************/
/* @include css-triangle(black, up, 6px false); */
/*********************
TEXT MARGINS
*********************/
/* @include text-margins(); */
.sp-chevron {
  flex-shrink: 0;
  color: var(--color-main);
  transition: transform 0.2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .sp-chevron {
    transition: none;
  }
}
/*********************
SUMMARY (KORTVERSJONEN)
*********************/
.sp-tldr {
  background: #F3F0EB;
  border-radius: 0 0 120px 0;
  padding: 32px 32px 64px;
}
.sp-tldr:not([open]) {
  padding-bottom: 32px;
  border-radius: 0 0 60px 0;
}
.sp-tldr:not([open]) .sp-chevron {
  transform: rotate(-90deg);
}

.sp-tldr__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.sp-tldr__summary::-webkit-details-marker {
  display: none;
}
.sp-tldr__summary:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 4px;
}

.sp-tldr__heading {
  margin: 0;
  color: var(--color-main);
  font-size: var(--heading4);
}

.sp-tldr__content {
  margin-top: 24px;
}
.sp-tldr__content > * {
  margin-bottom: 16px;
}
.sp-tldr__content > *:last-child {
  margin-bottom: 0;
}
.sp-tldr__content ul {
  padding-left: 20px;
}
.sp-tldr__content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

@media only screen and (min-width: 768px) {
  .sp-tldr {
    border-radius: 0 0 160px 0;
    padding: 48px 56px 80px;
  }
  .sp-tldr:not([open]) {
    padding-bottom: 48px;
    border-radius: 0 0 80px 0;
  }
}
/*********************
DEFINITION BOX
Sits inside the table of contents wrapper on the Theme template.
*********************/
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition {
  margin-top: 32px;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition:first-child,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition:first-child,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition:first-child {
  margin-top: 0;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .sp-table-of-contents-bg,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .sp-table-of-contents-bg,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .sp-table-of-contents-bg {
  background: #F3F0EB;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .inner-wrap .sp-table-of-contents-content,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .inner-wrap .sp-table-of-contents-content,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition .inner-wrap .sp-table-of-contents-content {
  color: #2B2E34;
  margin: 0;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dt,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dt,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dt {
  margin-bottom: 16px;
  color: var(--color-main);
  font-family: "Greycliff CF", sans-serif;
  font-weight: 700;
  font-size: var(--heading4);
  line-height: 1.2;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dfn,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dfn,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dfn {
  font-style: normal;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd {
  margin: 0;
  color: inherit;
  font-size: inherit;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > *,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > *,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > * {
  margin-bottom: 16px;
}
body.page-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > *:last-child,
body.post-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > *:last-child,
body.material-template-page-theme .sp-table-of-contents .sp-table-of-contents-container.sp-definition dd > *:last-child {
  margin-bottom: 0;
}

/*********************
ARTICLE BYLINE
*********************/
.sp-article-byline {
  margin-top: 64px;
  color: #707070;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}
.sp-article-byline p {
  margin: 0;
}

@media only screen and (min-width: 768px) {
  .sp-article-byline {
    margin-top: 96px;
    font-size: 1.6rem;
  }
}
/*********************
FAQ BLOCK
*********************/
.sp-faq__heading {
  margin: 0 0 25px;
}

.sp-faq__item {
  border-bottom: 1px solid #707070;
}
.sp-faq__item:first-child {
  border-top: 1px solid #707070;
}
.sp-faq__item[open] .sp-chevron {
  transform: rotate(180deg);
}

.sp-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 24px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.sp-faq__question::-webkit-details-marker {
  display: none;
}
.sp-faq__question:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 4px;
}

.sp-faq__answer {
  padding-bottom: 24px;
}
.sp-faq__answer > * {
  margin-bottom: 16px;
}
.sp-faq__answer > *:last-child {
  margin-bottom: 0;
}
.sp-faq__answer ul,
.sp-faq__answer ol {
  padding-left: 20px;
}
.sp-faq__answer ul li {
  list-style: disc;
}
.sp-faq__answer ol li {
  list-style: decimal;
}

@media only screen and (min-width: 768px) {
  .sp-faq__question {
    padding: 32px 0;
  }
  .sp-faq__answer {
    padding-bottom: 32px;
  }
}
/*********************
FAQ BLOCK IN THE EDITOR
An item opens for editing when it is selected, so it looks collapsed otherwise.
*********************/
.editor-styles-wrapper .sp-faq__items > .wp-block.sp-faq__item {
  margin-top: 0;
  margin-bottom: 0;
}
.editor-styles-wrapper .sp-faq__answer > .wp-block {
  margin-top: 0;
  margin-bottom: 16px;
}
.editor-styles-wrapper .sp-faq__answer > .wp-block:last-child {
  margin-bottom: 0;
}
.editor-styles-wrapper .sp-faq__question > span {
  flex: 1;
}
.editor-styles-wrapper .sp-faq__placeholder {
  opacity: 0.5;
}
.editor-styles-wrapper .sp-faq__item.is-open .sp-chevron {
  transform: rotate(180deg);
}
