@mixin tab {

  .advantages-and-specialabilities {
    display: flex;
    height: unset;
    gap: 8px;
  }

  .advantages, .special-abilities {
    margin-bottom: 16px;

    ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
      text-indent: 0;

      li {
        display: inline-block;
      }

      .advantage, .special-ability {
        position: relative;
        border: 1px solid gold;
        box-shadow: 2px 2px 4px #000;
        border-radius: 8px;
        height: 24px;
        color: gold;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
        display: inline-block;
        padding: 0 8px;
        margin-left: 0;
        margin-bottom: 4px;
        background-image: url("/systems/DSA_4-1/assets/velvet_button.png");
        background-repeat: repeat-y;
        background-size: cover;

        span {
          position: relative;
          z-index: 2;
          line-height: 24px;
          vertical-align: middle;
        }

        &.special-ability {
          &::after {
            background: rgba(128, 0, 96, 0.5);
          }
        }

        &::after {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          right: 0;
          bottom: 0;
          border-radius: 8px;
          background: rgba(0, 128, 0, 0.5);
        }

        & + .advantage, & + .special-ability {
          margin-left: 8px;
        }

        &.disadvantage {
          font-style: italic;

          &::after {
            background: rgba(128, 0, 0, 0.5);
          }
        }
      }
    }

  }
}
