.page-main--styleguide {
  /* stylelint-disable no-descending-specificity */
  .heading__context {
    display: block;
    font-size: 0.65em;
    font-weight: 400;
    line-height: 1;
  }

  .cvco-app--layout-inline {
    margin: 0 0 4rem;
  }

  .chat-inline > h2 {
    @media only screen and (width <= 800px) {
      padding-left: 1rem;
    }
  }

  .page-controls {
    width: 100%;
    min-width: 15rem;
    padding: 0;

    @media only screen and (width >= 600px) {
      width: 50%;
    }

    @media only screen and (width >= 800px) {
      width: 33%;
    }
  }

  .nav--styleguide {
    width: 100%;
  }

  .list--styleguidestates > li {
    margin: 0 0 2rem;
    padding: 0 0 2rem 1.5rem;
    border-bottom: 1px solid var(--blue);

    &::before {
      color: var(--text);
      font-size: 1.5rem;
      font-weight: 400;
      line-height: 1.15;
    }

    &:last-child {
      margin: 0;
      padding: 0 0 0 1.5rem;
      border-bottom: 0 none;
    }
  }

  .list--styleguidestates h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
  }

  .list--styleguidestates h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .list--styleguidestates span {
    margin: 0 0 0.25rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
  }

  .list--styleguidestates .category__description,
  .list--styleguidestates .feature__description {
    font-size: 0.875em;
    font-weight: 400;
  }

  .list--styleguidestates li ol {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
  }

  .list--styleguidestates li ol > li {
    margin: 0 0 1rem;

    &:last-child {
      margin: 0;
    }
  }

  .list--styleguidelayouts.list--styleguidelayouts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
  }

  .list--styleguidelayouts li {
    margin: 0.25rem 0.5rem 0.25rem 0;
  }

  .list--styleguidelayouts a {
    display: block;
    padding: 0.5em 0;
    transition:
      padding 0.3s ease,
      border-color 0.3s ease,
      background-color 0.3s ease,
      color 0.3s ease;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1;

    &:hover {
      padding: 0.5em;
      border-color: transparent;
      background-color: var(--blue);
      color: var(--text-inverted);
    }

    &:focus {
      padding: 0.5em;
    }
  }

  .list--styleguidelayouts .state__selected a {
    padding: 0.5em;
    background-color: var(--green);
    color: var(--text-inverted);
    text-decoration: none;
  }
  /* stylelint-enable no-descending-specificity */
}
