/* -------------------------------- 

File#: _2_accordion-v2
Title: Accordion v2
Descr: Stacked, expandable content sections
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
    box-sizing: border-box;
  }
  
  * {
    font: inherit;
    margin: 0;
    padding: 0;
    border: 0;
  }
  
  body {
    background-color: hsl(0, 0%, 100%);
    font-family: 'Roboto', sans-serif;
    color: hsl(230, 7%, 23%);
    font-size: 1rem;
  }
  
  /* h1, h2, h3, h4 {
    line-height: 1.2;
    color: hsl(230, 13%, 9%);
    font-weight: 700;
  }
   */
  h1 {
    font-size: 2.0736rem;
  }
  
  h2 {
    font-size: 1.728rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  ol, ul, menu {
    list-style: none;
  }
  
  button, input, textarea, select {
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    line-height: inherit;
    appearance: none;
  }
  
  textarea {
    resize: vertical;
    overflow: auto;
    vertical-align: top;
  }
  

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }
  
  /* img, video, svg {
    display: block;
    max-width: 100%;
  } */
  
  @media (min-width: 64rem) {
    body {
      font-size: 1.25rem;
    }
  
    h1 {
      font-size: 3.051rem;
    }
  
      h2 {
      font-size: 2.44rem;
    }
  
      h3 {
      font-size: 1.75rem;
    }
  
      h4 {
      font-size: 1.5625rem;
    }
  }
  
  /* variables */
  :root {
    /* colors */
    --ap9-color-primary-hsl: 250, 84%, 54%;
    --ap9-color-bg-hsl: 0, 0%, 100%;
    --ap9-color-contrast-high-hsl: 230, 7%, 23%;
    --ap9-color-contrast-higher-hsl: 230, 13%, 9%;
    --ap9-color-bg-light-hsl: 0, 0%, 100%;
    --ap9-color-accent-hsl: 342, 89%, 48%;
    --ap9-color-contrast-lower-hsl: 240, 4%, 85%;
  
    /* spacing */
    --ap9-space-3xs: 0.25rem;
    --ap9-space-sm: 0.75rem;
    --ap9-space-md: 1.25rem;
    --ap9-space-xs: 0.5rem;
  
    /* typography */
    --ap9-text-md: 1.2rem;
    --ap9-text-sm: 0.833rem;
  }
  
  @media(min-width: 64rem){
    :root {
      /* spacing */
      --ap9-space-3xs: 0.375rem;
      --ap9-space-sm: 1.125rem;
      --ap9-space-md: 2rem;
      --ap9-space-xs: 0.75rem;
  
      /* typography */
      --ap9-text-md: 1.5625rem;
      --ap9-text-sm: 1rem;
    }
  }
  
  /* icons */
  .ap9-icon {
    height: var(--ap9-size, 1em);
    width: var(--ap9-size, 1em);
    display: inline-block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
  }
  
  /* component */
  :root {
    --accordion-v2-icon-size: 20px;
    --accordion-v2-icon-stroke-width: 2px;
  }
  
  .accordion-v2__item {
    background-color: hsl(var(--ap9-color-bg-light-hsl));
    box-shadow: inset 0 1px 0.5px hsla(0, 0%, 100%, 0.075), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.25em;
    transition: 0.3s;
  }
  .accordion-v2__item:hover {
    box-shadow: inset 0 1px 0.5px hsla(0, 0%, 100%, 0.075), 0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
  }
  
  .accordion-v2__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
  }
  .accordion-v2__header svg {
    --ap9-size: var(--accordion-v2-icon-size);
  }
  .accordion-v2__header svg .icon__group {
    stroke-width: var(--accordion-v2-icon-stroke-width);
  }
  
  .accordion-v2__icon-arrow .icon__group {
    will-change: transform;
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  .accordion-v2__icon-arrow .icon__group > * {
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    stroke-dasharray: 20;
    -webkit-transform: translateY(4px);
            transform: translateY(4px);
  }
  .accordion-v2__icon-arrow .icon__group > *:first-child {
    stroke-dashoffset: 10.15;
  }
  .accordion-v2__icon-arrow .icon__group > *:last-child {
    stroke-dashoffset: 10.15;
  }
  
  .accordion-v2__item--is-open > .accordion-v2__header > .accordion-v2__icon-arrow .icon__group {
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
  }
  .accordion-v2__item--is-open > .accordion-v2__header > .accordion-v2__icon-arrow .icon__group > *:first-child, .accordion-v2__item--is-open > .accordion-v2__header > .accordion-v2__icon-arrow .icon__group *:last-child {
    stroke-dashoffset: 0;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
  
  .accordion-v2__panel {
    display: none;
    will-change: height;
    -webkit-transform: translateZ(0px);
            transform: translateZ(0px);
  }
  
  .accordion-v2__item--is-open > .accordion-v2__panel {
    display: block;
  }
  
  .accordion-v2[data-animation=on] .accordion-v2__item--is-open .accordion-v2__panel > * {
    -webkit-animation: accordion-v2-entry-animation 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
            animation: accordion-v2-entry-animation 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .accordion-v2[data-animation=on] .accordion-v2__icon-arrow .icon__group {
    transition: -webkit-transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .accordion-v2[data-animation=on] .accordion-v2__icon-arrow .icon__group > * {
    transition: stroke-dashoffset 0.3s, -webkit-transform 0.3s;
    transition: transform 0.3s, stroke-dashoffset 0.3s;
    transition: transform 0.3s, stroke-dashoffset 0.3s, -webkit-transform 0.3s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  @-webkit-keyframes accordion-v2-entry-animation {
    from {
      opacity: 0;
      -webkit-transform: translateY(-10px);
              transform: translateY(-10px);
    }
    to {
      opacity: 1;
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
    }
  }
  
  @keyframes accordion-v2-entry-animation {
    from {
      opacity: 0;
      -webkit-transform: translateY(-10px);
              transform: translateY(-10px);
    }
    to {
      opacity: 1;
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
    }
  }
  
  /* utility classes */
  .ap9-text-gap-md {
    --ap9-space-multiplier: 1.25;
  }
  
  .ap9-line-height-md {
    line-height: 1.4;
  }
  
  .ap9-text-component :where(h1, h2, h3, h4) {
    line-height: var(--ap9-heading-line-height, 1.2);
    margin-top: calc(var(--ap9-space-md) * var(--ap9-space-multiplier, 1));
    margin-bottom: calc(var(--ap9-space-sm) * var(--ap9-space-multiplier, 1));
  }
  
  .ap9-text-component :where(p, blockquote, ul li, ol li) {
    line-height: var(--ap9-body-line-height, 1.4);
  }
  
  .ap9-text-component :where(ul, ol, p, blockquote, .ap9-text-component__block) {
    margin-bottom: calc(var(--ap9-space-sm) * var(--ap9-space-multiplier, 1));
  }
  
  .ap9-text-component :where(ul, ol) {
    padding-left: 1.25em;
  }
  
  .ap9-text-component ul :where(ul, ol), .ap9-text-component ol :where(ul, ol) {
    padding-left: 1em;
    margin-bottom: 0;
  }
  
  .ap9-text-component ul {
    list-style-type: disc;
  }
  
  .ap9-text-component ol {
    list-style-type: decimal;
  }
  
  .ap9-text-component img {
    display: block;
    margin: 0 auto;
  }
  
  .ap9-text-component figcaption {
    margin-top: calc(var(--ap9-space-xs) * var(--ap9-space-multiplier, 1));
    font-size: var(--ap9-text-sm);
    text-align: center;}
  
  .ap9-text-component em {
    font-style: italic;
  }
  
  .ap9-text-component strong {
    font-weight: bold;
  }
  
  .ap9-text-component s {
    text-decoration: line-through;
  }
  
  .ap9-text-component u {
    text-decoration: underline;
  }
  
  .ap9-text-component mark {
    background-color: hsla(var(--ap9-color-accent-hsl), 0.2);
    color: inherit;
  }
  
  .ap9-text-component blockquote {
    padding-left: 1em;
    border-left: 4px solid hsl(var(--ap9-color-contrast-lower-hsl));
    font-style: italic;
  }
  
  .ap9-text-component hr {
    margin: calc(var(--ap9-space-md) * var(--ap9-space-multiplier, 1)) auto;
    background: hsl(var(--ap9-color-contrast-lower-hsl));
    height: 1px;
  }
  
  .ap9-text-component > *:first-child {
    margin-top: 0;
  }
  
  .ap9-text-component > *:last-child {
    margin-bottom: 0;
  }
  
  .ap9-text-component.ap9-line-height-xs {
    --ap9-heading-line-height: 1;
    --ap9-body-line-height: 1.1;
  }
  
  .ap9-text-component.ap9-line-height-sm {
    --ap9-heading-line-height: 1.1;
    --ap9-body-line-height: 1.2;
  }
  
  .ap9-text-component.ap9-line-height-md {
    --ap9-heading-line-height: 1.15;
    --ap9-body-line-height: 1.4;
  }
  
  .ap9-text-component.ap9-line-height-lg {
    --ap9-heading-line-height: 1.22;
    --ap9-body-line-height: 1.58;
  }
  
  .ap9-text-component.ap9-line-height-xl {
    --ap9-heading-line-height: 1.3;
    --ap9-body-line-height: 1.72;
  }
  
  .ap9-padding-bottom-md {
    padding-bottom: var(--ap9-space-md);
  }
  
  .ap9-padding-x-md {
    padding-left: var(--ap9-space-md);
    padding-right: var(--ap9-space-md);
  }
  
  .ap9-padding-top-3xs {
    padding-top: var(--ap9-space-3xs);
  }
  
  .ap9-text-md {
    font-size: var(--ap9-text-md);
  }
  
  .ap9-padding-y-sm {
    padding-top: var(--ap9-space-sm);
    padding-bottom: var(--ap9-space-sm);
  }
  
  .ap9-gap-3xs {
    gap: var(--ap9-space-3xs);
  }
  
  .ap9-flex-column {
    flex-direction: column;
  }
  
  .ap9-flex {
    display: flex;
  }